Automate routine work with stale GitLab issues and merge requests.
Part of the @kira
bots family.
Policy:
- All actions must be idempotent: multiple runs – the same state
- All actions must make sense for all projects
- Dry run your script several times with
--dry-run
flag to make sure it works
We use gitlab-triage
inside.
So, consult their docs
about deployment and usage.
You can even have a look at GitLab's internal policies.
It is possible to use this setup with .gitlab-ci.yml
and Heroku.
You will need to create this set of labels:
deadline:soft
deadline:hard
deadline:miss
validation:labels
validation:stale
validation:estimate
validation:invalid
notification:first
notification:last
You can use kira-setup
to create these labels for you.
To setup a new Heroku server you will need to:
- Setup a scheduler
- Setup all env vars with tokens and ids
- Enjoy!
Use worker
process type to run inside a scheduler every 10 minutes.
Make sure to fill all env vars with the correct values.
You can generate .gitlab-ci.yml
file to run this script as scheduled events:
- Use
--init-ci
to generate default.gitlab-ci.yml
file - Enable scheduled builds in CI