Skip to content

Commit e66a88c

Browse files
committed
ci: Add conventional PR title workflow
This workflow is only triggered on PRs for cert-tools (for now).
1 parent 86cbd67 commit e66a88c

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Conventional PR Title
3+
4+
on:
5+
pull_request:
6+
paths:
7+
- ".github/workflows/pr_conventional-title.yaml"
8+
- "rust/cert-tools"
9+
10+
jobs:
11+
check:
12+
name: Ensure PR title is conventional
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16+
with:
17+
persist-credentials: false
18+
submodules: recursive
19+
- shell: bash
20+
env:
21+
PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }}
22+
run: |
23+
echo "$PULL_REQUEST_TITLE" > pull_request_title
24+
- uses: crate-ci/committed@dc6f20ddd899fe6d6f0402807884c0a4b3176b53 # v1.1.10
25+
with:
26+
args: --commit-file pull_request_title --config rust/cert-tools/committed.toml -vv --no-merge-commit

rust/cert-tools/committed.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
style = "conventional"
2+
allowed_scopes = ["cert-tools"]

0 commit comments

Comments
 (0)