diff --git a/.github/workflows/gh_pr_label.yml b/.github/workflows/gh_pr_label.yml new file mode 100644 index 00000000..f29bd177 --- /dev/null +++ b/.github/workflows/gh_pr_label.yml @@ -0,0 +1,18 @@ +name: "GitHub Pull Requests Labeler" + +on: + pull_request: + types: [opened, reopened, ready_for_review] + +jobs: + add-label: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Add waiting-for-review label + uses: actions-ecosystem/action-add-labels@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: "pr: waiting for review" + number: ${{ github.event.pull_request.number }}