Skip to content

Commit 742873a

Browse files
authored
chore: add conventional commit linting (#44)
1 parent f9b0923 commit 742873a

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ updates:
88
groups:
99
dotnet:
1010
patterns: ["*"]
11+
commit-message:
12+
prefix: "chore"
13+
prefix-development: "chore"
14+
include: "scope"
1115
- package-ecosystem: "github-actions"
1216
directory: "/"
1317
schedule:
1418
interval: "monthly"
1519
groups:
1620
github-actions:
1721
patterns: ["*"]
22+
commit-message:
23+
prefix: "chore"
24+
prefix-development: "chore"
25+
include: "scope"

.github/workflows/automatic-api-update.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: "Called update for API change"
3-
on:
3+
on: # yamllint disable-line rule:truthy
44
repository_dispatch:
55
types: ["api_update"]
66
jobs:
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
delete-branch: "true"
3939
title: "Update API to ${{ github.event.client_payload.BUFTAG }}"
40+
commit-message: "feat: update api version"
4041
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
4142
# This is how we ensure that workflows run
4243
draft: "always-true"

.github/workflows/lint.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ on: # yamllint disable-line rule:truthy
88
branches: ["*"]
99
types:
1010
# NOTE: these are the defaults
11-
- opened
12-
- synchronize
13-
- reopened
11+
- "opened"
12+
- "synchronize"
13+
- "reopened"
1414
# NOTE: we add this to let the conversion from draft trigger the workflows
15-
- ready_for_review
15+
- "ready_for_review"
1616
jobs:
1717
lint:
1818
# Uses pre-commit to run all checks
@@ -26,4 +26,11 @@ jobs:
2626
- uses: "actions/setup-dotnet@v5"
2727
with:
2828
dotnet-version: '8.x'
29-
- uses: "pre-commit/action@v3.0.1"
29+
- uses: "j178/prek-action@v1"
30+
31+
conventional-commits:
32+
name: "Lint Commit Messages"
33+
runs-on: "depot-ubuntu-24.04-small"
34+
steps:
35+
- uses: "actions/checkout@v5"
36+
- uses: "webiny/action-conventional-commits@v1.3.0"

.github/workflows/manual-api-update.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Update for API change
3-
on:
3+
on: # yamllint disable-line rule:truthy
44
workflow_dispatch:
55
inputs:
66
buftag:
@@ -43,7 +43,8 @@ jobs:
4343
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
4444
# This is how we ensure that workflows run
4545
draft: "always-true"
46-
title: Update API to ${{ inputs.buftag }}
47-
branch: api-change/${{ inputs.buftag }}
46+
title: "Update API to ${{ inputs.buftag }}"
47+
commit-message: "feat: update api version"
48+
branch: "api-change/${{ inputs.buftag }}"
4849
base: "main"
49-
token: ${{ secrets.GITHUB_TOKEN }}
50+
token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)