106 Commits

Author SHA1 Message Date
Will Hunt
aab1c14cf0
Support notifying on gitlab review comments (#314)
* Support notifying on gitlab reviews

* changelog

* !== 1

Co-authored-by: Christian Paul <christianp@matrix.org>

Co-authored-by: Christian Paul <christianp@matrix.org>
2022-04-21 17:11:23 +01:00
Tadeusz Sośnierz
0b0a7f1adb Add RSS/Atom feed support 2022-04-21 15:29:26 +02:00
Will Hunt
bd58714c66
Improve metrics coverage (#312)
* Actually register the SDK metrics

* Add some useful metrics

* Update docs

* changelog
2022-04-19 11:24:59 +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
27fc699e0e
Fix GitHub and GitLab ghost user intent creation (#303)
* Fix GitHub and GitLab ghost user intent creation, and add config

* changelog
2022-04-12 18:46:14 +01:00
Will Hunt
53221036ad
Priority ordering for connections (#293)
* Sort connections on a priority basis if `priority` is given in the state.

* changelog

* Break, don't return
2022-04-11 17:36:37 +01:00
Will Hunt
aa9e066530
Add Generic Webhooks Widget interface (#140)
* Start work on improved widget interface for admin room

* Add changes needed for InviteView

* More widget bits

* Lots more work to support setup widgets

* Redesign work

* Fix build order for web

* Remove unused invite code

* Update configs

* Cleanup

* Support widget branding

* Tidy up web app

* Support generic service config lookup

* Stronger typings for configuration

* Improve error text

* fix patch

* changelog

* First pass on documentation

* Fix tests

* fixes

* Don't require room state / admin rooms for room config requests

* Fix no render when secrets isn't provided

* rework if logic

* Fixes after feedback

* more review fixes

* Cleanup unused code

* fix indent

* Update matrix-appservice-bridge to 4.0.1

* Update widget API
2022-04-08 16:16:12 +01:00
Will Hunt
ec7e80a910
Support GitLab release events (#278)
* Support GitLab release events

* changelog
2022-04-07 16:49:03 +01:00
Christian Paul
4060ded7f8
Minor grammar corrections in code and documentation (#267)
* setupWidget -> setUpWidget

* setup -> (to) set up; add full stops

* setupAdminRoom -> setUpAdminRoom

* it's -> its

* Create 267.feature

* log in to; Currently, ; full stops

* Improve copy of error messages

* Update 267.feature

* Rename 267.feature to 267.misc

Co-authored-by: Will Hunt <will@half-shot.uk>
2022-04-07 16:14:35 +01:00
Will Hunt
caee863d35
Send webhook URLs to the admin room (#265)
* Send webhook URLs to the admin room

* changelog
2022-04-01 00:58:02 +01:00
Will Hunt
e287cca495
Remove connection from room when the state event is redacted (#258)
* Remove connections from a room when redacted

* changelog
2022-03-30 10:35:17 +01:00
Will Hunt
43db45a698
Remove connections from a room when the bot leaves (#257)
* Remove connections on leave

* changelog
2022-03-30 10:22:40 +01:00
Will Hunt
5fbd8c9ba0
Add merge_request.close as supported Gitlab hook event (#253)
* Add merge_request.close as supported Gitlab feature

* changelog
2022-03-29 09:31:20 +01:00
Will Hunt
1541b3ecc9
Fix a crash when a Matrix message fails to send (#249)
* Fix a bug that would cause the bridge to crash on a failed message

* changelog

* Rename 248.bugfix to 249.bugfix
2022-03-28 15:45:08 +01:00
Will Hunt
af7f4abfe3
Fix generic webhook HTTP responses always timing out (#247)
* Send the correct event response

* Await the generic hooks

* changelog
2022-03-28 13:50:27 +01:00
Will Hunt
5531bc8cfd
Remove extra github.issues.edited (#230)
* Remove extra `github.issues.edited`

* changelog
2022-03-07 23:59:03 +00: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
363d8aa02f
Refactor logging to be much more flexible and less noisy (#229)
* Add new logging config options

* Reduce logging noise

* Identify more sources of noise

* Add new colourize and json options for logging

* Update documentation

* changelog
2022-03-07 20:04:26 +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
a14cf4de7a
Use MSC3440 for Figma threads (#222)
* Render figma threads as Matrix threads

* Do not crash the bridge if it encounters a faulty reply

* Use threads for Figma threads

* changelog
2022-03-03 19:04:43 +00:00
Half-Shot
1795b86e7b Fix not logging connection created messages 2022-02-17 13:17:26 +00:00
Will Hunt
b07aaedd04
Send a notice to a room when a GitHub issue has been labeled matching a includesLabel (#176)
* Send a notice when an issue has been labeled

* Don't show labeled events for new issues

* Docs improvements
2022-01-18 10:50:00 +00:00
Half-Shot
72eb24bf57 Fix bridge membership fetch 2022-01-17 09:52:32 +00:00
Will Hunt
a9c29af0d6
Fix GitHub notification bugs (#173)
* Fix membership prefill for config permissions

* Fix GitHub watcher not starting

* Remove defunct command "github startoauth"

* Fix notifications not starting on startup

* changelog

* Remove unused
2022-01-14 19:24:12 +00:00
Will Hunt
5b294bc05f
Add support for a tiered permission system (#167)
* Add basic permission model

* Add permission mapping implementation

* Start integrating config checks

* Add permission checking for commands

* Add warnings for legacy behaviour

* changelog

* Linting

* Fix config build step

* Tests

* Add documentation

* Add complete tests

* Add documentation

* Add room for room membership permissions

* Fixup error

* Update sampleConfig
2022-01-14 17:44:15 +00:00
Will Hunt
57ee55ec2d
Fix ready_for_review not firing (#149)
* s/pull_request_review/pull_request

* changelog
2022-01-11 11:27:43 +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
Half-Shot
73b2bf77ab Move validity check 2022-01-06 13:35:17 +00:00
Brian McKenna
97cca7da87 Allow generic only configurations
i.e. no GitHub, GitLab, etc.
2022-01-06 13:32:18 +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
a45cbb781d
Filter issues and PRs/MRs if a label filter is given (#95)
* Add ability to filter on labels

* Add ability to filter on labels

* changelog

* Update state whenever the state_key is defined

* Invert labels checks
2021-12-16 14:58:25 +00:00
Will Hunt
21c2baac41 Various tweaks 2021-12-08 10:49:21 +00:00
Will Hunt
f341f6aca2 Refactor GitHub oauth to show user repositories properly 2021-12-06 18:42:53 +00:00
Will Hunt
431a96f693 Support removing connections 2021-12-03 16:53:00 +00:00
Will Hunt
4357d2c755 Tweak webhook mapping system 2021-12-03 16:13:41 +00:00
Will Hunt
00c89c8f2c Support PUT creating connections syncronously 2021-12-03 12:34:03 +00:00
Will Hunt
1b3393b7a4 Support named webhooks 2021-12-03 10:56:00 +00:00
Will Hunt
0d0375ac6b Add support for GitHub provisioning 2021-12-01 17:22:48 +00:00
Will Hunt
4eb48afa21 Add APIs for checking the state of GitHub 2021-12-01 13:55:26 +00:00
Will Hunt
dd84f525fc Fix state bug 2021-12-01 11:01:37 +00:00
Will Hunt
d649d872bc Merge remote-tracking branch 'origin/main' into hs/provisioning 2021-12-01 10:58:46 +00:00
Will Hunt
51c8be1422 Update required bot config 2021-11-30 19:33:29 +00:00
Will Hunt
a3b01fbb51 Add support for setup commands 2021-11-30 19:33:01 +00:00
Will Hunt
e99bcbf9b1 Merge remote-tracking branch 'origin/main' into hs/provisioning 2021-11-30 10:38:02 +00:00
Will Hunt
38cfdc5d8a Properly handle multiple installations 2021-11-29 18:13:49 +00:00
Will Hunt
fbfadeae1c Avoid cyclic deps 2021-11-29 16:34:13 +00:00
Will Hunt
875c113e1c More refactors 2021-11-29 14:28:42 +00:00
Will Hunt
9fe696827f merge changes 2021-11-28 14:58:28 +00:00