Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
sanidhyas3s authored Aug 28, 2024
1 parent 418e3ec commit f55f149
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ permissions:
on:
issue_comment:
types: [created]
pull_request_review:
types: [submitted, dismissed]
pull_request_review_comment:
types: [created, deleted]

jobs:
author_comment:
Expand All @@ -18,4 +22,37 @@ jobs:
with:
labels: waiting for update
env:
NUMBER: ${{ github.event.issue.number }}
NUMBER: ${{ github.event.issue.number }}

review_requested:
name: Add "waiting for review" if a review is requested
if: ${{ github.event_name == 'pull_request_review' && github.event.action == 'submitted' }}
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: waiting for review
env:
NUMBER: ${{ github.event.pull_request.number }}

review_request_removed:
name: Remove "waiting for review" label if review dismissed
if: ${{ github.event_name == 'pull_request_review' && github.event.action == 'dismissed' }}
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: waiting for review
env:
NUMBER: ${{ github.event.issue.number }}

update_requested:
name: Add "waiting for update" if changes are requested
if: ${{ github.event_name == 'pull_request_review' && github.event.action == 'created'}}
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: waiting for update
env:
NUMBER: ${{ github.event.pull_request.number }}

0 comments on commit f55f149

Please sign in to comment.