301 Commits

Author SHA1 Message Date
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
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
Half-Shot
e6467465ca Linting 2022-04-08 16:20:40 +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
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
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
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
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
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
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
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
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
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
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
0c4b911a70
Support categorising bot commands (#143)
* Support categorising bot commands

* changelog

* Fix tests
2022-01-10 21:41:54 +00:00
Will Hunt
632791be63
Refactor setup commands (#141)
* Ensure setup connection uses provisionConnection function

* Drop unused parameters from JiraProjectConnection

* Fix typo

* Convert ApiErrors into CommandError when possible

* Fix a stray bug

* changelog
2022-01-10 21:10:14 +00:00
Half-Shot
271ee2a2f5 1.1.0 2022-01-07 16:54:41 +00:00