Skip to content

Commit 36b7711

Browse files
committed
feat: add ci and bump version
1 parent 894858c commit 36b7711

File tree

3 files changed

+44
-1
lines changed

3 files changed

+44
-1
lines changed

.github/pull_request_template.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!--
2+
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
3+
-->
4+
5+
### Checklist
6+
7+
- [ ] My code follows the style guidelines of this project
8+
- [ ] I have performed a self-review of my code
9+
- [ ] I have commented my code, particularly in hard-to-understand areas
10+
- [ ] I have made corresponding changes to the documentation if applicable
11+
- [ ] I have added tests for this change

.github/workflows/semantic-pr.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Semantic Pull Request
2+
on:
3+
pull_request_target:
4+
types: [opened, reopened, edited, synchronize]
5+
permissions:
6+
pull-requests: read
7+
jobs:
8+
main:
9+
name: Validate PR Title
10+
runs-on: ubuntu-latest
11+
steps:
12+
# https://github.com/amannn/action-semantic-pull-request/releases/tag/v5.5.2
13+
- uses: amannn/action-semantic-pull-request@cfb60706e18bc85e8aec535e3c577abe8f70378e
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
with:
17+
subjectPattern: ^(?![A-Z]).+$
18+
subjectPatternError: |
19+
The subject "{subject}" found in the pull request title "{title}"
20+
didn't match the configured pattern. Please ensure that the subject
21+
doesn't start with an uppercase character.
22+
types: |
23+
fix
24+
feat
25+
chore
26+
build
27+
ci
28+
perf
29+
docs
30+
refactor
31+
revert
32+
test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@blitz/eslint-plugin",
3-
"version": "0.0.44",
3+
"version": "0.0.45",
44
"description": "An ESLint config to enforce a consistent code styles across StackBlitz projects",
55
"keywords": [
66
"eslint",

0 commit comments

Comments
 (0)