33 Commits

Author SHA1 Message Date
Tadeusz Sośnierz
86b9a83b97
Add Admin command from listing and disconnecting connections (#367)
* Add Admin command from listing and disconnecting connections

(Only lists Github for now).

* Require connectionManager permissions to manipulate connections

Gives connection management its own config section and switches
AdminRoom categories to be enums.

* Fail more descriptively if connectionManager is not up in time for adminRoom

* Fix Github API URLs (#366)

* Fix Github API URLs

* Add changelog entry

* Fixes

* Tidyup

Co-authored-by: Will Hunt <will@half-shot.uk>
Co-authored-by: Tadeusz Sośnierz <tadeusz@sosnierz.com>

* Fix URLs *again*

* Block private repos from being publically bridged

* Ensure check looks at service type

* Finish up deleting connections impl

Co-authored-by: Tadeusz Sośnierz <tadeusz@sosnierz.com>
Co-authored-by: Will Hunt <will@half-shot.uk>
2022-06-08 15:50:09 +00:00
Will Hunt
21b6d79c3f
Support GitHub Enterprise (#364)
* Support GitHub Enterprise

* Add default config

* Fixes

* Hide enterprise key
2022-05-25 11:07:07 +01:00
Will Hunt
9b216afd2b
Fix GitHub/GitLab state config not being honoured (#346)
* 1.6.1

* Add new error type for validation errors

* Validate state for GitHubRepo properly

* Add tests to check labels

* Also check GitLab repo

* changelog

* add mock store

* remove nullable

* Be less strict for existing state

* Improve test coverage

* Improve expect error text

* ValidationApiError now takes falsey objects and errors on them

* Remove UserTokenMockStore

* Actually commit the new tests

* Whoops we need to include github
2022-05-12 11:28:55 +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
Half-Shot
3a766190f5 fix a test 2022-04-08 16:35:55 +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
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
Half-Shot
7e2ffdd2df Argh permissions bug 2022-01-17 10:04:23 +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
0c4b911a70
Support categorising bot commands (#143)
* Support categorising bot commands

* changelog

* Fix tests
2022-01-10 21:41:54 +00:00
Will Hunt
5e497d7371
Support html key on generic webhooks (#130)
* Add support for `html` key on generic webhooks

* Document key

* changelog

* Add tests
2022-01-06 13:20:29 +00:00
Will Hunt
9030581de2
Port getPartialBodyForGithubIssue to rust (#126)
* Port getPartialBodyForGithubIssue to rust

* Port repo function too

* Improve safety

* changelog
2022-01-05 10:54:32 +00:00
Will Hunt
d575e5fb2f
Add documentation on various things (#90)
* Add details on webhooks

* More doc things

* More docs

* More documentation changes

* Tidy tidy

* Lots more documentation

* Support defaults for all GitHub configuration options

* Add metrics changes

* s/Added/Add
2021-12-21 16:41:19 +00:00
Will Hunt
e8525e7431 Add some tests for GenericHook 2021-12-18 16:58:23 +00:00
Will Hunt
68ea138d63 Fix tests 2021-12-02 13:37:46 +00:00
Will Hunt
b6e37947bd Refactor code to use BaseConnection and make the connectionIds simpler 2021-12-02 12:34:43 +00:00
Will Hunt
ce26efeca3 Make CI happy 2021-11-25 11:12:29 +00:00
Will Hunt
40a75fa4d3 Rename project 2021-11-22 16:02:07 +00:00
Will Hunt
80dda1ca1a Many refactors 2021-11-22 11:32:25 +00:00
Will Hunt
9748fe09cf More tweaking 2021-11-21 16:51:04 +00:00
Will Hunt
39c6e81cbb Lots of changes 2021-11-21 12:34:56 +00:00
Will Hunt
a6676d4d4f Fix tests 2021-11-17 14:22:44 +00:00
Will Hunt
8842aba1fc Fix test 2021-04-11 18:15:13 +01:00
Will Hunt
fefe9da5fe More fiddling 2020-11-29 19:55:21 +00:00
Will Hunt
80f4795c82 tests 2020-11-29 19:55:21 +00:00
Will Hunt
cad9320752 Huge changes:
- Update all packages
- Move to EsLint
- Update to @octokit/types
- Fix linting
- Fix the notifications code to not depend soley on GitHub
2020-11-29 19:55:21 +00:00
Half-Shot
c888dadd1c Remove issue title from topic 2020-02-26 13:50:38 +00:00
Half-Shot
af907ce134 Try to implement the ability for the MQ to target one worker 2020-02-25 13:25:21 +00:00
Half-Shot
1513e873ee Remove notif test 2020-02-24 13:08:08 +00:00
Half-Shot
b132ca87f8 Calculate issue diffs 2020-02-21 16:58:02 +00:00
Half-Shot
665214e52f Add support for pushWait message passing 2019-08-08 14:38:31 +01:00