The script will be run once a day (by cron), but each ticket in the config needs to be able to specify how often it should be raised.
This is stateless (for the time being at least) so whilst it should be possible to say "Every Monday" it won't be possible to say "every 5 days".
Currently the configuration is provided in a schedule
object. The example file contains the following mechanisms:
# Run on the first day of every month
schedule:
day: 1
month: "*"
# Will not be supported for now
schedule:
every: 4 weeks
Need to build the logic which will read and check these schedules.
I'd like to support the following values for every
:
Mon
(tues.. etc)run
(do it every time the script is run)Eventually I'd like it to support nth
stuff too - every second Monday etc - but that's out of scope for now
Activity
08-Sep-24 13:38
assigned to @btasker
08-Sep-24 14:07
mentioned in commit 4c6cf8fc9527e1d27bf3c21b24a838cce03358a5
Message
feat: implement scheduling logic (utilities/gitlab_recurring_issue#4)
08-Sep-24 14:10
OK we now support the following:
Specific Date:
month
can also be set to*
to match every month. It can be a shortname or it can be numeric (i.e.9
for September)Periodic:
Todo:
month
to be a listday
to*
?08-Sep-24 14:14
mentioned in commit 608bb61603266e4f8586a52ff407e478420ad749
Message
feat: allow multiple months to be provided in schedule (utilities/gitlab_recurring_issue#4)
08-Sep-24 14:15
It's now possible to specify multiple months:
08-Sep-24 14:17
mentioned in commit 54efae489c3cdaa04f234aa65902aaf3741eed4e
Message
feat: allow multiple days to be specified (utilities/gitlab_recurring_issue#4)
08-Sep-24 14:17
It's now possible to do the same with days:
I guess we should probably implement similar for
every
08-Sep-24 14:19
mentioned in commit 63aebece1434602bc19c3eafbb9f9bd4d747cb07
Message
feat: allow multiple
every
values (utilities/gitlab_recurring_issue#4)08-Sep-24 14:20
Can now do
08-Sep-24 14:49
mentioned in commit 2cf432d65853b09a16a6db638c4cf779a7ea22f8
Message
feat: implement support for nth scheduling (utilities/gitlab_recurring_issue#4)
08-Sep-24 14:50
The commit above implements support for
nth
weekday scheduling.For example
Will trigger on the 3rd Sunday of the month
08-Sep-24 14:51
I think we've got enough flexibility to do most of what I currently want/need