diff --git a/.github/workflows/remove-waiting-label.yml b/.github/workflows/remove-waiting-label.yml new file mode 100644 index 0000000000..b21e7d2cc5 --- /dev/null +++ b/.github/workflows/remove-waiting-label.yml @@ -0,0 +1,21 @@ +name: Remove "waiting for author" label on review request + +on: + pull_request_target: + types: [review_requested] + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + +jobs: + remove-label: + if: ${{ !github.event.pull_request.draft }} + runs-on: ubuntu-latest + + steps: + - name: 'Remove "status: waiting for author" label' + uses: actions-ecosystem/action-remove-labels@v1 + with: + labels: 'status: waiting for author'