chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.15.19 #858
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: on-commit | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| apply-labels: | |
| name: apply labels | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| runs-on: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/labeler@v6.0.1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| configuration-path: .github/labeler.yml | |
| sync-labels: true | |
| lint-commit-messages: | |
| name: lint commit message | |
| runs-on: [ubuntu-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install commitizen | |
| run: | | |
| python -m pip install commitizen | |
| - name: Commitizen check | |
| run: | | |
| cz check --rev-range HEAD^! | |
| lint-pr-title: | |
| # default: lints titles using https://github.com/commitizen/conventional-commit-types | |
| name: lint pr title | |
| runs-on: [ubuntu-latest] | |
| permissions: | |
| pull-requests: read | |
| steps: | |
| - uses: amannn/action-semantic-pull-request@v6.1.1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |