Skip to content

Commit

Permalink
Merge pull request #2 from netodevel/docs/add-readme
Browse files Browse the repository at this point in the history
docs: #0000 - Updated README.md
  • Loading branch information
netodevel authored Feb 3, 2023
2 parents 070c0a2 + 0f88c54 commit 7ecc896
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions README.md
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 }}`

0 comments on commit 7ecc896

Please sign in to comment.