deps(deps-dev): bump @babel/preset-react from 7.28.5 to 8.0.1 #740
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: Semantic PR Title | |
| on: | |
| pull_request_target: | |
| types: [opened, edited, synchronize] | |
| permissions: | |
| pull-requests: write | |
| contents: read | |
| jobs: | |
| lint-title: | |
| name: Validate PR title | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 | |
| id: lint_pr_title | |
| with: | |
| types: | | |
| feat | |
| fix | |
| docs | |
| style | |
| chore | |
| refactor | |
| test | |
| ci | |
| perf | |
| deps | |
| requireScope: false | |
| # Scope (sub-type) is optional and may be any value, e.g. `feat(linux):`, `fix(verify-linux):` | |
| subjectPattern: ^(?![A-Z]).+$ | |
| subjectPatternError: "Subject must not start with an uppercase letter" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Read commit guide | |
| if: always() && (steps.lint_pr_title.outputs.error_message != null) | |
| id: guide | |
| run: | | |
| { | |
| echo "content<<GUIDE_EOF" | |
| cat .github/semantic-commit-guide.md | |
| echo "GUIDE_EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| - uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4 | |
| if: always() && (steps.lint_pr_title.outputs.error_message != null) | |
| with: | |
| header: pr-title-lint-error | |
| message: | | |
| > [!WARNING] | |
| > **PR title does not follow the Conventional Commits specification.** | |
| ${{ steps.lint_pr_title.outputs.error_message }} | |
| --- | |
| ${{ steps.guide.outputs.content }} | |
| - uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4 | |
| if: ${{ steps.lint_pr_title.outputs.error_message == null }} | |
| with: | |
| header: pr-title-lint-error | |
| delete: true | |
| check-scope: | |
| name: Check PR scope | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout PR | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| fetch-depth: 0 | |
| - name: Classify changed files | |
| id: classify | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| run: bash .github/scripts/classify-pr-files.sh | |
| - uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4 | |
| if: steps.classify.outputs.mixed == 'true' | |
| with: | |
| header: pr-scope-warning | |
| message: | | |
| > [!WARNING] | |
| > **This PR touches 3+ distinct areas of the codebase.** | |
| > | |
| > Consider splitting into smaller, focused PRs — each covering a single semantic type. | |
| > This makes reviews easier and keeps the git history clean. | |
| ${{ steps.classify.outputs.details }} | |
| - uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4 | |
| if: steps.classify.outputs.mixed == 'false' | |
| with: | |
| header: pr-scope-warning | |
| delete: true | |
| - name: Fail if mixed | |
| if: steps.classify.outputs.mixed == 'true' | |
| run: | | |
| echo "::error::PR touches 3+ distinct areas (ci, docs, code, test, chore). Consider splitting into focused PRs." | |
| exit 1 |