Automate routine work with stale GitLab issues, merge requests and branches.
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-runflag to make sure it works
Primary method is via docker:
docker pull wemakeservices/kira-staleWe use gitlab-triage inside.
So, consult their docs
about deployment and usage.
You can even have a look at GitLab's internal policies.
You will need to create this set of labels:
deadline::softdeadline::harddeadline::missvalidation:labelsvalidation:stalevalidation:estimatevalidation:invalidmr::processed
You can use kira-setup to create these labels for you.
We ship a docker image that can be used as:
docker pull wemakeservices/kira-stale:latest
docker run --rm wemakeservices/kira-stale \
gitlab-triage \
--source-id="your-gitlab-project-int-id" \
--token="your-gitlab-token-with-api-perm"