* Share code for tracking config via state events
This should prevent forgetting to add state event handlers in new or
existing connection types.
* Address review feedback
* Mark GitLabRepoConnection as an IConnection
* Remove unused imports
* Tighten typing for JiraProjectConnectionState
* 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>
* 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>
* Add support for decoding XML for webhooks
* Ensure all endpoints use the error middleware
* Dependencies
* changelog
* Describe form data in the documentation
* Reorder
* 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>
* 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>
* Update webhooks.md
* Create 381.doc
* Capitalize Markdown
Co-authored-by: Christian Paul <christian@chrpaul.de>
Co-authored-by: Christian Paul <christian@chrpaul.de>
* 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>
* 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
* 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>