The basic aim of this project is to create a job which raises a Gitlab issue at some pre-defined interval.
For example, I might want to configure it to
HOME
once a month to say "check softener salt"Vehicles
once every 3 months to say "check fluid levels"etc.
The configuration mechanism needs to be as simple as possible - which probably means YAML (or maybe json?):
- name: "Check Softener Salt"
project: "home/HOME"
day: 1
month: "*"
description: "Check the softener salt"
assignee: ben
For the first incarnation, at least, the minimum supported interval should be daily. That should mean that the system can be scheduled by simply creating a cronjob.
Activity
08-Sep-24 10:27
assigned to @btasker
08-Sep-24 10:28
changed the description
08-Sep-24 10:46
When creating a personal access token it looks like it needs to be the
api
scope that's granted - there isn't one which can be used to simply allow issue creation.08-Sep-24 11:02
The user associated with the access token needs to be invited into relevant projects with privileges of at least
Developer
.Otherwise, it can create issues via the API but cannot add labels or assign the issue.
08-Sep-24 12:31
mentioned in commit 68e83738946acec0c5e3ef3fc1aa60ba1e312efa
Message
feat: implement basic workflow (#1)
08-Sep-24 12:33
To send email notifications, the Gitlab instance will need smtp settings to be provided in config.
I connect to a Mythic Beasts hosted email server and so needed to use the following settings in
gitlab.rb
08-Sep-24 15:57
Have set up a public facing repo and container image for this:
ghcr.io/bentasker/gitlab_recurring_issue:0.1