Commit graph

249 commits

Author SHA1 Message Date
e3d96faaa7 Call the write next datetime function when sending to the channel
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 34s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m10s
2024-09-22 14:38:09 +01:00
9d3d57ef30 Merge pull request 'Add a weekly cadence to the match schedule' (#15) from issue-9-advanced-cadence into main
All checks were successful
Test, Build and Publish / test (push) Successful in 33s
Test, Build and Publish / build-and-push-images (push) Successful in 1m9s
Reviewed-on: #15
2024-09-22 14:26:39 +01:00
39bb8dbf19 Remove unused timedelta import
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 33s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m10s
2024-09-22 14:23:59 +01:00
7491a4d2f8 Account for the cadence in all the messages
Some checks failed
Test, Build and Publish / test (pull_request) Failing after 23s
Test, Build and Publish / build-and-push-images (pull_request) Has been skipped
2024-09-22 14:20:47 +01:00
2ad7ed2ff2 Fix not returning values from safe_write functions 2024-09-22 14:20:34 +01:00
93590d14b7 Ensure a cadence of 0 does not get used
The user surely meant 1
2024-09-22 12:22:54 +01:00
d83f933f1d Only yield matching tasks if the weekly cadence has been hit
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 35s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m12s
2024-09-22 12:20:55 +01:00
e9cccefacb Add cadence argument to the /schedule command
This allows setting the cadence, or changing it. When changing the initial start time will be reset
2024-09-22 12:09:59 +01:00
b86aaf7016 Add cadence values to the matchy tasks
cadence - Run this task every "x" weeks
cadence - Unix seconds timestamp for the start of this cadence
2024-09-22 11:57:44 +01:00
caadca885c Merge pull request 'Remove TODO from readme' (#14) from mdiluz-patch-1 into main
All checks were successful
Test, Build and Publish / test (push) Successful in 34s
Test, Build and Publish / build-and-push-images (push) Successful in 1m15s
Reviewed-on: #14
2024-09-18 15:46:20 +01:00
6ce9c81658 Remove TODO from readme
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 35s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m14s
2024-09-18 15:44:09 +01:00
87f84942a3 Merge pull request 'Add a few more entries to the TODO' (#7) from mdiluz-patch-2 into main
All checks were successful
Test, Build and Publish / test (push) Successful in 35s
Test, Build and Publish / build-and-push-images (push) Successful in 1m15s
Reviewed-on: #7
2024-09-18 15:20:21 +01:00
b25b2ba502 Add a few more entries to the TODO
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 38s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m27s
2024-09-18 15:17:49 +01:00
bc2cbeddec Merge pull request 'Update dependency pytest to v8.3.3' (#6) from renovate/pytest-8.x into main
All checks were successful
Test, Build and Publish / test (push) Successful in 35s
Test, Build and Publish / build-and-push-images (push) Successful in 1m11s
Reviewed-on: #6
2024-09-12 08:19:38 +01:00
cc1d02386a Update dependency pytest to v8.3.3
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 36s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m17s
2024-09-10 11:00:08 +00:00
a0afa447da Merge pull request 'Update dependency pytest-asyncio to v0.24.0' (#5) from renovate/pytest-asyncio-0.x into main
All checks were successful
Test, Build and Publish / test (push) Successful in 33s
Test, Build and Publish / build-and-push-images (push) Successful in 1m11s
Reviewed-on: #5
2024-08-26 21:53:03 +01:00
1616888680 Update dependency pytest-asyncio to v0.24.0
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 33s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m11s
2024-08-26 20:51:13 +00:00
33b668a4a4 Merge pull request 'Configure Renovate' (#3) from renovate/configure into main
All checks were successful
Test, Build and Publish / test (push) Successful in 33s
Test, Build and Publish / build-and-push-images (push) Successful in 1m16s
Reviewed-on: #3
2024-08-26 21:00:27 +01:00
9e6366f238 Add renovate.json
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 33s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m11s
2024-08-26 20:58:35 +01:00
b1826c834f Merge pull request 'Delete docker-compose.yml' (#4) from mdiluz-patch-1 into main
All checks were successful
Test, Build and Publish / test (push) Successful in 33s
Test, Build and Publish / build-and-push-images (push) Successful in 1m16s
Reviewed-on: #4
2024-08-26 20:56:13 +01:00
a7096f60f7 Delete docker-compose.yml
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 33s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m12s
No longer needs to be in the repo
2024-08-26 20:54:20 +01:00
6677449644 Merge pull request 'Use var.DOCKER_REGISTRY for the registry location' (#2) from use-var-for-registry into main
All checks were successful
Test, Build and Publish / test (push) Successful in 33s
Test, Build and Publish / build-and-push-images (push) Successful in 1m10s
Reviewed-on: #2
2024-08-25 23:53:20 +01:00
7ce9769bf0 Pluralise the ${{ vars.x }} reference name
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 33s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m13s
2024-08-25 23:50:43 +01:00
f4d2c45d94 Use var.DOCKER_REGISTRY for the registry location
Some checks failed
Test, Build and Publish / test (pull_request) Successful in 33s
Test, Build and Publish / build-and-push-images (pull_request) Failing after 6s
2024-08-25 23:47:20 +01:00
c6e252a82a Remove the docker-compose file and simply add it as a suggestion
All checks were successful
Test, Build and Publish / test (push) Successful in 35s
Test, Build and Publish / build-and-push-images (push) Successful in 1m15s
2024-08-25 23:21:44 +01:00
7afa5086fd Use forgejo registry for the image
All checks were successful
Test, Build and Publish / test (push) Successful in 34s
Test, Build and Publish / build-and-push-images (push) Successful in 1m10s
2024-08-25 21:41:43 +01:00
25cb5b9dba Update and fix up for forgejo runners
All checks were successful
Test, Build and Publish / test (push) Successful in 34s
Test, Build and Publish / build-and-push-images (push) Successful in 1m14s
No more attestation, this doesn't work on forgejo
2024-08-25 19:30:19 +01:00
72880643b2 Merge pull request 'Update action to match with forgejo needs' (#1) from forgejo into main
Reviewed-on: #1
2024-08-25 16:32:18 +01:00
c1bcbeeab7 Update action to match with forgejo needs 2024-08-25 16:30:50 +01:00
dc14d48d20
Merge pull request #18 from mdiluz/character
Some checks failed
Test, Build and Publish / test (push) Has been cancelled
Test, Build and Publish / build-and-push-images (push) Has been cancelled
Add randomised strings to what matchy says
2024-08-17 22:59:08 +01:00
4a1c1083d0 Fix imports 2024-08-17 22:55:30 +01:00
ca87b3d17e Sneak in a removal of the autopep8 setting that isn't needed anymore 2024-08-17 22:54:38 +01:00
1b93396315 Add string to the new schedule button sharing 2024-08-17 22:53:05 +01:00
b5c86f51ca Fix up merge conflicts 2024-08-17 22:45:20 +01:00
381756ce91 Merge main 2024-08-17 22:39:07 +01:00
251befb1a5 Implement a ton of string variants 2024-08-17 22:33:04 +01:00
125105469a Pull out all strings the bot says to a class
Also implement a randomised wrapper
2024-08-17 21:57:27 +01:00
da0998cf62
Merge pull request #17 from mdiluz/add-schedule-button
Add a button to the /schedule command to share it with the channel
2024-08-17 15:06:17 +01:00
e880075d3b
Merge branch 'main' into add-schedule-button 2024-08-17 15:05:20 +01:00
cc8490f38f Update the schedule button to properly reply to the user 2024-08-17 15:03:57 +01:00
9d920ce831 Add a button to the /schedule command to post it to the channel 2024-08-17 14:59:16 +01:00
69005ef498 Convert State to global
This was just getting too painful to manage, especially passing around these state objects
2024-08-17 14:58:19 +01:00
934c2e24fc
Merge pull request #16 from mdiluz/fix-leavers
Fix /leave not working for anyone who's paused in the past
2024-08-17 14:17:13 +01:00
f926a36069 Fix /leave not working for anyone who's paused in the past
Some checks failed
Test, Build and Publish / test (push) Has been cancelled
Test, Build and Publish / build-and-push-images (push) Has been cancelled
We now clear the re-activate value when a user is unpaused.

Added bonus here is various bits of refactor and cleanup, with some tests
2024-08-17 14:14:45 +01:00
946de66f52 Ensure we clear the reactivate flag
Otherwise a user can pause any time they like but they can never leave
2024-08-17 12:34:07 +01:00
fe54dcb213
Merge pull request #15 from mdiluz/fix-time
Fix the time printout in /list
2024-08-17 00:27:18 +01:00
f7aff274bf
Merge branch 'main' into fix-time 2024-08-17 00:25:56 +01:00
aa60ea9676 Fix the time printout in /list
Forgetting to store the outcome of .replace, and also not zeroing the smaller parts
2024-08-17 00:24:58 +01:00
b4df026efb
Merge pull request #14 from mdiluz/add-cancel
Add /cancel
2024-08-17 00:15:39 +01:00
92be1d1bf0 Add /cancel
Using cancel=True on /schedule was a PITA
2024-08-17 00:14:10 +01:00