From 4eae75fc9373287e693dfe2b9b08e5a3d81bcd2c Mon Sep 17 00:00:00 2001 From: Anton Sattarov <dirty.mew@gmail.com> Date: Tue, 18 Feb 2025 14:31:56 +0100 Subject: [PATCH 1/2] =?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=20=20Gitlab=20Tri?= =?UTF-8?q?age=20Bot=20=D0=B4=D0=BB=D1=8F=20perxis-proto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 8 ++++++ .triage-policies.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 .triage-policies.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3ea37cd..00e8e71 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -90,3 +90,11 @@ release: name: 'Release $VERSION' description: '$CI_COMMIT_TAG' tag_name: '$VERSION' +# -------gitLab-triage-bot------- +run_triage_scheduled: + image: ruby + script: + - gem install gitlab-triage + - gitlab-triage --token $TRIAGE_TOKEN --source-id perxis/perxis-proto + 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 0000000..1ddb496 --- /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 From 90ad91595bb3a767b074406313fccd809097e092 Mon Sep 17 00:00:00 2001 From: Anton Sattarov <dirty.mew@gmail.com> Date: Tue, 18 Feb 2025 14:43:15 +0100 Subject: [PATCH 2/2] fix pipeline --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00e8e71..da4bbcd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - pre-release - release + - triage # Расчет новой версии и формирование Changelog get_changelog: @@ -92,6 +93,7 @@ release: tag_name: '$VERSION' # -------gitLab-triage-bot------- run_triage_scheduled: + stage: triage image: ruby script: - gem install gitlab-triage -- GitLab