Skip to content

Commit

Permalink
gha - fix and improvements to waiting-response (#17870)
Browse files Browse the repository at this point in the history
  • Loading branch information
catriona-m authored Aug 3, 2022
1 parent d1c989b commit d1fe8d1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/issue-comment-created.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ jobs:
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
labels: waiting-response
- uses: actions-ecosystem/action-add-labels@v1
- uses: actions-ecosystem/action-add-labels@v1.1.0
if: ${{ endsWith(github.event.comment.body, '/wr') }}
with:
labels: waiting-response
github_token: "${{ secrets.GITHUB_TOKEN }}"
number: ${{ github.event.pull_request.number }}
repo: ${{ github.repository }}

16 changes: 13 additions & 3 deletions .github/workflows/pull-request-reviewed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,20 @@ on:

jobs:
add-waiting-response:
if: github.event.review.state != 'approved'
if: github.event.review.state != 'approved' && github.actor != github.event.pull_request.user.login
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-add-labels@v1
- uses: actions-ecosystem/action-add-labels@v1.1.0
with:
labels: waiting-response
github_token: "${{ secrets.GITHUB_TOKEN }}"
github_token: "${{ secrets.GITHUB_TOKEN }}"
number: ${{ github.event.pull_request.number }}
repo: ${{ github.repository }}
remove-waiting-response:
if: github.actor == github.event.pull_request.user.login
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
labels: waiting-response

0 comments on commit d1fe8d1

Please sign in to comment.