-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from netodevel/docs/add-readme
docs: #0000 - Updated README.md
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,50 @@ | ||
# convetional-commits-checker | ||
Check that all pull request commits are following convetional commits | ||
|
||
## The current pattern that is validated | ||
`eg: feat: #0000 - My Message commit` | ||
|
||
`#typeCommit: #cardId - #Msg commit` | ||
|
||
# How to use | ||
``` | ||
name: "Commit Lint" | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- development | ||
- staging | ||
types: | ||
- opened | ||
- reopened | ||
- labeled | ||
- unlabeled | ||
- edited | ||
- synchronize | ||
jobs: | ||
commit-lint: | ||
runs-on: ubuntu-latest | ||
name: Validate all commits | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.PAT }} # your personal access token | ||
fetch-depth: 0 | ||
- name: Conventional Commits Checker | ||
uses: ./ # Uses an action in the root directory | ||
id: commits-check | ||
with: # do not change the order of params | ||
target-branch: ${{ github.event.pull_request.base.ref }} #required | ||
current-branch: ${{ github.event.pull_request.head.ref }} #required | ||
``` | ||
|
||
|
||
# Inputs | ||
|
||
### target-branch | ||
|
||
**Required** Need to get all commits, use always: `${{ github.event.pull_request.base.ref }}` | ||
|
||
### current-branch | ||
**Required** Need to get all commits, use always: `${{ github.event.pull_request.head.ref }}` |