Skip to content
Snippets Groups Projects
Commit 4d946fd0 authored by Michael Leopard's avatar Michael Leopard
Browse files

Adding triage bot

parent a1e3735e
No related branches found
No related tags found
1 merge request!18Adding triage bot
stages:
- triage
dry-run:triage:
image: ruby:2.7
stage: triage
script:
- gem install gitlab-triage
- gitlab-triage --help
- gitlab-triage --dry-run --token $TRIAGE_TOKEN --source projects --source-id $CI_PROJECT_PATH
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
changes:
- .triage-policies.yml
when: manual
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
run:triage:triage:
image: ruby:2.7
stage: triage
script:
- gem install gitlab-triage
- gitlab-triage --token $TRIAGE_TOKEN --source-id $CI_PROJECT_PATH
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
resource_rules:
issues:
rules:
- name: Close due to inactivity
conditions:
date:
attribute: updated_at
condition: older_than
interval_type: months
interval: 6
state: opened
actions:
status:
close
comment: |
This issue has not been updated in 6 months. Closing due to inactivity.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment