chore(deps): bump the npm_and_yarn group across 3 directories with 14 updates #54
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Labeler | |
| on: | |
| pull_request_target: | |
| types: [opened, synchronize, reopened] | |
| issues: | |
| types: [opened] | |
| permissions: {} | |
| jobs: | |
| label: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5 | |
| with: | |
| configuration-path: .github/labeler.yml | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| sync-labels: true | |
| - name: Apply maintainer label for org members | |
| uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const association = context.payload.pull_request?.author_association; | |
| if (!association) { | |
| return; | |
| } | |
| if (![ | |
| "MEMBER", | |
| "OWNER", | |
| ].includes(association)) { | |
| return; | |
| } | |
| await github.rest.issues.addLabels({ | |
| ...context.repo, | |
| issue_number: context.payload.pull_request.number, | |
| labels: ["maintainer"], | |
| }); | |
| label-issues: | |
| permissions: | |
| issues: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Apply maintainer label for org members | |
| uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const association = context.payload.issue?.author_association; | |
| if (!association) { | |
| return; | |
| } | |
| if (![ | |
| "MEMBER", | |
| "OWNER", | |
| ].includes(association)) { | |
| return; | |
| } | |
| await github.rest.issues.addLabels({ | |
| ...context.repo, | |
| issue_number: context.payload.issue.number, | |
| labels: ["maintainer"], | |
| }); |