File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ <!--
2+ Set the PR title to a meaningful commit message that:
3+ - follows the Conventional Commits specification (https://www.conventionalcommits.org).
4+ - is in imperative form.
5+ Example:
6+ fix: Don't add implicit wildcards ('*') at the beginning and the end of a query (fixes #390).
7+ -->
8+
9+ # Description
10+ <!-- Describe what this request will change/fix and provide any details necessary for reviewers. -->
11+
12+
13+ # Validation performed
14+ <!-- Describe what tests and validation you performed on the change. -->
Original file line number Diff line number Diff line change 1+ name : " pr-title-checks"
2+
3+ on :
4+ pull_request_target :
5+ # NOTE: Workflows triggered by this event give the workflow access to secrets and grant the
6+ # `GITHUB_TOKEN` read/write repository access by default. So we need to ensure:
7+ # - This workflow doesn't inadvertently check out, build, or execute untrusted code from the
8+ # pull request triggered by this event.
9+ # - Each job has `permissions` set to only those necessary.
10+ types : ["edited", "opened", "reopened"]
11+ branches : ["main"]
12+
13+ permissions : {}
14+
15+ concurrency :
16+ group : " ${{github.workflow}}-${{github.ref}}"
17+
18+ # Cancel in-progress jobs for efficiency
19+ cancel-in-progress : true
20+
21+ jobs :
22+ conventional-commits :
23+ permissions :
24+ # For amannn/action-semantic-pull-request
25+ pull-requests : " read"
26+ runs-on : " ubuntu-latest"
27+ steps :
28+ - uses : " amannn/action-semantic-pull-request@v5"
29+ env :
30+ GITHUB_TOKEN : " ${{secrets.GITHUB_TOKEN}}"
You can’t perform that action at this time.
0 commit comments