402 Commits

Author SHA1 Message Date
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
dependabot[bot]
2d240fc97b
Bump vm2 from 3.9.5 to 3.9.6 (#195)
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.5 to 3.9.6.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.5...3.9.6)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: direct:production
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 17:24:59 +00:00
Kim Brose
5eb05d179c
fix #162 (#189)
* fix #162

* Add changelog entry
2022-02-14 14:04:33 +00:00
dependabot[bot]
5a090ed0e2
Bump node-fetch from 2.6.6 to 2.6.7 (#194)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 14:04:18 +00:00
dependabot[bot]
964259c1c0
Bump follow-redirects from 1.14.7 to 1.14.8 (#188)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 12:48:55 +00:00
Slavi Pantaleev
818bb03364
Do not explicitly pass --target to rustup (#184)
* Do not explicitly pass --target to rustup

It doesn't seem to be necessary to install Rust.
Passing `--target` prevents the Dockerfile from being built on different architectures.
Not passing it makes it auto-detect what to install.

Discussed here: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1505

* Add changelog entry
2022-01-31 18:27:10 +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
Half-Shot
546c5ec4b6 Fix readme badges 2022-01-14 20:51:54 +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
Kim Brose
3e36cd7092
review setup.md#Permissions (#171) 2022-01-14 18:26:22 +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
dependabot[bot]
e541f44c8a
Bump follow-redirects from 1.14.6 to 1.14.7 (#170)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.6 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.6...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-14 11:30:46 +00:00
dependabot[bot]
38441b9477
Bump markdown-it from 12.3.0 to 12.3.2 (#169)
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 12.3.0 to 12.3.2.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/12.3.0...12.3.2)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-type: direct:production
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-13 01:29:41 +00:00
Will Hunt
e2b4b584e5
Add some icons to the documentation for various platforms (#168)
* Add some icons to the documentation for various platforms

* changelog
2022-01-13 01:29:14 +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
Kim Brose
6d7112ae07
Update setup.md (#155) 2022-01-11 22:26:18 +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
8f2cf779ac
Further docs clarifications (#150)
* Clarify secret token.

* Fix list in Jira.
Fixes #146

* Try to clarify the GitHub docs a bit. Fixes #148

* Add documentation on Docker config validation.
Fixes #152

* Update docs/setup/jira.md

Co-authored-by: Kim Brose <kim.brose@rwth-aachen.de>

Co-authored-by: Kim Brose <kim.brose@rwth-aachen.de>
2022-01-11 18:44:16 +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
Kim Brose
2a676afca0
fix more typos (#142)
* fix more typos

* Update jira.md
2022-01-10 23:26:45 +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
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