909 Commits

Author SHA1 Message Date
Will Hunt
650397d843
Create CODEOWNERS and PR template (#425)
* Create CODEOWNERS

* Create pull_request_template.md

* Create 425.misc
2022-07-25 14:54:39 +01:00
Andrew Ferrazzutti
66a5d8bb57 1.8.1 1.8.1 2022-07-19 11:50:01 -04:00
Frank Lanitz
e375a3965e
Add deeplink for registration.sample.yml to setup documentation (#374)
This hopefully make it easier to reach for users while reading the documentation.

Signed-off-by: Frank Lanitz <fl@flyingcircus.io>
2022-07-15 13:08:00 +00:00
Andrew Ferrazzutti
6516364f3d
Add clean scripts (#414)
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
2022-07-14 10:58:31 -04:00
Andrew Ferrazzutti
3dcb6e857a
Mention github login and github status in docs (#415)
* Mention `github status` in docs

instead of `github hastoken`, which was renamed.

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>

* Document `github login`

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
2022-07-14 10:57:19 -04:00
Andrew Ferrazzutti
eac6819a58
Don't say nothing to no GitHub connections (#416)
* Don't say nothing to no GitHub connections

Allow the message of "No GitHub bridges" to be sent.

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>

* Changelog

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>

* "Github" -> "GitHub" in `list-connections`

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
2022-07-14 09:55:46 -04:00
Will Hunt
7796f104cb
Add XML parser for generic webhook payloads (#410)
* Add support for decoding XML for webhooks

* Ensure all endpoints use the error middleware

* Dependencies

* changelog

* Describe form data in the documentation

* Reorder
2022-07-13 16:14:21 +01:00
Andrew Ferrazzutti
d4f701c871
Disallow some empty config URL settings (#412)
* Disallow some empty config URL settings

If these settings are meant to be unspecified, then their entire parent
sections (`widgets` & `generic`) should be unspecified.

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>

* Convert some config URL strings to URL objects

This allows both parsing and easier crafting of relative URLs.

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>

* Dump parsed URLs to default config

Also implement getters to return stringified URLs, instead of having to
store a URL's string representation directly.

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
2022-07-13 08:39:23 -04:00
Andrew Ferrazzutti
c46cc71de8
Use the admin widget in admin rooms (#411)
Fixes #308

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
2022-07-13 08:34:50 -04:00
Half-Shot
ded8be55e2 1.8.0 1.8.0 2022-07-11 18:13:10 +01:00
Will Hunt
c68bcafeb6
Automatically reconfigure GitHub notifications when a token is updated. (#388)
* Refactor methods

* changelog

* Tweaks
2022-07-11 17:08:09 +00:00
Will Hunt
74a3611134
Allow the same GitLab repo to be bridged to multiple rooms (#406)
* Check matching roomId when checking for existing GitLab repos

* changelog

* Don't need to cast
2022-07-11 16:56:42 +01:00
Damien Gaignon
1d0b2adc8a
Fix link in AdminRoom (#384)
* Fix link in AdminRoom

Signed-off-by: Damien Gaignon <damien.gaignon@gmail.com>

* Add 384.bugfix file

* Add full stop to changelog entry

Co-authored-by: Andrew Ferrazzutti <andrewf@element.io>
2022-07-11 09:48:06 -04:00
Andrew Ferrazzutti
18df8eb8b6
Stringify provision connection data object in logs (#404)
* Stringify provision connection data object in logs

Otherwise, it may get logged as [object Object]

* changelog
2022-07-11 09:41:11 -04:00
Andrew Ferrazzutti
3199f0c87b
Allow proper responses to widget-setup commands (#403)
* Allow proper responses to widget-setup commands

* changelog
2022-07-11 09:40:37 -04:00
Andrew Ferrazzutti
b491ad1e07
Fix typos in docs (#401)
* Fix typos in docs

* changelog
2022-07-11 09:37:06 -04:00
dependabot[bot]
8b31a4bfe8
Bump moment from 2.29.2 to 2.29.4 (#400)
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-08 00:06:23 +01:00
Will Hunt
b674fff486
Disable GET for webhooks (unless configured) (#397)
* Disable GET for webhooks (unless configured)

* Docs

* newsfile

* Update Config.ts
2022-07-07 21:52:59 +00:00
Will Hunt
84f1e3bfe3
Test against Node 18 (#399)
* Test on Node 18

* Drop mistakenly commited file

* Create 399.misc
2022-07-07 21:52:51 +00:00
Will Hunt
42f02b1445
Add a warning when no action is given for GitLab (#398)
* Add a warning when no action is given for GitLab

* Add notice about webhooks being crap

* changelog
2022-07-07 17:47:27 +01:00
Will Hunt
ff1079aa3b
Fix floating values breaking generic webhooks (#396)
* Convert floats to strings for generic webhook payloads

* document the change

* Create 396.bugfix
2022-07-07 17:44:11 +01:00
Will Hunt
ab59fe4e98
Dockerfile: Move --pure-lockfile to yarn (install) (#391)
* Move --pure-lockfile to yarn (install)

* Debug rust

* Update Dockerfile
2022-07-06 12:49:26 +01:00
Will Hunt
7c415ad376
Revert "Add docker auto-build for ARM64 (#373)" (#392)
This reverts commit ea6382faa13c97b75b1b940dc1d709fcfa9023a0.
2022-06-30 12:01:33 +01:00
Brendan Abolivier
d940e79b39
Mention RSS/Atom feeds in the list of supported platforms (#389)
* Mention RSS/Atom feeds in the list of supported platforms

* Changelog
2022-06-29 14:31:36 +01:00
Will Hunt
f7b652a0b5
Remove transformation function from webhook rooms when it's removed from the state (#383)
* Clear transformationFunction when state omits it.

* Create 383.bugfix
2022-06-28 09:10:37 +01:00
Will Hunt
c36a5e7d60
Fix oauth login urls for GitHub cloud having the wrong domain (#377)
* Ensure we use a single function for generating oauth urls

* Add tests

* changelog

* Fix test
2022-06-27 15:17:01 +01:00
Damien Gaignon
5e63508f49
Fix Webhook command (#379)
* Fix Webhook command

Signed-off-by: Damien Gaignon <damien.gaignon@gmail.com>

* Add 379.bugfix

* Words

Co-authored-by: Will Hunt <will@half-shot.uk>
2022-06-27 14:15:25 +00:00
Kim Brose
8f2015b605
Update webhooks.md (#381)
* Update webhooks.md

* Create 381.doc

* Capitalize Markdown

Co-authored-by: Christian Paul <christian@chrpaul.de>

Co-authored-by: Christian Paul <christian@chrpaul.de>
2022-06-27 09:49:18 +01:00
Arthur Brugière
ea6382faa1
Add docker auto-build for ARM64 (#373)
* Add docker auto-build for ARM64

* Add changelog for ARM64 build PR

* Add needed QEMU action for ARM64 build

* Bump docker's action + apply all to 'latest' workflow too

* Clarify feature

Co-authored-by: Will Hunt <will@half-shot.uk>
2022-06-17 10:26:34 +01:00
Jason Robinson
541e602174
Add a .node-version file (#376)
Add it with 16. Helps people like me running avn for the right node version to be activated - https://github.com/wbyoung/avn
2022-06-17 09:20:23 +01:00
Half-Shot
a60acd5227 1.7.3 1.7.3 2022-06-09 15:01:23 +01:00
Will Hunt
58b08c95d4
Reinstate login commands for GitHub (#372)
* Reinstate login commands for GitHub

* Create 372.bugfix

* Use proper enums
2022-06-09 15:00:14 +01:00
Half-Shot
a665d3b949 1.7.2 1.7.2 2022-06-08 16:51:57 +01:00
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
ee2fd5bbcc
Add contributing file (#134)
* Add contributing file

* Rewrite and point at matrix-appservice-bridge

* Add documentation

* Ensure we install matrix-appservice-bridge when building docs

* Also install for release

* changelog

* add contrib file

* Remove artifact step, it doesn't render so nicely

* Update README.md
2022-06-08 15:30:46 +00:00
Will Hunt
8cf8c8eff3
Add requireClient capability to widgets (#370)
* Add requireClient

* changelog
2022-06-07 14:12:01 +01:00
dependabot[bot]
a53400c132
Bump regex from 1.5.4 to 1.5.6 (#368)
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.4 to 1.5.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.5.4...1.5.6)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-07 12:13:54 +01:00
Half-Shot
f8579d35a5 Fix URLs *again* 2022-06-07 10:33:50 +01:00
Tadeusz Sośnierz
5c899f045d
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>
2022-06-07 09:58:45 +01: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
efb5f49bb8
Use https over git for install instructions (#355)
* Use https over git for install instructions

* Create 355.doc
2022-05-25 10:47:46 +01:00
Half-Shot
987eb7af1c 1.7.1 1.7.1 2022-05-23 15:36:02 +01:00
Will Hunt
2a9326a499
Fix issue where GitLab support would break if GitHub wasn't also configured (#362)
* Drop !github

* changelog
2022-05-23 14:34:25 +00:00
Andrew Ferrazzutti
0241a90e9d
Get UserAgent from package.json (#360)
* Get UserAgent from package.json (#359)

* Add changelog entry

* Update changelog.d/359.bugfix

Be more precise about which UserAgent it is

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

* Rename changelog file to refer to its PR number

* Update changelog with issue number and credit

Co-authored-by: Tadeusz Sośnierz <tadzik@tadzik.net>
2022-05-20 10:37:13 -04:00
Will Hunt
026d7f64b5
Update towncrier to 21.9.0 (#353)
* Update towncrier to 21.9.0

* changelog
2022-05-13 10:15:49 +01:00
Will Hunt
f6214aaacc 1.7.0 1.7.0 2022-05-12 13:29:41 +01:00
Tadeusz Sośnierz
d1494ff373
Add Feed configuration widget (#345)
* Refactor RoomConfigView slightly to reduce duplication

* Add Feed configuration widget

* Drop an unused parameter in FeedConnection

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

* Add a key to connection listing in RoomConfigView

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

* Be more explicit when checking for feeds enabledness

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

* Erase state when removing FeedConnection

* Tone down logging in FeedReader

* Strenghten validation of feed URLs

* Drop an unnecessary non-null assertion

* Allow adding labels to feeds

* Add changelog for #345

* Fix lint-found errors

* Improve feed setup widget changelog

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

* Validate feed URLs with HEAD if possible

* Don't log.error feed validation failures in SetupConnection

* Remove extra space

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

* Wrap errors from FeedConnection.provisionConnection in ApiErrors

Co-authored-by: Tadeusz Sośnierz <tadeusz@sosnierz.com>
Co-authored-by: Will Hunt <will@half-shot.uk>
2022-05-12 12:06:20 +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
c02d4349a3
Get ARM64 builds working (#339)
* Use node:16-slim for final image build

* changelog

* Add ignore scripts to final install step

* Copy matrix-sdk-crypto-nodejs built files

* Add workaround to build images foo crypto-nodejs

* chmod +x

* require bash for builds

* Add apt install to hopefully make the rust bits build for arm

* Fix missing multilib (#349)

* Update and rename 336.misc to 339.bugfix

Co-authored-by: Paul Tötterman <ptman@users.noreply.github.com>
2022-05-10 15:55:30 +01:00
Kim Brose
e9c6afdc44
Fix spacing of non-emoji icons in the docs navbar (#341)
* Fix spacing of non-emoji icons in the docs navbar

* Create 341.docs

* towncrier being picky
2022-05-09 14:54:15 +01:00