Skip to content

Commit 65214c1

Browse files
committed
feat: add commit-check.yml and update readme
1 parent 171bb0e commit 65214c1

File tree

4 files changed

+58
-18
lines changed

4 files changed

+58
-18
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: docker
9-
directory: /
10-
schedule:
11-
interval: "weekly"
128
- package-ecosystem: github-actions
139
directory: /
1410
schedule:

.github/workflows/commit-check.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Commit Check
2+
3+
on: pull_request
4+
5+
jobs:
6+
commit-check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: commit-check/commit-check-action@v1
11+
with:
12+
message: true
13+
branch: true
14+
author-name: true
15+
author-email: true
16+
dry-run: true

.github/workflows/main.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,3 @@ jobs:
4141
git push --delete origin v1 || true
4242
git tag -a v1 -m 'Retag v1'
4343
git push origin v1
44-
45-
commit-check:
46-
runs-on: ubuntu-latest
47-
steps:
48-
- uses: actions/checkout@v3
49-
- uses: commit-check/commit-check-action@v1
50-
id: check
51-
with:
52-
message: true
53-
branch: true
54-
author-name: true
55-
author-email: true
56-
dry-run: true

README.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@
55

66
A Github Action for checking commit message formatting, branch naming, referencing Jira tickets, and more.
77

8+
## Usage
9+
10+
Create a new GitHub Actions workflow in your project, e.g. at [.github/workflows/commit-check.yml](.github/workflows/commit-check.yml)
11+
12+
```yaml
13+
name: Commit Check
14+
15+
on: pull_request
16+
17+
jobs:
18+
commit-check:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: commit-check/commit-check-action@v1
23+
with:
24+
message: true
25+
branch: true
26+
author-name: true
27+
author-email: true
28+
dry-run: true
29+
```
30+
831
## Optional Inputs
932
1033
### `message`
@@ -36,8 +59,26 @@ A Github Action for checking commit message formatting, branch naming, referenci
3659

3760
Note: to change the default rules of above inputs, just add your own [`.commit-check.yml`](https://github.com/commit-check/commit-check#usage) config file.
3861

62+
## Add Commit Check Action badge in README
63+
64+
You can show Commit Check Action status with a badge in your repository README
65+
66+
Example
67+
68+
```
69+
[![commit-check](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml/badge.svg)](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)
70+
```
71+
72+
[![commit-check](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml/badge.svg)](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)
73+
3974
## Versioning
4075
4176
Versioning follows [Semantic Versioning](https://semver.org/).
4277
43-
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/H2H85WC9L)
78+
## Have question or feedback?
79+
80+
To provide feedback (requesting a feature or reporting a bug) please post to [issues](https://github.com/commit-check/commit-check/issues).
81+
82+
## License
83+
84+
[MIT License](LICENSE)

0 commit comments

Comments
 (0)