529 Commits

Author SHA1 Message Date
Kim Brose
e9303d0fb3
Multiple improvements to GitLab push event formatting (#309)
* Update GitlabRepo.ts

* Create 309.feature

* Only show list of pushed commits if it's complete

* fixup! Only show list of pushed commits if it's complete

* address feedback about constants

* print only a summary if there are too many commits

* update changelog

* wordy bits

* refactor for readability

Co-authored-by: Will Hunt <will@half-shot.uk>
2022-05-09 14:53:41 +01:00
Will Hunt
bc29b78442
Allow overriding the results of an openID lookup for widgets for local development. (#326)
* Revert "Withdraw openid overrides change for this PR"

This reverts commit 561fb20471107827a5304eb3d4c4254bb215ae8d.

* Drop setting from sample config

* changelog

* Clarify config
2022-05-09 12:16:27 +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
8808385b6d
Add support for GitLab connection configuration via widgets (#320)
* Refactors to support multiple services in the widget UI

* Add GitLabRepo web component view

* Support searching and adding a GitLab repository on the frontend

* Add final bits to supporting adding and removing connections from rooms

* lint

* changelog

* Lots of changes based upon review feedback

* linting

* Add warnings

* Withdraw openid overrides change for this PR

* Drop unused

* Remove async function syntax

* Tiny bug fixes
2022-04-30 06:08:13 +01:00
Will Hunt
f56545bf7c
Add setup command for GitLab (#321)
* Cleanup gitlab auth command

* Add support for the `!hookshot gitlab project` command

* Improve docs

* changelog

* add new page

* Wording

Co-authored-by: Tadeusz Sośnierz <tadzik@tadzik.net>

* Remove useless comment

Co-authored-by: Tadeusz Sośnierz <tadzik@tadzik.net>
2022-04-26 16:04:24 +01:00
Tadeusz Sośnierz
c02951552d
Merge pull request #315 from matrix-org/tadzik/rss
Add RSS/Atom feed support
2022-04-25 15:26:37 +02:00
Tadeusz Sośnierz
dbd0bb7083 Remove leftover debug logging 2022-04-25 15:22:58 +02:00
Tadeusz Sośnierz
0ac4d84aa7 Implement listing and removing feeds from a room 2022-04-25 15:17:15 +02:00
Tadeusz Sośnierz
b8afd4f7ef Allow empty titles/links when handling feed entries 2022-04-25 14:15:34 +02:00
Tadeusz Sośnierz
cea7c0b78c Use Date.now() for timestamps where appropriate 2022-04-25 10:41:23 +02:00
Half-Shot
d5498f99f2 fix metric name 2022-04-22 18:54:42 +01:00
Half-Shot
d76713f4f3 Add some metrics 2022-04-22 18:53:01 +01:00
Tadeusz Sośnierz
a62235e925 Support removing feed connections, deduplicate feed URLs 2022-04-22 14:37:40 +02:00
Tadeusz Sośnierz
c2f97825f7 Define onRemove() to be async, as it is implemented 2022-04-22 14:35:42 +02:00
Tadeusz Sośnierz
2d712be3c0 Tweak initialSync logic to ensure we don't get perform it forever
Before this no entries were saved after an initialSync,
making us thing it's an initialSync every time.
2022-04-22 14:09:18 +02:00
Tadeusz Sośnierz
428ca02456 Make sure our feed accountData is valid 2022-04-22 13:52:58 +02:00
Tadeusz Sośnierz
9217112c3e Don't notify about new RSS/Atom entries during initial sync 2022-04-22 13:48:44 +02:00
Tadeusz Sośnierz
420def07b0 Fetch feeds sequentially, warn if it took too long 2022-04-22 12:27:14 +02:00
Tadeusz Sośnierz
ef91798bcb Update config defaults 2022-04-22 11:25:05 +02:00
Tadeusz Sośnierz
917ea003a2 Fix typos 2022-04-22 11:21:54 +02:00
Tadeusz Sośnierz
648e45748b Allow feed-only instances 2022-04-22 10:44:04 +02:00
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
Tadeusz Sośnierz
31a7e651bc Allow for ConnectionManager to notify listeners about new connections 2022-04-21 15:26:12 +02:00
Tadeusz Sośnierz
e882081528 Check for the correct state event type when setting up a connection. Also DRY 2022-04-20 17:05:39 +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
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
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