475 Commits

Author SHA1 Message Date
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
05852d9de8 Clarify passkey for docker
Fixes #133
2022-01-08 15:11:24 +00:00
Half-Shot
271ee2a2f5 1.1.0 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
Will Hunt
cdd05e7aeb
Explain that OAuth requests go through the webhooks listener (#132)
* Explain that OAuth requests go through the webhooks listener

* Create 132.doc
2022-01-06 13:39:08 +00:00
Half-Shot
77ef81474c changelog 2022-01-06 13:37:34 +00:00
Half-Shot
3416f9eefd Merge remote-tracking branch 'pnf/patch-1' 2022-01-06 13:36:33 +00:00
Half-Shot
73b2bf77ab Move validity check 2022-01-06 13:35:17 +00:00
Half-Shot
5507c89188 changelog 2022-01-06 13:32:18 +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
4388930a15
Switch to build script (#121)
* Switch to build script

* temp: export the result of the types build

* changelog

* Get output result

* Remove debug code

* Fix warning visibility

* Move the web build between the rust steps.

* Add debugging again

* Close file, and await promises

* drop the dumb cat
2022-01-04 00:04:27 +00:00
Will Hunt
f452cc7ed2
Clarify that includingLabels, excludingLabels uses an array 2022-01-03 23:30:05 +00:00
Kim Brose
426a34088d
fix more typos (#118)
* fix more typos

* Update webhooks.md

* Update github_repo.md
2022-01-03 23:04:36 +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
Brian McKenna
70739ac95f
Update setup bot command for webhooks 2021-12-31 15:07:29 +05:30
Will Hunt
694d50826e
Fix mdbook title 2021-12-28 19:59:19 +00:00
Will Hunt
701622f507
Add some nice emoji titles to summary (#110)
* Add some nice emoji titles to summary

* Create 110.docs

* Rename 110.docs to 110.doc
2021-12-28 18:07:43 +00:00
Kim Brose
47437c5798
fix some typos (#107)
* typos

* Create 107.doc

Co-authored-by: Will Hunt <will@half-shot.uk>
2021-12-28 18:04:58 +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
02cae5eb88 Jira docs tweaks 2021-12-22 10:19:19 +00:00
Will Hunt
7af3e26faa
Update README.md 2021-12-21 17:37:58 +00:00
Will Hunt
0d623b7703
Whoops wrong link 2021-12-21 17:29:09 +00:00
Will Hunt
04eeb6f2d0 1.0.0 1.0.0 2021-12-21 17:18:15 +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
6d46492693 don't prefix release to docker releases 2021-12-21 16:48:26 +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
9c8c1170e8
Merge pull request #101 from Half-Shot:hs/vm2
Use vm2 for generic hook transformation functions
2021-12-18 17:04:14 +00:00
Will Hunt
d50216f791 changelog 2021-12-18 17:01:08 +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
Will Hunt
2e21800d8e
Add some changelogs retroactively (#98)
* Add some changelogs retroactively

* tidy up
2021-12-14 18:08:34 +00:00
Will Hunt
9425b778fb
Make sample config CI diff visible (#97)
* Replace cmp with diff, and check if the diff is visible

* changelog
2021-12-14 17:53:01 +00:00
Will Hunt
8bdf789553
Add towncrier (#96)
* Add support for towncrier

* Use correct command

* Compare properly

* Work within the correct directory

* Try main

* Try a fetch-depth of 0

* changelog

* Fix default config

* Update sample
2021-12-13 13:10:36 +00:00
Will Hunt
b34130d7ea
Merge pull request #94 from andybalaam/patch-1
Fix spelling of received
2021-12-13 13:09:41 +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
Will Hunt
efe8d1ff4f
Merge pull request #92 from Twi1ightSparkle/twily/quotesNotBrackets
Use quotes instead of brackets in GH PRs
2021-12-07 17:46:30 +00:00
Twilight Sparkle
bf0d832a23 Use quotes instead of brackets in GH PRs 2021-12-07 17:31:23 +00:00
Will Hunt
d2fe2c6c2d
Merge pull request #91 from turt2live/travis/test
Use installations as reference for GitHub provisioning API
2021-12-07 15:15:03 +00:00