From e5b7a8a14aaccbc2525b194804e9b3928f774706 Mon Sep 17 00:00:00 2001 From: Audrey Eschright Date: Thu, 31 Oct 2019 10:44:57 -0700 Subject: [PATCH] Add workflow for labeling new PRs as needs-triage (#10690) --- .github/workflows/issues.yml | 2 +- .github/workflows/pull_requests.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pull_requests.yml diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index a94e95d2c5af..1e09218e851b 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1.0.0 - - name: Apply Triage Label + - name: Apply Issue Triage Label uses: actions/github@v1.0.0 if: github.event.action == 'opened' env: diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml new file mode 100644 index 000000000000..e46100471082 --- /dev/null +++ b/.github/workflows/pull_requests.yml @@ -0,0 +1,15 @@ +name: PR triage +on: + pull_request: + types: [opened] +jobs: + markPRsForTriage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1.0.0 + - name: Apply PR Triage Label + uses: actions/github@v1.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: label needs-triage