mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 18:09:58 +00:00
38 lines
955 B
YAML
38 lines
955 B
YAML
name: "Check Pull Request"
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- synchronize
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
main:
|
|
name: Validate PR title
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: amannn/action-semantic-pull-request@b439535a8eb2122b748ed2b45d1693aaabe5b0aa
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
types: |
|
|
chore
|
|
ci
|
|
docs
|
|
feat
|
|
fix
|
|
test
|
|
sec
|
|
requireScope: false
|
|
wip: false
|
|
# If the PR only contains a single commit, the action will validate that
|
|
# it matches the configured pattern.
|
|
validateSingleCommit: true
|
|
# Related to `validateSingleCommit` you can opt-in to validate that the PR
|
|
# title matches a single commit to avoid confusion.
|
|
validateSingleCommitMatchesPrTitle: true
|