diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index fac59f4334..ca92d5f079 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -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 }} @@ -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: