45 Commits

Author SHA1 Message Date
Will Hunt
819c089aa4
Update minimum Node version to 22 (#990)
* Update dependencies

* Node 22 is now the new minimum version.

* changelog.

* Begin porting eslint to new config format.

* Make linter happy.

* Update reqwest to fix SSL issue?

* Fix test types

* quick check on ubuntu LTS 24.04

* Change cache key

* update rust action

* revert mocha due to esminess

* Remove the only usage of pqueue

* Use babel for TS transformations to get around ESM import bug.

* Dependency bundle upgrade

* Drop babel, not actually used.

* lint

* lint

* update default config (mostly sections moving around)
2024-11-28 15:04:01 +00:00
Will Hunt
c0bb71d553
Fix GitHub events not verifying (#875)
* Ensure we verify the raw payload.

* changelog

* Tidy up types

* Add test for GitHib

* Mock out GitHub API to allow tests to pass.

* Lint
2024-01-02 15:52:43 +00:00
Will Hunt
d772a4050c
Run Clippy in CI (#753)
* Clippy fixes

* Refactor to make rust linter happy

* Enable warnings since we have none

* Tidy up tests

* changelog
2023-05-18 11:38:59 +01:00
Will Hunt
c6f975b390
Refactor oauth response page and show a pending state for GitHub installations (#666)
* Show a sensible message for pending GitHub installations

* Clean up grammar

* changelog

* Update Webhooks.ts
2023-03-21 10:46:08 +00:00
Will Hunt
7f34d69cfa
Don't remove the oauth state on polling the status of the auth request (#663)
* Fix unused ?.

* Don't remove the state from the tokenStore when polling

* changelog
2023-03-20 17:03:37 +00:00
Will Hunt
55529d7128
Add support for OAuth login to GitHub via widget (including adding new installations) (#661)
* WIP

* Update vite

* Add oauth landing page

* Add API support for GitHub oauthing

* Remove console.logs

* Add support for logging and and out of GitHub

* Add bridge API methods

* Add base link styling

* Sugar syntax main get

* Update vite

* changelog

* Review changes

* Use instance to match UI

* lint

---------

Co-authored-by: Justin Carlson <justinc@element.io>
2023-03-14 10:50:46 +00:00
Will Hunt
2eadc1c9d7
Increase maximum size of webhook payload. (#606)
* Increase maximum size of webhook payload.

* Create 606.misc
2023-01-04 12:04:58 +00:00
Andrew Ferrazzutti
d82e0d7d91
Fix & refactor Jira issue event handling (#543)
- Refactor Jira event handling to be more like GitHub & GitLab
- Fix silently-ignored Jira events due to expecting wrong type strings
- Update UI for Jira events
2022-10-21 09:16:00 -04:00
Will Hunt
db3caeae03 Use matrix-appservice-bridge logging (#488)
* Use matrix-appservice-bridge logger

* Update to be in line with bridge sdk

* Update packages

* changelog

* nits
2022-10-06 09:30:31 +01:00
Will Hunt
cbc7718808
Move noisy log line to debug (#473)
* Move noisy log level to debug

I think I meant to actually set this to debug before :/

* Create 473.bugfix
2022-09-09 09:31:25 +01:00
Will Hunt
a3046114d0
Useful JSON logger formatting (#463)
* Refactor log wrapper to support richer json errors

* Make webhook events less noisy

* Document new log format
2022-09-01 11:07:58 +01:00
Will Hunt
e487b48b2a
Skip already handled GitHub events (#429)
* Skip already handled GitHub webhooks

* Create 429.bugfix

* tidy up
2022-08-12 10:59:03 +01:00
Will Hunt
c68bcafeb6
Automatically reconfigure GitHub notifications when a token is updated. (#388)
* Refactor methods

* changelog

* Tweaks
2022-07-11 17:08:09 +00:00
Will Hunt
b674fff486
Disable GET for webhooks (unless configured) (#397)
* Disable GET for webhooks (unless configured)

* Docs

* newsfile

* Update Config.ts
2022-07-07 21:52:59 +00:00
Will Hunt
42f02b1445
Add a warning when no action is given for GitLab (#398)
* Add a warning when no action is given for GitLab

* Add notice about webhooks being crap

* changelog
2022-07-07 17:47:27 +01:00
Will Hunt
c36a5e7d60
Fix oauth login urls for GitHub cloud having the wrong domain (#377)
* Ensure we use a single function for generating oauth urls

* Add tests

* changelog

* Fix test
2022-06-27 15:17:01 +01:00
Will Hunt
21b6d79c3f
Support GitHub Enterprise (#364)
* Support GitHub Enterprise

* Add default config

* Fixes

* Hide enterprise key
2022-05-25 11:07:07 +01:00
Will Hunt
b23e516aa5
Statically define connection creation and provisioing (#330)
* Statically define connection creation and provisioing

* Tidy up

* Drop JIRA

* Convert other connections to new system

* Small linting fixes

* Fixes

* changelog

* Fix bridge

* Fix JIRA instance naming

* Fix JIRA config

* Drop unnessacery check
2022-05-06 13:58:39 +00:00
Will Hunt
a766967a62
Support gitlab push events (#306)
* Support gitlab push events

* changelog

* Properly format a list of commits

* Formatting tweaks
2022-04-13 15:55:05 +01:00
Will Hunt
ec7e80a910
Support GitLab release events (#278)
* Support GitLab release events

* changelog
2022-04-07 16:49:03 +01:00
Will Hunt
bade5be6eb
Move webhooks from / to /webhook (#227)
* Move webhooks from / to /webhooks

* fix doc

* Update docs

* Fix tests

* changelog

* Update sample config

* fixup config

* fix changelog

* commit config changes
2022-03-07 23:57:06 +00:00
Will Hunt
7837cbb0f2
Refactor JIRA to support on-prem (#187)
* JIRA refactors

* Support JIRA onprem

* Fix webhooks

* More JIRA docs --- PLEASE REWRITE MEEEE ---

* Drop manifest code for now

* Add on-prem instructions

* Remove incomplete command

* Update sample config

* Remove null url
2022-03-04 14:34:44 +00:00
Will Hunt
f6cbc9481e
Prettify JSON output of generic hooks (#224)
* Pretty print JSON output from webhooks

* Fixup supported body encodings

* changelog

* Fix tests
2022-03-04 13:36:08 +00:00
Will Hunt
675456dd72
Figma Support (#105)
* Add support for Figma files

* tweaks

* Final pieces needed for support

* Documentation

* Add config check

* Support using an alternative userId for Figma (to support legacy bots)

* Reinstate key fixer

* lint
2022-01-06 17:13:58 +00:00
Will Hunt
16e97d309d
Support GitLab wiki page events (#104)
* Support GitLab wiki events

* changelog

* Fixup formatting
2021-12-23 15:08:49 +00:00
Will Hunt
060b73263f
Add a listeners config block (#102)
* Add support for a multi-resource listener style handler

* Update configs

* Speed up config check

* Speed up config check

* Update docs
2021-12-21 16:52:12 +00:00
Will Hunt
ffcb41a0e0
Add support for prometheus (#99)
* Add support for prometheus metrics

* Automatically build metrics documentation

* Slight linter tidyup

* add changelog

* fix workflow

* hush yarn
2021-12-16 15:05:03 +00:00
Will Hunt
f341f6aca2 Refactor GitHub oauth to show user repositories properly 2021-12-06 18:42:53 +00:00
Will Hunt
0d0375ac6b Add support for GitHub provisioning 2021-12-01 17:22:48 +00:00
Will Hunt
d649d872bc Merge remote-tracking branch 'origin/main' into hs/provisioning 2021-12-01 10:58:46 +00:00
Will Hunt
c75977a91f Fixup some undefineds 2021-12-01 10:51:49 +00:00
Will Hunt
e99bcbf9b1 Merge remote-tracking branch 'origin/main' into hs/provisioning 2021-11-30 10:38:02 +00:00
Will Hunt
fbfadeae1c Avoid cyclic deps 2021-11-29 16:34:13 +00:00
Will Hunt
9fe696827f merge changes 2021-11-28 14:58:28 +00:00
Will Hunt
e5c99deadb Update documentation 2021-11-25 18:04:12 +00:00
Will Hunt
759e3c07ed Cleanup rogue logging 2021-11-25 13:27:41 +00:00
Will Hunt
b2c711fb47 Add bits needed for Jira OAuth and commands 2021-11-24 18:37:10 +00:00
Will Hunt
d0c936bd12 Break out JIRA oauth handling 2021-11-22 18:07:08 +00:00
Will Hunt
bc7abf5da5 Add generic webhooks 2021-11-17 12:13:47 +00:00
Will Hunt
b7f544dccd Tidy up 2021-11-12 16:55:16 +00:00
Will Hunt
59e98f96c2 Initial work to support JIRA 2021-10-08 18:07:18 +01:00
Will Hunt
433c906c7b A bunch of new features for GitHub Repo 2021-09-08 01:22:09 +01:00
Will Hunt
c726335be6 Land GitHub discussions first pass 2021-09-07 17:35:18 +01:00
Will Hunt
68d082df19 fiddling 2021-05-02 17:40:48 +01:00
Will Hunt
782bd5e1f3 Rename webhook handler and split out user notification handler 2021-05-02 17:09:17 +01:00