From 8defc26d3340329ea1187706423f8e98efbb6a18 Mon Sep 17 00:00:00 2001 From: Anton Sattarov <dirty.mew@gmail.com> Date: Tue, 18 Feb 2025 16:00:28 +0100 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=20Gitlab=20Triage?= =?UTF-8?q?=20Bot=20=D0=B4=D0=BB=D1=8F=20perxis-go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 11 +++++++++ .triage-policies.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 .triage-policies.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a438a13..c92257e4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ stages: - test - pre-release - release + - triage run_tests: rules: @@ -151,3 +152,13 @@ release: name: 'Release $VERSION' description: '$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 diff --git a/.triage-policies.yml b/.triage-policies.yml new file mode 100644 index 00000000..1ddb4969 --- /dev/null +++ b/.triage-policies.yml @@ -0,0 +1,59 @@ +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 -- GitLab