Skip to content

Commit ea7fa6c

Browse files
committed
chore: add conventional commit linting
1 parent 1b1fe63 commit ea7fa6c

File tree

5 files changed

+43
-8
lines changed

5 files changed

+43
-8
lines changed

.github/dependabot.yml

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

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,9 @@ jobs:
3535
with:
3636
delete-branch: "true"
3737
title: "Update API to ${{ github.event.client_payload.BUFTAG }}"
38+
commit-message: "chore: update api version"
3839
branch: "api-change/${{ github.event.client_payload.BUFTAG }}"
39-
token: ${{ secrets.GITHUB_TOKEN }}
40+
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
41+
# This is how we ensure that workflows run
42+
draft: "always-true"
43+
token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ on:
99
- "*"
1010
types:
1111
# NOTE: these are the defaults
12-
- opened
13-
- synchronize
14-
- reopened
12+
- "opened"
13+
- "synchronize"
14+
- "reopened"
1515
# NOTE: we add this to let the conversion from draft trigger the workflows
16-
- ready_for_review
16+
- "ready_for_review"
1717
merge_group:
1818
types:
1919
- "checks_requested"

.github/workflows/lint.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: "Lint"
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
branches:
6+
- "!dependabot/*"
7+
- "main"
8+
pull_request:
9+
branches: ["*"]
10+
merge_group:
11+
types:
12+
- "checks_requested"
13+
jobs:
14+
conventional-commits:
15+
name: "Lint Commit Messages"
16+
runs-on: "depot-ubuntu-24.04-small"
17+
if: "github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' || github.event.action == 'edited')"
18+
steps:
19+
- uses: "actions/checkout@v6"
20+
- uses: "webiny/[email protected]"

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
if: steps.buf-update.outputs.updated == 'true'
3939
with:
4040
delete-branch: "true"
41-
title: Update API to ${{ inputs.buftag }}
42-
branch: api-change/${{ inputs.buftag }}
43-
token: ${{ secrets.GITHUB_TOKEN }}
41+
title: "Update API to ${{ inputs.buftag }}"
42+
commit-message: "chore: update api version"
43+
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
44+
draft: "always-true"
45+
branch: "api-change/${{ inputs.buftag }}"
46+
token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)