Savrona
Savrona

Reputation: 333

Gitlab issue close automatically

I wonder if there is a way to close a issue automatically at a certain time like every Friday at 18:00 if that issue has a label or something like that.

Upvotes: 0

Views: 295

Answers (2)

Jakob Liskow
Jakob Liskow

Reputation: 1625

GitLab did not include such a feature. They use their own bot to triage issues and merge requests.

Upvotes: 1

sytech
sytech

Reputation: 40901

This isn't a feature of GitLab itself. However, you could run a scheduled pipeline that uses the issues API to do this.

To make sure the scheduled pipeline has the properly scoped API access, you can generate a project access token and place it in the CI/CD variables.

The scheduled pipeline does not even necessarily have to be configured in the same project in which you want issues to be expired, if you're concerned about it triggering existing pipeline jobs. For example, you can create a new project called "issue cleanup" and setup the pipeline there to cleanup issues of one or more other projects on the schedule

Upvotes: 0

Related Questions