Skip to content

Commit 5b81b7e

Browse files
ci: Check PR title instead of commits for conventional format (#264)
1 parent 507e038 commit 5b81b7e

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.github/workflows/changelog.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Changelog checks"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
conventional-commits-lint-check:
12+
name: "Lint PR title"
13+
runs-on: "ubuntu-latest"
14+
steps:
15+
- name:
16+
uses: amannn/action-semantic-pull-request@0eb081bc9c35210408951834a444794406eff6f8
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/tests.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,3 @@ jobs:
6666
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018
6767
with:
6868
version: v1.45.2
69-
70-
conventional-commits-lint-check:
71-
runs-on: "ubuntu-latest"
72-
steps:
73-
- name: Checkout code
74-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
75-
with:
76-
fetch-depth: 0
77-
- name: Commitsar Action
78-
uses: aevea/commitsar@159cec82966ca402a09ae3c185524a5256affa22

0 commit comments

Comments
 (0)