diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3ea37cd7f0439b9369fafb7cb392910f085d0a2f..da4bbcd991b3750a31d52f3241161972de40b483 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - pre-release - release + - triage # Расчет новой версии и формирование Changelog get_changelog: @@ -90,3 +91,12 @@ release: name: 'Release $VERSION' description: '$CI_COMMIT_TAG' 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-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 0000000000000000000000000000000000000000..1ddb49699ea55485ee012c02d29e60d2752d5da5 --- /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