Skip to content

Commit 76556fc

Browse files
committed
chore: add conventional commit linting
1 parent d5f1d2d commit 76556fc

4 files changed

Lines changed: 23 additions & 20 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@ updates:
1010
groups:
1111
bundler:
1212
patterns: ["*"]
13+
commit-message:
14+
prefix: "chore"
15+
prefix-development: "chore"
16+
include: "scope"
1317
- package-ecosystem: "github-actions"
1418
directory: "/"
1519
schedule:
1620
interval: "weekly"
1721
groups:
1822
github-actions:
1923
patterns: ["*"]
24+
commit-message:
25+
prefix: "chore"
26+
prefix-development: "chore"
27+
include: "scope"

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
with:
3737
delete-branch: "true"
3838
title: "Update API to ${{ github.event.client_payload.BUFTAG }}"
39+
commit-message: "chore: update api version"
3940
branch: "api-change/${{ github.event.client_payload.BUFTAG }}"
41+
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
42+
# This is how we ensure that workflows run
43+
draft: "always-true"
4044
base: "main"
4145
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build.yaml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,12 @@ jobs:
2525
- name: "Run rspec"
2626
run: "bundle exec rspec"
2727

28-
protobuf:
29-
name: "Generate Protobufs"
30-
runs-on: "ubuntu-latest"
28+
conventional-commits:
29+
name: "Lint Commit Messages"
30+
permissions:
31+
contents: "read"
32+
runs-on: "depot-ubuntu-24.04-small"
33+
if: "github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' || github.event.action == 'edited')"
3134
steps:
3235
- uses: "actions/checkout@v6"
33-
- uses: "ruby/setup-ruby@v1"
34-
with:
35-
bundler-cache: true
36-
- uses: "arduino/setup-protoc@v3"
37-
with:
38-
version: "24.4"
39-
- name: "Install Homebrew & gRPC"
40-
run: |
41-
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
42-
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/runner/.bash_profile
43-
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
44-
brew install grpc
45-
which grpc_ruby_plugin
46-
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH
47-
- uses: "bufbuild/buf-setup-action@v1.50.0"
48-
with:
49-
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
- uses: "webiny/action-conventional-commits@v1.3.0"

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
with:
4242
delete-branch: "true"
4343
title: Update API to ${{ inputs.buftag }}
44+
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
45+
# This is how we ensure that workflows run
46+
draft: "always-true"
47+
commit-message: "chore: update api version"
4448
branch: api-change/${{ inputs.buftag }}
4549
base: "main"
4650
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)