* Allow multiple Jira connections; stop prefix clash
Fixes#533
Mitigates #421
* Follow review suggestions
- Set a status code for the ApiError on command prefix conflict
- Make `conflictsWithCommandPrefix` an optional method
- Support version created/updated/released events
- Look up project ID if missing when subscribing to version events
- Properly format version event notices
- Prioritize project URL over ID in debug strings
- Refactor Jira event handling to be more like GitHub & GitLab
- Fix silently-ignored Jira events due to expecting wrong type strings
- Update UI for Jira events
* Add network timeouts to Docker builds
* Split cargo build out
* Put cargo in the right place
* debug usage
* install time
* Fix docker build OOMing in CI for arm64 builds
Yoinked from synapse:
- https://github.com/matrix-org/synapse/pull/14173
- 424d1d28cc
* Update changelog
Co-authored-by: Half-Shot <will@half-shot.uk>
* Read-your-writes consistency on connection update
Allow updates to connections made via config widgets to be reflected
immediately upon save in the widget UI.
* Use HTML elements as `ref`s in widgets
Fixes#422
* Add changelog
* Let widgets use new connection config on save
After a connection config is updated, but before a widget requests the
latest config from the bridge, make the widget display the just-saved
config instead of what the config was before being updated.
* Use input placeholder as prefix default
Otherwise, leaving the prefix field blank would apply no prefix, and
violate prefix length requirements.
- Group repos by org
- Paginate repo requests
- Remove redundant label next to chosen repo
- Remove redundant repo field below connected repo
- Include repos that user has doesn't have admin permissions for, to
achieve parity with results from provisioning API
* Add commands to remove/list Jira connections
* Add docs page for Jira connections
* Clarify "instance" and webhook reqs in Jira docs
- Jira has "instances" instead of "organizations", so use the former term
- Don't suggest that webhook support can work for multiple instances
- Mention that webhooks require special access
- Make some minor grammar changes
* Improve formatting of command help
- Ensure args included in monospace formatting
- Show required args as `<arg>`
- Show optional args as `[arg]`
* Don't print undefined username with Jira `whoami`
* Fix typo in `feed remove` description
* Add changelog
* Relabel changes as a bugfix
* Add backend support
* Add frontend support
* Update docs
* changelog
* Update src/Connections/GitlabRepo.ts
Co-authored-by: Christian Paul <christianp@matrix.org>
* Update docs/usage/room_configuration/gitlab_project.md
Co-authored-by: Christian Paul <christianp@matrix.org>
* Tweak functions
Co-authored-by: Christian Paul <christianp@matrix.org>
* More json logger safety
* Don't log undefined
* typo
* Split out the static logger to it's own class for testing
* Refactor logger usage slightly
* Add a test for the logger wrapper
* changelog
* Update LogWrapper.ts
* Drop ?
* Log fatal to console if we haven't configured logging
* Move token store load up
* Fix logging typo
* Fix everything logging at debug
* changelog
* Make private
* Add support for setting a global feed timeout
* Track failures, and don't show the first non-serious error
* Tidy up error reporting
* Make a prettier error pane
* Use the prettier event pane
* Show failed feed attempts in the widget
* Ensure we catch connection resets
* Add styling file
* Ensure we only track one result per fetch
* changelog
* Refactor to use better status codes
* Make feed results cheaper
* splice