Skip to content
Snippets Groups Projects
Commit 8defc26d authored by Anton Sattarov's avatar Anton Sattarov
Browse files

Добавлен запуск Gitlab Triage Bot для perxis-go

parent 23f78314
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ stages: ...@@ -4,6 +4,7 @@ stages:
- test - test
- pre-release - pre-release
- release - release
- triage
run_tests: run_tests:
rules: rules:
...@@ -151,3 +152,13 @@ release: ...@@ -151,3 +152,13 @@ release:
name: 'Release $VERSION' name: 'Release $VERSION'
description: '$VERSION' description: '$VERSION'
tag_name: '$VERSION' tag_name: '$VERSION'
# -------gitLab-triage-bot-------
run_triage_scheduled:
stage: triage
image: ruby
script:
- gem install gitlab-triage
- gitlab-triage --token $TRIAGE_TOKEN --source-id perxis/perxis-go
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
\ No newline at end of file
host_url: https://git.perx.ru
resource_rules:
issues:
rules:
- name: Set Milestone
conditions:
state: opened
milestone: none
labels:
- "Status: { ToDo, Doing , Review, Testing, Release }"
actions:
# labels:
# - needs attention
comment: |
{{author}}, {{assignee}}, обратите внимание! Для задачи не выбран Milestone.
- name: Set Estimate
conditions:
state: opened
labels:
- "Status: { ToDo, Doing , Review, Testing, Release }"
forbidden_labels:
- "p: { 0, 1, 2, 3, 5, 8, 13, 20, 40, 100 }"
actions:
# labels:
# - needs attention
comment: |
{{author}}, {{assignee}}, обратите внимание! Задача без оценки.
- name: Outdated Issues
conditions:
date:
attribute: updated_at
condition: older_than
interval_type: weeks
interval: 2
state: opened
forbidden_labels:
- "Status: { Testing, Release }"
limits:
most_recent: 50
actions:
# labels:
# - needs attention
comment: |
{{author}}, {{assignee}}, обратите внимание! Задача слишком долго находится в открытом статусе без изменений.
merge_requests:
rules:
- name: Set Milestone
conditions:
milestone: none
state: opened
actions:
# labels:
# - needs attention
comment_type: thread
comment: |
{{author}}, {{assignee}}, {{reviewers}}, обратите внимание! Для MR не выбран Milestone.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment