430 Commits

Author SHA1 Message Date
Will Hunt
c58e6a0127
Fix GitHub refresh tokens not refreshing (#307)
* Support erroring when the token has expired

* Fix refresh tokens not working

* changelog
2022-04-14 12:10:13 +01: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
e1b5f989b9
Fail to start when widgets are configured without a listener (#298)
* Add note about listener configuration in widgets.md

* Add errors to check when widgets are not fully configured

* changelog

* Include widget listener in default config
2022-04-11 18:39:42 +01:00
Will Hunt
93d367375a
Ensure SetupCommand help command only shows enabled commands (#296) 2022-04-11 18:12:56 +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
1ab442107c
Automatically add new labels to newly created issues (#292)
* Automatically add new labels to newly created issues

* changelog
2022-04-11 17:25:26 +01:00
Kim Brose
e8d2003868
Fix typos (#286)
* Fix typos

* Create 286.doc
2022-04-11 17:08:40 +01:00
Kim Brose
d43b9522ba
Fix #289 (#290)
* Fix #289

* Create 290.bugfix
2022-04-11 17:08:30 +01:00
SpiritCroc
7379346fc1
Generic webhook transform: allow specifying msgtype (#282)
* Generic webhook transform: allow specifying msgtype

* Update doc and changelog for msgtype webhook transform
2022-04-11 10:28:23 +01:00
Will Hunt
8f22f0d851
Use png over webp for browser compatibility (#285)
* Use png over webp for browser compatibility

* changelog
2022-04-11 09:38:57 +01:00
Half-Shot
3bd5412919 1.4.0 2022-04-08 16:22:25 +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
14abb011b6
Support hotlinking github issues and PRs (#277)
* Support hotlinking github issues and PRs

* changelog

* update sample config

* Update github_repo.md
2022-04-06 18:46:04 +01:00
Christian Paul
7df772cda5
Made ESLint lint all TypeScript files and fix a few linter errors (#273)
* Remove unused import of preact/h

* Remove unused imports

* Create 273.misc

* Lint all TypeScript files

* Re-add preact/h import

* Fix a few ESLint errors

* Update 273.misc

* Readd eslint:recommended

* Update .eslintrc.js

Co-authored-by: Will Hunt <will@half-shot.uk>
2022-04-06 15:25:10 +01:00
Christian Paul
9a27dd5ecc
Update 272.bugfix 2022-04-04 00:11:06 +02:00
Christian Paul
b87ccdc070
Create 272.bugfix 2022-04-04 00:08:10 +02:00
Kim Brose
7ce1fd5753
Update github_repo.md (#245)
* Update github_repo.md

* Create 245.doc

* Clarify github_repo.md

Co-authored-by: Will Hunt <will@half-shot.uk>

Co-authored-by: Will Hunt <will@half-shot.uk>
2022-04-01 22:04:02 +01:00
Christian Paul
fca5f1f105
Update setup.md: Minor grammar corrections (#264)
* Update setup.md: Minor grammar corrections

* Create 264.doc
2022-04-01 14:22:23 +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
c2fe248e97
Add support for closing comment on closed PRs (#262)
* Add support for closing comment on closed PRs

* feature
2022-03-31 11:25:02 +01:00
Half-Shot
ab4cabbd67 1.3.0 2022-03-30 12:04:47 +01:00
Half-Shot
15a87bdbac changelog 2022-03-30 12:03:15 +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
907df71036
Fix Figma threads showing as replies in clients (#251)
* Add `is_falling_back` to stop figma threads showing as replies

* changelog
2022-03-28 16:03:12 +01:00
Will Hunt
9d4d94667e
Allow uppercase log levels (#250)
* Allow uppercase log levels

* Check if the log level is valid

* changelog

* Fix config
2022-03-28 16:03:06 +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
9092ae5716
Clarify homeserver configuration and requirements in documentation (#243)
* clarify homeserver needs

* Apply suggestions from code review

Tweaks

Co-authored-by: Kim Brose <kim.brose@rwth-aachen.de>

* Create 243.doc

* Clarify "the homeserver which is hosting it"

Co-authored-by: Kim Brose <kim.brose@rwth-aachen.de>
2022-03-28 11:33:32 +01:00
Will Hunt
e72fe4b79e
Use m.thread for threads in figma (#236)
* Switch to m.thread now that it is stable

* Fix missing </strong>

* changelog
2022-03-11 17:14:46 +00: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
d9fe5357a9
Drop support for Node 12 (#228)
* Drop node 12 dependencies

* changelog
2022-03-07 20:01:51 +00:00
Will Hunt
b5a8ce95ea 1.2.0 2022-03-04 15:00:40 +00:00
Will Hunt
75a91d0ab4
Drop gitlab notifications toggle command (#226)
* Drop gitlab notifications toggle

* changelog
2022-03-04 14:51:19 +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
01d3d96f12
Add support for a "v2" webhook transformation API (#223)
* Add support for a "v2" webhook transformation API

* changelog
2022-03-03 19:16:17 +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
Will Hunt
ffd64cf2f5
Change references of half-shot/ to matrix-org/ (#216)
* Change references of half-shot/ to matrix-org/

* changelog
2022-03-02 15:42:06 +00:00
Will Hunt
6b52457274
Don't set global displayname for bot in generic hooks (#215)
* Don't set global displayname for bot in generic hooks

* Create 215.bugfix
2022-03-01 12:02:54 +00:00
Kim Brose
5eb05d179c
fix #162 (#189)
* fix #162

* Add changelog entry
2022-02-14 14:04:33 +00:00
Slavi Pantaleev
818bb03364
Do not explicitly pass --target to rustup (#184)
* Do not explicitly pass --target to rustup

It doesn't seem to be necessary to install Rust.
Passing `--target` prevents the Dockerfile from being built on different architectures.
Not passing it makes it auto-detect what to install.

Discussed here: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1505

* Add changelog entry
2022-01-31 18:27:10 +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
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