fix: let superusers use as many tokens as they like for page insights #8600
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] | |
| permissions: | |
| pull-requests: write | |
| contents: read | |
| jobs: | |
| labeler: | |
| runs-on: ubuntu-latest | |
| name: Label the PR size | |
| steps: | |
| # Remove this step once the https://github.com/CodelyTV/pr-size-labeler/issues/96 is resolved | |
| - name: Remove legacy PR size labels | |
| uses: actions/github-script@v6 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const sizeLabels = ['size/xs', 'size/s', 'size/m', 'size/l', 'size/xl']; | |
| const prLabels = context.payload.pull_request.labels.map(label => label.name); | |
| const labelsToRemove = prLabels.filter(label => sizeLabels.includes(label)); | |
| await Promise.allSettled(labelsToRemove.map(label => { | |
| return github.rest.issues.removeLabel({ | |
| ...context.repo, | |
| issue_number: context.payload.pull_request.number, | |
| name: label | |
| }); | |
| })); | |
| - uses: codelytv/pr-size-labeler@v1 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| xs_label: "size/xs" | |
| xs_max_size: "10" | |
| s_label: "size/s" | |
| s_max_size: "100" | |
| m_label: "size/m" | |
| m_max_size: "500" | |
| l_label: "size/l" | |
| l_max_size: "1000" | |
| xl_label: "size/xl" | |
| fail_if_xl: "false" | |
| message_if_xl: > | |
| This PR exceeds the recommended size of 1000 lines. | |
| Please make sure you are NOT addressing multiple issues with one PR. | |
| Note this PR will be delayed and might be rejected due to its size. | |
| files_to_ignore: "generated/** pnpm-lock.yaml pg.d.ts" |