Issue/merge request triage bot #9

Open
opened 2021-12-29 02:25:54 +00:00 by jon_nfc · 25 comments
jon_nfc commented 2021-12-29 02:25:54 +00:00 (Migrated from gitlab.com)

📝 Description

Add a CI Job that does issue and merge request Jobs. The issue should auto run on detection of a rules file ./.triage-policies.yml.

This job should run on the development branch so that any immediate changes to rules are applied as soon as it has been merged to dev. The job is to be set for a scheduled time.

🚧 Tasks

  • [ ] auto runs if rules file detected (only development branch)
  • all other jobs setup to prevent being triggered on scheduled
  • updated readme
  • triage job stage added to root readme.md
  • gitlab-org/ruby/gems/gitlab-triage#261 problem resolved
## :memo: Description Add a CI Job that does issue and merge request Jobs. The issue should auto run on detection of a rules file `./.triage-policies.yml`. This job should run on the development branch so that any immediate changes to rules are applied as soon as it has been merged to dev. The job is to be set for a scheduled time. ### :link: Links / Resources - [gitlab triage bot](https://gitlab.com/gitlab-org/ruby/gems/gitlab-triage) - failure reported (gitlab-org/ruby/gems/gitlab-triage#261) ### :construction: Tasks - ~~[ ] auto runs if rules file detected (only development branch)~~ - [ ] all other jobs setup to prevent being triggered on scheduled - [ ] updated readme - [ ] `triage` job stage added to root readme.md - gitlab-org/ruby/gems/gitlab-triage#261 problem resolved
jon_nfc commented 2021-12-29 02:44:25 +00:00 (Migrated from gitlab.com)

changed time estimate to 12h

changed time estimate to 12h
jon_nfc commented 2021-12-29 02:44:25 +00:00 (Migrated from gitlab.com)

added 10m of time spent

added 10m of time spent
jon_nfc commented 2021-12-29 03:15:11 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-12-29 03:16:16 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-12-29 09:39:17 +00:00 (Migrated from gitlab.com)

removed the relation with nofusscomputing/ops#2

removed the relation with nofusscomputing/ops#2
jon_nfc commented 2021-12-29 09:39:29 +00:00 (Migrated from gitlab.com)

marked this issue as related to nofusscomputing/ops#2

marked this issue as related to nofusscomputing/ops#2
nfc_bot commented 2021-12-30 03:43:20 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#9

mentioned in issue nofusscomputing/ops#9
jon_nfc commented 2021-12-30 06:22:49 +00:00 (Migrated from gitlab.com)

.gitlab-ci.yml

.Triage:
  stage: triage
  image: ruby:2.7
  before_script:
    - ruby --version
    - gem install gitlab-triage
  script:
    - gitlab-triage --token $TRIAGE_TOKEN --source-id $TRIAGE_SOURCE_ID --source $TRIAGE_SOURCE_TYPE --policies-file $TRIAGE_POLICY_FILE --debug
  only:
    - schedules


# .gitlab-ci.yml ``` yaml .Triage: stage: triage image: ruby:2.7 before_script: - ruby --version - gem install gitlab-triage script: - gitlab-triage --token $TRIAGE_TOKEN --source-id $TRIAGE_SOURCE_ID --source $TRIAGE_SOURCE_TYPE --policies-file $TRIAGE_POLICY_FILE --debug only: - schedules ```
jon_nfc commented 2021-12-30 06:32:12 +00:00 (Migrated from gitlab.com)

gitlab triage

This job will run the gitlab-triage to triage issues, epics and merge requests as specified in the policies file.

This job provides no badges

Dependencies

  • there are no dependencies

your .gitlab-ci.yml changes

To use this job add the following to your .gitlab-ci.yml file

stages:
    - triage

include:
    - local: CI/triage/gitlab-triage/.gitlab-ci.yml

{job name}:
    extends:
      - .Triage
    variables:
      TRIAGE_SOURCE_ID: nofusscomputing
      TRIAGE_SOURCE_TYPE: group
      TRIAGE_POLICY_FILE: .triage-policies.yml


CI/CD Variables required

var name Description
TRIAGE_SOURCE_ID path to the group or project
TRIAGE_SOURCE_TYPE group or project option
TRIAGE_POLICY_FILE the policy filename

Job Workflow

When you have created your job in .gitlab-ci.yml you will have to create a scheduled job to trigger your triage jobs.

Artifacts

No artifacts are created

License

To view the license for this folder and any sub-folders, refer here

# gitlab triage This job will run the gitlab-triage to triage issues, epics and merge requests as specified in the policies file. This job provides no badges ## Dependencies - there are no dependencies ## your .gitlab-ci.yml changes To use this job add the following to your `.gitlab-ci.yml` file ``` yaml stages: - triage include: - local: CI/triage/gitlab-triage/.gitlab-ci.yml {job name}: extends: - .Triage variables: TRIAGE_SOURCE_ID: nofusscomputing TRIAGE_SOURCE_TYPE: group TRIAGE_POLICY_FILE: .triage-policies.yml ``` ## CI/CD Variables required | var name | Description | |:----:|:----| | TRIAGE_SOURCE_ID | path to the group or project | | TRIAGE_SOURCE_TYPE | group or project option | | TRIAGE_POLICY_FILE | the policy filename | ## Job Workflow When you have created your job in `.gitlab-ci.yml` you will have to create a scheduled job to trigger your triage jobs. ## Artifacts No artifacts are created ## License To view the license for this folder and any sub-folders, refer [here](https://gitlab.com/nofusscomputing/projects/gitlab-ci)
jon_nfc commented 2021-12-30 06:32:12 +00:00 (Migrated from gitlab.com)

added 15m of time spent

added 15m of time spent
jon_nfc commented 2021-12-30 06:33:18 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-12-30 06:35:36 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-12-30 06:36:47 +00:00 (Migrated from gitlab.com)

assigned to @jon_nfc

assigned to @jon_nfc
jon_nfc commented 2021-12-30 06:38:52 +00:00 (Migrated from gitlab.com)

changed time estimate to 1h

changed time estimate to 1h
jon_nfc commented 2022-01-01 08:23:28 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#2

mentioned in issue nofusscomputing/ops#2
jon_nfc commented 2022-01-01 08:33:40 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-02 05:29:07 +00:00 (Migrated from gitlab.com)

Tested summary issue failure job with curl w/private token. Nil issues and response headers contained limit as 1900+ remaining.

Tested summary issue failure job with curl w/private token. Nil issues and response headers contained limit as 1900+ remaining.
jon_nfc commented 2022-01-02 05:29:07 +00:00 (Migrated from gitlab.com)

added 40m of time spent

added 40m of time spent
jon_nfc commented 2022-01-02 05:29:34 +00:00 (Migrated from gitlab.com)

changed time estimate to 2h

changed time estimate to 2h
jon_nfc commented 2022-01-12 01:46:05 +00:00 (Migrated from gitlab.com)

unassigned @jon_nfc

unassigned @jon_nfc
nfc_bot commented 2022-08-26 01:12:52 +00:00 (Migrated from gitlab.com)

This issue is being marked as stalled in accordance with triage policies..

Please review to progress.

  • Either re-label from ~"workflow::stalled" to one more suitable

  • close this issue, leaving a comment on why, including removing the workflow label if no longer required.

This issue is being marked as stalled in accordance with [triage policies.](https://gitlab.com/nofusscomputing/ops/-/blob/master/docs/quality%20assurance/gitlab_triage.md). Please review to progress. - Either re-label from ~"workflow::stalled" to one more suitable - close this issue, leaving a comment on why, including removing the workflow label if no longer required.
nfc_bot commented 2022-08-26 01:12:53 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#55

mentioned in issue nofusscomputing/ops#55
nfc_bot commented 2022-08-26 15:03:02 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#57

mentioned in issue nofusscomputing/ops#57
nfc_bot commented 2022-08-27 15:02:31 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#62

mentioned in issue nofusscomputing/ops#62
nfc_bot commented 2022-09-28 00:31:14 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#69

mentioned in issue nofusscomputing/ops#69
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: infrastructure/gitlab-ci#9
No description provided.