Skip to content

Commit 3107485

Browse files
authored
Merge pull request #11 from aschbacd/feature/add-gitlint-action
Add GitLint action to itself
2 parents e37ad04 + 6b5b6d6 commit 3107485

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

.github/workflows/linters.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Linters
2+
3+
on:
4+
pull_request: {}
5+
push: {}
6+
7+
jobs:
8+
gitlint:
9+
runs-on: ubuntu-latest
10+
name: GitLint
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
- name: Lint commits, branches, and pull requests
15+
uses: ./
16+
with:
17+
re-branch-name: ^((feature|bug|hotfix|release)\/[a-z\-0-9]+|main)$

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: GitLint
2323
steps:
2424
- name: Lint commits, branches, and pull requests
25-
uses: aschbacd/[email protected].0
25+
uses: aschbacd/[email protected].1
2626
```
2727
2828
### Example configuration for Jira
@@ -44,7 +44,7 @@ jobs:
4444
name: GitLint
4545
steps:
4646
- name: Lint commits, branches, and pull requests
47-
uses: aschbacd/[email protected].0
47+
uses: aschbacd/[email protected].1
4848
with:
4949
re-commit-message-subject: ^(\[[A-Z]+\-[0-9]+\] )?[A-Z].*((?!\.).)$
5050
re-pull-request-title: ^(\[[A-Z]+\-[0-9]+\] )?[A-Z].*((?!\.).)$

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitlint-action",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "This GitHub Action ensures that your naming conventions for commits, branches, and pull requests are being respected.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)