|
| 1 | +name: "Lint Pull Request" |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request_target: |
| 5 | + types: |
| 6 | + - opened |
| 7 | + - edited |
| 8 | + - synchronize |
| 9 | + |
| 10 | +jobs: |
| 11 | + main: |
| 12 | + name: Validate Pull Request Title |
| 13 | + runs-on: ubuntu-latest |
| 14 | + steps: |
| 15 | + - uses: amannn/action-semantic-pull-request@v5 |
| 16 | + env: |
| 17 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 18 | + with: |
| 19 | + # see: https://github.com/commitizen/conventional-commit-types |
| 20 | + # |
| 21 | + # build: Changes that affect the build system or external dependencies |
| 22 | + # chore: Routine tasks, maintenance, or refactors that don't change functionality |
| 23 | + # ci: Changes to CI configuration files and scripts |
| 24 | + # docs: Documentation only changes |
| 25 | + # feat: A new feature for the user or a significant enhancement |
| 26 | + # fix: A bug fix |
| 27 | + # perf: A code change that improves performance |
| 28 | + # refactor: A code change that neither fixes a bug nor adds a feature |
| 29 | + # release: Used for release PRs/commits |
| 30 | + # revert: Reverts a previous commit |
| 31 | + # style: Changes that don't affect the meaning of the code (formatting, missing semi-colons, etc) |
| 32 | + # test: Adding missing tests or correcting existing tests |
| 33 | + types: | |
| 34 | + build |
| 35 | + chore |
| 36 | + ci |
| 37 | + docs |
| 38 | + feat |
| 39 | + fix |
| 40 | + perf |
| 41 | + refactor |
| 42 | + release |
| 43 | + revert |
| 44 | + style |
| 45 | + test |
| 46 | + requireScope: false |
| 47 | + ignoreLabels: | |
| 48 | + bot |
| 49 | + ignore-semantic-pull-request |
| 50 | + # For work-in-progress PRs you can typically use draft pull requests |
| 51 | + # from GitHub. However, private repositories on the free plan don't have |
| 52 | + # this option and therefore this action allows you to opt-in to using the |
| 53 | + # special "[WIP]" prefix to indicate this state. This will avoid the |
| 54 | + # validation of the PR title and the pull request checks remain pending. |
| 55 | + # Note that a second check will be reported if this is enabled. |
| 56 | + wip: false |
0 commit comments