Skip to content

Commit

Permalink
[CI] Update labeler : Add READY2MERGE label
Browse files Browse the repository at this point in the history
Currently, we have a git action that automatically labels as "Need Review" when the number of reviews is insufficient, and removes it when necessary. This automation allows developers to know which pull requests need review.

In addition, we want to automate the process of labeling pull requests that require merging, to make it more convenient for developers.

Resolves:
    #2463

**Self evaluation:**
1. Build test:	 [X]Passed [ ]Failed [ ]Skipped
2. Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK <[email protected]>
  • Loading branch information
DonghakPark authored and myungjoo committed Feb 20, 2024
1 parent 9c36370 commit aeafaa1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: "Unzip artifact"
run: unzip pr_number.zip

- name: Remove label if approved review >= 3
- name: Remove & Make label if approved review >= 3
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -62,6 +62,15 @@ jobs:
})
}
if ((review >= 3) && (is_contain==String("true"))) {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,
labels: ["PR/READY2MERGE"]
})
}
- name: Make label if approved review < 3
uses: actions/github-script@v7
with:
Expand Down

0 comments on commit aeafaa1

Please sign in to comment.