424 Commits

Author SHA1 Message Date
Will Hunt
75a91d0ab4
Drop gitlab notifications toggle command (#226)
* Drop gitlab notifications toggle

* changelog
2022-03-04 14:51:19 +00: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
Will Hunt
a14cf4de7a
Use MSC3440 for Figma threads (#222)
* Render figma threads as Matrix threads

* Do not crash the bridge if it encounters a faulty reply

* Use threads for Figma threads

* changelog
2022-03-03 19:04:43 +00:00
Will Hunt
ffd64cf2f5
Change references of half-shot/ to matrix-org/ (#216)
* Change references of half-shot/ to matrix-org/

* changelog
2022-03-02 15:42:06 +00:00
Will Hunt
6b52457274
Don't set global displayname for bot in generic hooks (#215)
* Don't set global displayname for bot in generic hooks

* Create 215.bugfix
2022-03-01 12:02:54 +00:00
Half-Shot
1795b86e7b Fix not logging connection created messages 2022-02-17 13:17:26 +00:00
Half-Shot
fd21998486 Figma logging 2022-02-17 13:05:12 +00:00
Will Hunt
b07aaedd04
Send a notice to a room when a GitHub issue has been labeled matching a includesLabel (#176)
* Send a notice when an issue has been labeled

* Don't show labeled events for new issues

* Docs improvements
2022-01-18 10:50:00 +00:00
Half-Shot
0ace5d8458 Fix types 2022-01-17 10:23:27 +00:00
Half-Shot
7e2ffdd2df Argh permissions bug 2022-01-17 10:04:23 +00:00
Half-Shot
72eb24bf57 Fix bridge membership fetch 2022-01-17 09:52:32 +00:00
Half-Shot
7049802750 UserAgent tweaks 2022-01-17 09:50:40 +00:00
Will Hunt
a9c29af0d6
Fix GitHub notification bugs (#173)
* Fix membership prefill for config permissions

* Fix GitHub watcher not starting

* Remove defunct command "github startoauth"

* Fix notifications not starting on startup

* changelog

* Remove unused
2022-01-14 19:24:12 +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
99a40f4b87
JIRA project keys MUST be uppercase when accessing the API (#166)
* JIRA project keys MUST be uppercase

* changelog

* Fix error text
2022-01-12 12:41:21 +00:00
Kim Brose
f56105db9d
fix help message typo (#160) 2022-01-12 11:17:33 +00:00
Will Hunt
c2504d86cc
Mention the last comment on a recently closed/reopened issue. (#144)
* When an issue is closed or reopened, get the last comment (within 2
minutes)

* changelog
2022-01-11 18:55:40 +00:00
Will Hunt
57ee55ec2d
Fix ready_for_review not firing (#149)
* s/pull_request_review/pull_request

* changelog
2022-01-11 11:27:43 +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
632791be63
Refactor setup commands (#141)
* Ensure setup connection uses provisionConnection function

* Drop unused parameters from JiraProjectConnection

* Fix typo

* Convert ApiErrors into CommandError when possible

* Fix a stray bug

* changelog
2022-01-10 21:10:14 +00:00
Half-Shot
271ee2a2f5 1.1.0 2022-01-07 16:54:41 +00:00
Will Hunt
675456dd72
Figma Support (#105)
* Add support for Figma files

* tweaks

* Final pieces needed for support

* Documentation

* Add config check

* Support using an alternative userId for Figma (to support legacy bots)

* Reinstate key fixer

* lint
2022-01-06 17:13:58 +00:00
Half-Shot
73b2bf77ab Move validity check 2022-01-06 13:35:17 +00:00
Brian McKenna
97cca7da87 Allow generic only configurations
i.e. no GitHub, GitLab, etc.
2022-01-06 13:32:18 +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
7be3458e8d
Add config validator (#125)
* Add config validator

* Add docs
2022-01-04 17:59:08 +00:00
Will Hunt
d860b9acd1
Docs and config improvements (#124)
* Don't suggest to bind widgets in config

* Don't support 'appservice' just yet for the listener service.

* Add config validator

* Clarify listener configuration

* Improve text of webhooks docs

* Update config sample

* Revert "Add config validator"

This reverts commit b422b3da3d246f9eb1a6b47641ea4c1315252c2c.

* changelog
2022-01-04 17:49:59 +00:00
Will Hunt
e6dd83ac5b
Support napi v2 (#111)
* Export a sensible user agent

* Completely rewrite rust portions to be napi v2 compatible

* Format rust files

* Only lint TS files when running lint-node

* Don't include autogenerated typings in the tree

* changelog

* Autofix generated rust dependencies due to a bug in napi@2

* Fix for multiple runs

* Fix format_util file name

* Make script generic

* lint
2022-01-02 01:54:57 +00:00
Will Hunt
16e97d309d
Support GitLab wiki page events (#104)
* Support GitLab wiki events

* changelog

* Fixup formatting
2021-12-23 15:08:49 +00:00
Will Hunt
060b73263f
Add a listeners config block (#102)
* Add support for a multi-resource listener style handler

* Update configs

* Speed up config check

* Speed up config check

* Update docs
2021-12-21 16:52:12 +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
96192341ad Use vm2 over vm 2021-12-17 20:04:10 +00:00
Will Hunt
ffcb41a0e0
Add support for prometheus (#99)
* Add support for prometheus metrics

* Automatically build metrics documentation

* Slight linter tidyup

* add changelog

* fix workflow

* hush yarn
2021-12-16 15:05:03 +00:00
Will Hunt
a45cbb781d
Filter issues and PRs/MRs if a label filter is given (#95)
* Add ability to filter on labels

* Add ability to filter on labels

* changelog

* Update state whenever the state_key is defined

* Invert labels checks
2021-12-16 14:58:25 +00:00
Andy Balaam
2fb1b63d57
Fix spelling of received 2021-12-10 17:00:27 +00:00
Will Hunt
88b6aa1516
Merge pull request #93 from Half-Shot/hs/usability-tweaks
Various usability tweaks to GitHubRepo connections
2021-12-08 15:42:36 +00:00
Will Hunt
27090f1b91 Ensure bot config is copied 2021-12-08 15:20:11 +00:00
Will Hunt
067edea451 Support diffs 2021-12-08 11:13:45 +00:00
Will Hunt
21c2baac41 Various tweaks 2021-12-08 10:49:21 +00:00
Will Hunt
1debd54f2e
Merge pull request #83 from Half-Shot/hs/provisioning
Add provisioning API
2021-12-08 10:49:08 +00:00
Twilight Sparkle
bf0d832a23 Use quotes instead of brackets in GH PRs 2021-12-07 17:31:23 +00:00
Travis Ralston
19bc21d243 Use installations as reference for GitHub provisioning API
This does a number of things:
* Change the error codes on some responses so integration managers can pick up on it and show "Auth your org" sort of UI.
* Only reveal organizations and repos that are accessible via the installations, saving the integration manager from exception-based control flow.
* Treat the user's own name as an organization for alignment with traditional GitHub APIs. Typically speaking, "turt2live" is no different from "t2bot" for the purposes of UI and various older GitHub APIs.
* Whitespace fixes automatically applied by my editor (sorry)
2021-12-06 17:47:20 -07:00
Will Hunt
f341f6aca2 Refactor GitHub oauth to show user repositories properly 2021-12-06 18:42:53 +00:00
Will Hunt
00633826b8 Use slug 2021-12-06 15:10:53 +00:00
Will Hunt
acdb94dc1d Finish up ability to support multiple connections 2021-12-03 17:37:34 +00:00
Will Hunt
a3c7a29267 Support updating some configs 2021-12-03 17:27:22 +00:00