diff options
Diffstat (limited to '.github/workflows/labeler.yml')
-rw-r--r-- | .github/workflows/labeler.yml | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 60689029a3..52682d93dd 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -3,7 +3,6 @@ on: pull_request_target: types: [opened] jobs: - triage: runs-on: ubuntu-latest permissions: @@ -12,10 +11,10 @@ jobs: steps: - uses: actions/labeler@v4 with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" sync-labels: "" type-scope: + needs: triage runs-on: ubuntu-latest permissions: contents: write @@ -34,17 +33,7 @@ jobs: run: gh pr edit "$PR_NUMBER" --add-label "$(echo "$PR_TITLE" | sed -E 's|[[:alpha:]]+(\(.*\))?!:.*|breaking-change|')" || true request-reviewer: - if: github.event.pull_request.state == 'open' && github.event.pull_request.draft == false - runs-on: ubuntu-latest needs: ["triage", "type-scope"] permissions: pull-requests: write - steps: - - uses: actions/checkout@v3 - - name: 'Request reviewers' - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.TEAM_REVIEW }} - script: | - const script = require('./.github/scripts/reviews.js') - await script({github, context}) + uses: ./.github/workflows/add-reviewers.yml |