525 Commits

Author SHA1 Message Date
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
dependabot[bot]
1bdb986226
Bump minimist from 1.2.5 to 1.2.6 (#242)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 11:40:44 +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
46049cf528 Fix icon paths for style.css 2022-03-04 16:41:03 +00:00
Will Hunt
b5a8ce95ea 1.2.0 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
Half-Shot
9a8398249d Fix readme links 2022-03-02 18:16:17 +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
Half-Shot
1795b86e7b Fix not logging connection created messages 2022-02-17 13:17:26 +00:00
Half-Shot
fd21998486 Figma logging 2022-02-17 13:05:12 +00:00
dependabot[bot]
2d240fc97b
Bump vm2 from 3.9.5 to 3.9.6 (#195)
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.5 to 3.9.6.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.5...3.9.6)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 17:24:59 +00:00
Kim Brose
5eb05d179c
fix #162 (#189)
* fix #162

* Add changelog entry
2022-02-14 14:04:33 +00:00
dependabot[bot]
5a090ed0e2
Bump node-fetch from 2.6.6 to 2.6.7 (#194)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 14:04:18 +00:00
dependabot[bot]
964259c1c0
Bump follow-redirects from 1.14.7 to 1.14.8 (#188)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 12:48:55 +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
Half-Shot
0ace5d8458 Fix types 2022-01-17 10:23:27 +00:00
Half-Shot
7e2ffdd2df Argh permissions bug 2022-01-17 10:04:23 +00:00
Half-Shot
72eb24bf57 Fix bridge membership fetch 2022-01-17 09:52:32 +00:00
Half-Shot
7049802750 UserAgent tweaks 2022-01-17 09:50:40 +00:00
Half-Shot
546c5ec4b6 Fix readme badges 2022-01-14 20:51:54 +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
Kim Brose
3e36cd7092
review setup.md#Permissions (#171) 2022-01-14 18:26:22 +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
dependabot[bot]
e541f44c8a
Bump follow-redirects from 1.14.6 to 1.14.7 (#170)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.6 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.6...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-14 11:30:46 +00:00
dependabot[bot]
38441b9477
Bump markdown-it from 12.3.0 to 12.3.2 (#169)
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 12.3.0 to 12.3.2.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/12.3.0...12.3.2)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-13 01:29:41 +00:00
Will Hunt
e2b4b584e5
Add some icons to the documentation for various platforms (#168)
* Add some icons to the documentation for various platforms

* changelog
2022-01-13 01:29:14 +00:00
Will Hunt
99a40f4b87
JIRA project keys MUST be uppercase when accessing the API (#166)
* JIRA project keys MUST be uppercase

* changelog

* Fix error text
2022-01-12 12:41:21 +00:00
Kim Brose
f56105db9d
fix help message typo (#160) 2022-01-12 11:17:33 +00:00
Kim Brose
6d7112ae07
Update setup.md (#155) 2022-01-11 22:26:18 +00:00
Will Hunt
c2504d86cc
Mention the last comment on a recently closed/reopened issue. (#144)
* When an issue is closed or reopened, get the last comment (within 2
minutes)

* changelog
2022-01-11 18:55:40 +00:00
Will Hunt
8f2cf779ac
Further docs clarifications (#150)
* Clarify secret token.

* Fix list in Jira.
Fixes #146

* Try to clarify the GitHub docs a bit. Fixes #148

* Add documentation on Docker config validation.
Fixes #152

* Update docs/setup/jira.md

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

Co-authored-by: Kim Brose <kim.brose@rwth-aachen.de>
2022-01-11 18:44:16 +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
Kim Brose
2a676afca0
fix more typos (#142)
* fix more typos

* Update jira.md
2022-01-10 23:26:45 +00:00