Skip to content

Commit 110eb79

Browse files
committed
Add pr check workflow
1 parent f3b1cf6 commit 110eb79

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<!--
2-
Set the PR title to a meaningful commit message in imperative form. E.g.:
3-
4-
clp-s: Don't add implicit wildcards ('*') at the beginning and the end of a query (fixes #390).
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).
57
-->
68

79
# Description
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "clp-pr-title-checks"
2+
3+
on:
4+
pull_request_target:
5+
types: ["edited", "opened", "reopened"]
6+
branches: ["main"]
7+
8+
permissions:
9+
pull-requests: "read"
10+
11+
concurrency:
12+
group: "${{github.workflow}}-${{github.ref}}"
13+
14+
# Cancel in-progress jobs for efficiency
15+
cancel-in-progress: true
16+
17+
jobs:
18+
conventional-commits:
19+
runs-on: "ubuntu-latest"
20+
steps:
21+
- uses: "amannn/action-semantic-pull-request@v5"
22+
env:
23+
GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"

0 commit comments

Comments
 (0)