Skip to content

Commit f5fc99e

Browse files
committed
BREAKING CHNAGES: upgrade commit-check to v2.0.0
1 parent 09d59e4 commit f5fc99e

File tree

5 files changed

+31
-38
lines changed

5 files changed

+31
-38
lines changed

.commit-check.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
inputs:
1111
tag:
1212
description: 'which tag to update to'
13-
default: 'v1'
13+
default: 'v2'
1414
required: true
1515
ref:
1616
description: 'which branch to update the tag on'
@@ -36,10 +36,10 @@ jobs:
3636
git push --delete origin ${{ inputs.tag }} || true
3737
git tag -a ${{ inputs.tag }} -m 'Retag ${{ inputs.tag }}'
3838
git push origin ${{ inputs.tag }}
39-
- name: Update tag to v1
39+
- name: Update tag to v2
4040
if: github.event.inputs.tag == ''
4141
run: |
42-
git tag --delete v1 || true
43-
git push --delete origin v1 || true
44-
git tag -a v1 -m 'Retag v1'
45-
git push origin v1
42+
git tag --delete v2 || true
43+
git push --delete origin v2 || true
44+
git tag -a v2 -m 'Retag v2'
45+
git push origin v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
with:
4141
ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
4242
fetch-depth: 0 # required for merge-base check
43-
- uses: commit-check/commit-check-action@v1
43+
- uses: commit-check/commit-check-action@v2
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because use of pr-comments
4646
with:

commit-check.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[commit]
2+
# https://www.conventionalcommits.org
3+
conventional_commits = true
4+
subject_capitalized = false
5+
subject_imperative = true
6+
subject_max_length = 80
7+
subject_min_length = 5
8+
allow_commit_types = ["feat", "fix", "docs", "style", "refactor", "test", "chore", "ci"]
9+
allow_merge_commits = true
10+
allow_revert_commits = true
11+
allow_empty_commits = false
12+
allow_fixup_commits = true
13+
allow_wip_commits = false
14+
require_body = false
15+
require_signed_off_by = false
16+
ignore_authors = ["dependabot[bot]", "copilot[bot]", "pre-commit-ci[bot]"]
17+
18+
[branch]
19+
# https://conventional-branch.github.io/
20+
conventional_branch = true
21+
allow_branch_types = ["feature", "bugfix", "hotfix", "release", "chore", "feat", "fix"]
22+
require_rebase_target = "main"
23+
ignore_authors = ["dependabot[bot]", "copilot[bot]", "pre-commit-ci[bot]"]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Install commit-check CLI
22
# For details please see: https://github.com/commit-check/commit-check
3-
commit-check==0.10.2
3+
commit-check==2.0.0
44
# Interact with the GitHub API.
55
PyGithub==2.8.1

0 commit comments

Comments
 (0)