Skip to content

Commit 31ea497

Browse files
chore: sync files with beam-community/common-config (#425)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5091521 commit 31ea497

4 files changed

Lines changed: 69 additions & 24 deletions

File tree

.commitlintrc.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This file is synced with beam-community/common-config. Any changes will be overwritten.
2+
3+
extends:
4+
- "@commitlint/config-conventional"
5+
6+
rules:
7+
type-enum:
8+
- 2
9+
- always
10+
- - feat
11+
- fix
12+
- docs
13+
- style
14+
- refactor
15+
- perf
16+
- test
17+
- build
18+
- ci
19+
- chore
20+
- revert
21+
subject-case:
22+
- 0
23+
header-max-length:
24+
- 2
25+
- always
26+
- 100

.github/workflows/dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- name: Fetch Metadata
2323
id: metadata
24-
uses: dependabot/fetch-metadata@v2
24+
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3
2525
with:
2626
github-token: ${{ secrets.GITHUB_TOKEN }}
2727

.github/workflows/pr.yaml

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,54 @@ on:
1212
- synchronize
1313

1414
jobs:
15-
Title:
15+
Commits:
16+
name: Conventional Commits
17+
runs-on: ubuntu-latest
18+
if: ${{ github.event_name == 'pull_request' }}
19+
1620
permissions:
21+
contents: read
1722
pull-requests: read
1823

19-
if: ${{ github.event_name == 'pull_request' }}
20-
name: Check Title
21-
runs-on: ubuntu-latest
22-
2324
steps:
24-
- name: Check
25-
uses: beam-community/actions-pr-title@v1.0.0
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2626
with:
27-
regex: '^(refactor!|feat!|fix!|refactor|fix|feat|chore)(\(\w+\))?:\s(\[#\d{1,5}\])?.*$'
28-
hint: |
29-
Your PR title does not match the Conventional Commits convention. Please rename your PR to match one of the following formats:
27+
fetch-depth: 0
3028

31-
fix: [#123] some title of the PR
32-
fix(scope): [#123] some title of the PR
33-
feat: [#1234] some title of the PR
34-
chore: update some action
29+
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6
30+
with:
31+
configFile: .commitlintrc.yml
3532

36-
Note: Adding ! (i.e. `feat!:`) represents a breaking change and will result in a SemVer major release.
33+
Labels:
34+
name: Assign Labels
35+
runs-on: ubuntu-latest
36+
if: ${{ github.event_name == 'pull_request' }}
3737

38-
Please use one of the following types:
38+
permissions:
39+
contents: read
40+
pull-requests: write
3941

40-
- **feat:** A new feature, resulting in a MINOR version bump.
41-
- **fix:** A bug fix, resulting in a PATCH version bump.
42-
- **refactor:** A code change that neither fixes a bug nor adds a feature.
43-
- **chore:** Changes unrelated to the release code, resulting in no version bump.
44-
- **revert:** Reverts a previous commit.
42+
steps:
43+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4544

46-
See https://www.conventionalcommits.org/en/v1.0.0/ for more information.
45+
- uses: mauroalderete/action-assign-labels@671a4ca2da0f900464c58b8b5540a1e07133e915 # v1
46+
with:
47+
pull-request-number: ${{ github.event.pull_request.number }}
48+
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
conventional-commits: |
50+
conventional-commits:
51+
- type: 'fix'
52+
nouns: ['FIX', 'Fix', 'fix']
53+
labels: ['bug']
54+
- type: 'feature'
55+
nouns: ['FEAT', 'Feat', 'feat']
56+
labels: ['feature']
57+
- type: 'chore'
58+
nouns: ['CHORE', 'Chore', 'chore']
59+
labels: ['chore']
60+
- type: 'docs'
61+
nouns: ['DOCS', 'Docs', 'docs']
62+
labels: ['documentation']
63+
- type: 'ci'
64+
nouns: ['CI', 'Ci', 'ci']
65+
labels: ['ci']

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- id: release
1616
name: Release
17-
uses: googleapis/release-please-action@v4
17+
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5
1818
with:
1919
config-file: .github/release-please-config.json
2020
manifest-file: .github/release-please-manifest.json

0 commit comments

Comments
 (0)