-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (43 loc) · 1.23 KB
/
conventional-commits.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Conventional Commits
on:
pull_request:
types:
- opened
- edited
- synchronize
jobs:
default:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
id: lint
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
build
chore
ci
docs
feat
fix
perf
style
refactor
test
- uses: marocchino/sticky-pull-request-comment@v2
if: always() && (steps.lint.outputs.error_message != null)
with:
header: lint-error
message: |
Hey there! 👋
We noticed that the title of your pull request doesn't follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification. To ensure consistency, we kindly ask you to adjust the title accordingly.
Here are the details:
```
${{ steps.lint.outputs.error_message }}
```
- if: ${{ steps.lint.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: lint-error
delete: true