mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
chore: Integrate committed
for checking conventional commits (#77)
Closes #50
This commit is contained in:
parent
1c0ed3268b
commit
052ae53b6e
2 changed files with 33 additions and 0 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -44,3 +44,20 @@ jobs:
|
||||||
run: cargo make ci
|
run: cargo make ci
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: full
|
RUST_BACKTRACE: full
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Checkout
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
- name: "Check conventional commits"
|
||||||
|
uses: crate-ci/committed@master
|
||||||
|
with:
|
||||||
|
args: "-vv"
|
||||||
|
commits: "HEAD"
|
||||||
|
|
16
committed.toml
Normal file
16
committed.toml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# configuration for https://github.com/crate-ci/committed
|
||||||
|
|
||||||
|
# https://www.conventionalcommits.org
|
||||||
|
style="conventional"
|
||||||
|
# disallow merge commits
|
||||||
|
merge_commit = false
|
||||||
|
# subject is not required to be capitalized
|
||||||
|
subject_capitalized = false
|
||||||
|
# subject should start with an imperative verb
|
||||||
|
imperative_subject = true
|
||||||
|
# subject should not end with a punctuation
|
||||||
|
subject_not_punctuated = true
|
||||||
|
# disable line length
|
||||||
|
line_length = 0
|
||||||
|
# disable subject length
|
||||||
|
subject_length = 0
|
Loading…
Reference in a new issue