Skip to content

Commit 70bcc11

Browse files
committed
chore: update repository templates
[skip ci] - updated repository templates to ory/meta@81cbfd3
1 parent 40f5227 commit 70bcc11

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Conventional commits
2+
3+
on:
4+
pull_request_target: # enable Pull Requests from forks, uses config from master branch
5+
types: [opened, edited, reopened, ready_for_review]
6+
# pull_request: # for debugging, uses config in local branch but supports only Pull Requests from this repo
7+
8+
jobs:
9+
main:
10+
name: Validate PR title
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: amannn/action-semantic-pull-request@v4
14+
id: check-title
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
with:
18+
types: |
19+
feat
20+
fix
21+
revert
22+
docs
23+
style
24+
refactor
25+
test
26+
build
27+
autogen
28+
security
29+
ci
30+
chore
31+
32+
scopes: |
33+
blog
34+
cms
35+
deps
36+
docs
37+
home
38+
hydra
39+
keto
40+
kratos
41+
stats
42+
43+
requireScope: false
44+
45+
# Configure which scopes are disallowed in PR titles. For instance by setting
46+
# the value below, `chore(release): ...` and `ci(e2e,release): ...` will be rejected.
47+
# disallowScopes: |
48+
# release
49+
50+
# Configure additional validation for the subject based on a regex.
51+
# This example ensures the subject doesn't start with an uppercase character.
52+
subjectPattern: ^(?![A-Z]).+$
53+
54+
# If `subjectPattern` is configured, you can use this property to override
55+
# the default error message that is shown when the pattern doesn't match.
56+
# The variables `subject` and `title` can be used within the message.
57+
subjectPatternError: |
58+
The subject should start with a lowercase letter, yours is uppercase:
59+
"{subject}"
60+
61+
# If the PR contains one of these labels, the validation is skipped.
62+
# Multiple labels can be separated by newlines.
63+
# If you want to rerun the validation when labels change, you might want
64+
# to use the `labeled` and `unlabeled` event triggers in your workflow.
65+
# ignoreLabels: |
66+
# bot
67+
# ignore-semantic-pull-request
68+
69+
# For work-in-progress PRs you can typically use draft pull requests
70+
# from GitHub. However, private repositories on the free plan don't have
71+
# this option and therefore this action allows you to opt-in to using the
72+
# special "[WIP]" prefix to indicate this state. This will avoid the
73+
# validation of the PR title and the pull request checks remain pending.
74+
# Note that a second check will be reported if this is enabled.
75+
# wip: true

0 commit comments

Comments
 (0)