Skip to content

Commit 7fbfbc2

Browse files
Merge branch 'main' into ci/node_version
2 parents 0cca910 + b906af0 commit 7fbfbc2

13 files changed

Lines changed: 41401 additions & 12186 deletions

.github/workflows/audit_package.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ on:
2525
schedule:
2626
- cron: "0 0 * * 1"
2727

28+
permissions:
29+
contents: write
30+
pull-requests: write
31+
packages: read
32+
issues: write
33+
2834
jobs:
2935
audit-fix:
3036
uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@fix_Verify_cherry_pick-Logic
3137
with:
3238
base_branch: ${{ inputs.base_branch || 'main' }}
33-
package_manager: "yarn"
34-
node_version: ${{ inputs.node_version }}
39+
package_manager: ${{ inputs.package_manager || 'yarn' }}
40+
node_version: ${{ inputs.node_version || '24.0.0' }}
3541
script: ${{ inputs.script || 'yarn build' }}
36-
37-
permissions:
38-
contents: write
39-
pull-requests: write
40-
packages: read
41-
issues: write
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: 'Lint PR title preview (current branch, all options specified)'
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
9+
jobs:
10+
main:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: read
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 24
19+
- run: yarn install
20+
- run: yarn build
21+
- uses: ./
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
# Configure which types are allowed (newline-delimited).
26+
# Default: https://github.com/commitizen/conventional-commit-types
27+
types: |
28+
fix
29+
feat
30+
chore
31+
ci
32+
docs
33+
# Configure which scopes are allowed (newline-delimited).
34+
# These are regex patterns auto-wrapped in `^ $`.
35+
scopes: |
36+
core
37+
ui
38+
JIRA-\d+
39+
# Configure that a scope must always be provided.
40+
requireScope: false
41+
# Configure which scopes are disallowed in PR titles (newline-delimited).
42+
# For instance by setting the value below, `chore(release): ...` (lowercase)
43+
# and `ci(e2e,release): ...` (unknown scope) will be rejected.
44+
# These are regex patterns auto-wrapped in `^ $`.
45+
disallowScopes: |
46+
release
47+
[A-Z]+
48+
# Configure additional validation for the subject based on a regex.
49+
# This example ensures the subject doesn't start with an uppercase character.
50+
subjectPattern: ^(?![A-Z]).+$
51+
# If `subjectPattern` is configured, you can use this property to override
52+
# the default error message that is shown when the pattern doesn't match.
53+
# The variables `subject` and `title` can be used within the message.
54+
subjectPatternError: |
55+
The subject "{subject}" found in the pull request title "{title}"
56+
didn't match the configured pattern. Please ensure that the subject
57+
doesn't start with an uppercase character.
58+
# The GitHub base URL will be automatically set to the correct value from the GitHub context variable.
59+
# If you want to override this, you can do so here (not recommended).
60+
# githubBaseUrl: https://github.com/api/v3
61+
# If the PR contains one of these newline-delimited labels, the
62+
# validation is skipped. If you want to rerun the validation when
63+
# labels change, you might want to use the `labeled` and `unlabeled`
64+
# event triggers in your workflow.
65+
ignoreLabels: |
66+
bot
67+
ignore-semantic-pull-request
68+
# If you're using a format for the PR title that differs from the traditional Conventional
69+
# Commits spec, you can use these options to customize the parsing of the type, scope and
70+
# subject. The `headerPattern` should contain a regex where the capturing groups in parentheses
71+
# correspond to the parts listed in `headerPatternCorrespondence`.
72+
# See: https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser#headerpattern
73+
headerPattern: '^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$'
74+
headerPatternCorrespondence: type, scope, subject

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ feat(ui): Add `Button` component
6161
```yml
6262
with:
6363
# Configure which types are allowed (newline-delimited).
64+
# These are regex patterns auto-wrapped in `^ $`.
6465
# Default: https://github.com/commitizen/conventional-commit-types
6566
types: |
6667
fix
6768
feat
69+
JIRA-\d+
6870
# Configure which scopes are allowed (newline-delimited).
6971
# These are regex patterns auto-wrapped in `^ $`.
7072
scopes: |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ branding:
88
color: 'green'
99
inputs:
1010
types:
11-
description: "Provide custom types (newline delimited) if you don't want the default ones from https://www.conventionalcommits.org."
11+
description: "Provide custom types (newline delimited) if you don't want the default ones from https://www.conventionalcommits.org. These are regex patterns auto-wrapped in `^ $`."
1212
required: false
1313
scopes:
1414
description: 'Configure which scopes are allowed (newline delimited). These are regex patterns auto-wrapped in `^ $`.'

0 commit comments

Comments
 (0)