将 PR Checkstyle 报告同步至 Pull Request 审查评论 #602
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: PR Size Label | |
| on: | |
| pull_request_target: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| label: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout scripts | |
| uses: actions/checkout@v7 | |
| with: | |
| sparse-checkout: | | |
| .github/scripts/pr-size-label.js | |
| sparse-checkout-cone-mode: false | |
| - name: Label PR by filtered changed lines | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const script = require("./.github/scripts/pr-size-label.js"); | |
| await script({ github, context, core }); |