gitlab-ci: add scheduled pipeline to triage inactive issues and MRs
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- deploy
|
- deploy
|
||||||
|
- triage
|
||||||
|
|
||||||
.fedora_install: &fedora_install
|
.fedora_install: &fedora_install
|
||||||
before_script:
|
before_script:
|
||||||
@@ -196,3 +197,11 @@ pages:
|
|||||||
- public
|
- public
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
triage:issues:
|
||||||
|
stage: triage
|
||||||
|
script:
|
||||||
|
- gem install gitlab-triage
|
||||||
|
- gitlab-triage --token $API_TOKEN --source-id $SOURCE_ID
|
||||||
|
only:
|
||||||
|
- schedules
|
||||||
|
67
.triage-policies.yml
Normal file
67
.triage-policies.yml
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
host_url: https://gitlab.freedesktop.org
|
||||||
|
|
||||||
|
resource_rules:
|
||||||
|
issues:
|
||||||
|
rules:
|
||||||
|
- name: Close issues with not activity for 6 months
|
||||||
|
conditions:
|
||||||
|
date:
|
||||||
|
attribute: updated_at
|
||||||
|
condition: older_than
|
||||||
|
interval_type: months
|
||||||
|
interval: 6
|
||||||
|
state: opened
|
||||||
|
actions:
|
||||||
|
comment: |
|
||||||
|
"This issue has been inactive for 6 months, closing automatically, please reopen if you think the issue is still relevant."
|
||||||
|
status: close
|
||||||
|
labels:
|
||||||
|
- auto-closed
|
||||||
|
- name: Close RFE with not activity for 12 months
|
||||||
|
conditions:
|
||||||
|
date:
|
||||||
|
attribute: updated_at
|
||||||
|
condition: older_than
|
||||||
|
interval_type: months
|
||||||
|
interval: 12
|
||||||
|
state: opened
|
||||||
|
labels:
|
||||||
|
- enhancement
|
||||||
|
actions:
|
||||||
|
comment: |
|
||||||
|
"This enhancement issue has been inactive for 12 months, closing automatically, please reopen if you think the issue is still relevant."
|
||||||
|
status: close
|
||||||
|
labels:
|
||||||
|
- auto-closed
|
||||||
|
- name: Clear auto-closed label for open issues
|
||||||
|
conditions:
|
||||||
|
state: opened
|
||||||
|
labels:
|
||||||
|
- auto-closed
|
||||||
|
actions:
|
||||||
|
remove_labels:
|
||||||
|
- auto-closed
|
||||||
|
merge_requests:
|
||||||
|
rules:
|
||||||
|
- name: Close MRs with no activity after 2 month
|
||||||
|
conditions:
|
||||||
|
date:
|
||||||
|
attribute: updated_at
|
||||||
|
condition: older_than
|
||||||
|
interval_type: months
|
||||||
|
interval: 2
|
||||||
|
state: opened
|
||||||
|
actions:
|
||||||
|
comment: |
|
||||||
|
"This MR has been inactive for more than 2 months, closing automatically, please reopen if you think it is still relevant."
|
||||||
|
status: close
|
||||||
|
labels:
|
||||||
|
- auto-closed
|
||||||
|
- name: Clear auto-closed label for open MRs
|
||||||
|
conditions:
|
||||||
|
state: opened
|
||||||
|
labels:
|
||||||
|
- auto-closed
|
||||||
|
actions:
|
||||||
|
remove_labels:
|
||||||
|
- auto-closed
|
Reference in New Issue
Block a user