Skip to content

Commit

Permalink
[ci] GHA workflow to remove ready label upon "/notready" comment (vll…
Browse files Browse the repository at this point in the history
…m-project#6921)

Signed-off-by: kevin <kevin@anyscale.com>
  • Loading branch information
khluu authored Jul 30, 2024
1 parent aae6d36 commit 4fbf4aa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/remove_label_not_ready_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Remove ready Label on notready Comment

on:
issue_comment:
types: [created]

jobs:
add-ready-label:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && contains(github.event.comment.body, '/notready')
steps:
- name: Remove ready label
uses: actions/github-script@v5
with:
script: |
github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: 'ready'
})
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4fbf4aa

Please sign in to comment.