869 Commits

Author SHA1 Message Date
Will Hunt
bf88aab67d More cleanup 2024-02-12 10:54:37 +00:00
Half-Shot
4b626ee420 Try to implement a trait for storage. 2024-02-09 00:02:05 +00:00
Half-Shot
5b87dc046e Start porting the reader to Rust. 2024-02-08 14:24:58 +00:00
Half-Shot
149ca517c7 lint 2024-02-08 11:41:52 +00:00
Half-Shot
6649143ee5 Configure feed reader 2024-02-08 10:13:44 +00:00
Half-Shot
ffd3881fbf Improve performance of backoff insertion 2024-02-07 15:50:49 +00:00
Half-Shot
605139f6fd Slightly more efficient iteration 2024-02-07 15:12:54 +00:00
Half-Shot
db23748dba Content doesn't need to be calculated twice. 2024-02-07 15:11:32 +00:00
Half-Shot
bd0822ee95 lint 2024-02-07 12:59:30 +00:00
Half-Shot
be4a46894a fix hasher function 2024-02-07 11:58:58 +00:00
Half-Shot
bec670f712 Speed up checking for previous guids. 2024-02-07 11:53:21 +00:00
Half-Shot
958bdcb26d Vastly better shuffle method 2024-02-07 11:09:55 +00:00
Half-Shot
1614a2ab96 Follow the advice and use a VecDeque as it's slightly faster. 2024-02-07 10:44:40 +00:00
Half-Shot
4838ba1fab correct comment 2024-02-07 10:27:34 +00:00
Half-Shot
e6ddcb624f Add some variance to speed up while loop 2024-02-07 10:27:21 +00:00
Half-Shot
5659d889da Remove testing URL 2024-02-07 10:27:13 +00:00
Half-Shot
92842fdd10 Merge remote-tracking branch 'origin/main' into hs/add-sensible-rss-backoff 2024-02-07 10:24:22 +00:00
Half-Shot
d0846b1325 Fix urls calculation 2024-02-07 10:22:28 +00:00
Half-Shot
9232213159 Better comments 2024-02-06 16:20:21 +00:00
Half-Shot
64ab808179 lint further 2024-02-06 16:16:01 +00:00
Half-Shot
4274eb41a6 lint 2024-02-06 16:15:40 +00:00
Will Hunt
3ff87b7564
Retry failed RSS entries (#891)
* Retry event send for RSS.

* Fix large summary bridges.

* Remove unused import

* Add some comments
2024-02-06 16:15:13 +00:00
Half-Shot
e3d085e5d6 fix test 2024-02-06 16:14:53 +00:00
Half-Shot
965c30bc01 Drop only! 2024-02-06 16:14:48 +00:00
Half-Shot
ea7af88784 Optimise backoff function further 2024-02-06 16:13:11 +00:00
Half-Shot
517d04482c pop 2024-02-06 13:03:24 +00:00
Half-Shot
eff30b8f36 linting 2024-02-06 13:02:04 +00:00
Half-Shot
80d4b9badc Rewrite in rust. 2024-02-06 12:58:37 +00:00
Half-Shot
18429cef94 Add this.feedLastBackoff 2024-02-06 12:10:04 +00:00
Half-Shot
b7cd4fec5d Remove unused finally 2024-02-06 12:09:04 +00:00
Half-Shot
2ee501291c Add backoff for failing feeds. 2024-02-06 12:08:15 +00:00
Half-Shot
f5568e2fb9 Increase max backoff time to a day 2024-02-06 11:58:58 +00:00
Half-Shot
e78d920337 Backoff RSS requests if a url repeatedly fails. 2024-02-06 11:58:17 +00:00
Will Hunt
90927a71f4
Add support for mentioning multiple assignees on GitHub issues (#889)
* Add support for multiple assignees on issues

* changelog
2024-02-06 10:09:21 +00:00
dependabot[bot]
ee7e3ff03f
Bump h2 from 0.3.22 to 0.3.24 (#885)
Bumps [h2](https://github.com/hyperium/h2) from 0.3.22 to 0.3.24.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.24/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.22...v0.3.24)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-06 09:36:12 +00:00
dependabot[bot]
4d5b786352
Bump vite from 5.0.10 to 5.0.12 (#886)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.10 to 5.0.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-06 09:26:44 +00:00
Will Hunt
1cbd73bb46
Add troubleshooting doc. (#882)
* Add troubleshooting doc.

* Create 882.doc

Signed-off-by: Will Hunt <will@half-shot.uk>

* Rename 882.doc to 882.doc

Signed-off-by: Will Hunt <will@half-shot.uk>

---------

Signed-off-by: Will Hunt <will@half-shot.uk>
2024-01-16 09:43:56 +00:00
Will Hunt
6d3800a018
Convert bridgeAPI usages to preact context. (#871)
* Fix widget client only talking to localhost

* Improve error text around widget communication.

* changelog

* Remove unused.

* Simplify code by using a context for bridge API.
2024-01-16 09:44:51 +00:00
Will Hunt
caaabbc300
Don't cancel docker hub builds as it breaks merge queues.
Signed-off-by: Will Hunt <will@half-shot.uk>
2024-01-16 09:44:41 +00:00
Srilokh Karuturi
3bb6724fe9
Update setup.md (#879)
* Update setup.md

Add relevant information related to webhooks resource endpoint, allows for less confusion and going back and forth between docs

Signed-off-by: Srilokh Karuturi <75606167+srilokhkaruturi@users.noreply.github.com>

* Create 879.doc

Signed-off-by: Will Hunt <will@half-shot.uk>

---------

Signed-off-by: Srilokh Karuturi <75606167+srilokhkaruturi@users.noreply.github.com>
Signed-off-by: Will Hunt <will@half-shot.uk>
Co-authored-by: Will Hunt <will@half-shot.uk>
2024-01-12 10:37:49 +00:00
dependabot[bot]
4adfd6d11a
Bump follow-redirects from 1.15.3 to 1.15.4 (#881)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.3...v1.15.4)

---
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>
2024-01-11 08:18:58 +00:00
Twilight Sparkle
675c1c14d0
Add command to list feeds in JSON and YAML format (#876)
* Add command to list feeds in YAML format

* Add line breaks

* Add changelog

* Add a period in the help

* Add $URL to templates and add feed list format docs

* Use an optional arg on yaml list instead of a separate function

* Update changelog to include JSON format
2024-01-04 19:14:11 +00:00
Half-Shot
0175f9e2a5 5.1.2
Bugfixes
--------

- Fix widget pinning to light theme. ([\#873](https://github.com/matrix-org/matrix-hookshot/issues/873))
- Fix hookshot failing to format API errors.
  Only log a stacktrace of API errors on debug level logging, log limited error on info. ([\#874](https://github.com/matrix-org/matrix-hookshot/issues/874))
- Fix GitHub events not working due to verification failures. ([\#875](https://github.com/matrix-org/matrix-hookshot/issues/875))

Internal Changes
----------------

- Fix spelling of "successfully". ([\#869](https://github.com/matrix-org/matrix-hookshot/issues/869))
5.1.2
2024-01-02 16:09:04 +00:00
Will Hunt
41ee467e2d
Fix logged errors not being properly formatted (and tone down the error verbosity a bit) (#874)
* Ensure we add the error handlers last

* Refactor error middleware to be less noisy

* changelog

* Add finalise
2024-01-02 15:58:25 +00:00
Will Hunt
c0bb71d553
Fix GitHub events not verifying (#875)
* Ensure we verify the raw payload.

* changelog

* Tidy up types

* Add test for GitHib

* Mock out GitHub API to allow tests to pass.

* Lint
2024-01-02 15:52:43 +00:00
Will Hunt
3ab7553f41
Do not pin widget to light theme (#873)
* Don't pin widget theme to light

* changelog
2024-01-02 11:34:10 +00:00
Simon Quigley
3af2aa7032
sucessfully (#869)
* sucessfully

* Create 869.misc

---------

Co-authored-by: Will Hunt <will@half-shot.uk>
2023-12-29 16:24:49 +00:00
Half-Shot
6a23dc7854 5.1.1 5.1.1 2023-12-29 16:17:13 +00:00
Will Hunt
5c5bdd546d
Fix widgets not working when bound to the same listener as webhooks. (#872)
* Bind listener in bridge.

* Add a test to confirm behaviour

* Fix test name

* changelog
2023-12-29 16:11:08 +00:00
Half-Shot
445be6e78c 5.1.0 5.1.0 2023-12-29 12:19:15 +00:00