-
-
Notifications
You must be signed in to change notification settings - Fork 2
BREAKING CHNAGE: Upgrade commit-check to v2.0.0 #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f5fc99e
01d98b6
70a31f4
4e5410a
2d5dfe0
6cbe8b5
1f6c524
31b4871
eb895f4
d36e878
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,18 +14,15 @@ jobs: | |
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit | ||
| fetch-depth: 0 # fetch all history for all branches and tags | ||
| ref: ${{ github.event.pull_request.head.ref }} # Checkout PR branch | ||
| fetch-depth: 0 # Required for merge-base checks | ||
| - uses: ./ # self test | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed for PR comments | ||
| with: | ||
|
Comment on lines
+17
to
22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Restore checkout fallback for non-PR runs.
- ref: ${{ github.event.pull_request.head.ref }} # Checkout PR branch + ref: ${{ github.event.pull_request.head.ref || github.ref_name }} # PR branch on PRs; dispatch/push fallback 📝 Committable suggestion
Suggested change
ref: ${{ github.event.pull_request.head.ref }} # Checkout PR branch
fetch-depth: 0 # Required for merge-base checks
- uses: ./ # self test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed for PR comments
with:
ref: ${{ github.event.pull_request.head.ref || github.ref_name }} # PR branch on PRs; dispatch/push fallback
fetch-depth: 0 # Required for merge-base checks
- uses: ./ # self test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed for PR comments
with:
🤖 Prompt for AI Agents |
||
| message: true | ||
| branch: true | ||
| author-name: true | ||
| author-email: true | ||
| commit-signoff: true | ||
| merge-base: true | ||
| imperative: true | ||
| job-summary: true | ||
| pr-comments: ${{ github.event_name == 'pull_request' }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| [commit] | ||
| # https://www.conventionalcommits.org | ||
| conventional_commits = true | ||
| subject_capitalized = false | ||
| subject_imperative = true | ||
| subject_max_length = 80 | ||
| subject_min_length = 5 | ||
| allow_commit_types = ["feat", "fix", "docs", "style", "refactor", "test", "chore", "ci"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Restore the full Conventional Commit type set. We reference the Conventional Commits spec here, but -allow_commit_types = ["feat", "fix", "docs", "style", "refactor", "test", "chore", "ci"] +allow_commit_types = ["feat", "fix", "docs", "style", "refactor", "test", "chore", "ci", "build", "perf"] 🤖 Prompt for AI Agents |
||
| allow_merge_commits = true | ||
| allow_revert_commits = true | ||
| allow_empty_commits = false | ||
| allow_fixup_commits = true | ||
| allow_wip_commits = false | ||
| require_body = false | ||
| require_signed_off_by = false | ||
| ignore_authors = ["dependabot[bot]", "copilot[bot]", "pre-commit-ci[bot]"] | ||
|
|
||
| [branch] | ||
| # https://conventional-branch.github.io/ | ||
| conventional_branch = true | ||
| allow_branch_types = ["feature", "bugfix", "hotfix", "release", "chore", "feat", "fix"] | ||
shenxianpeng marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| require_rebase_target = "origin/main" | ||
| ignore_authors = ["dependabot[bot]", "copilot[bot]", "pre-commit-ci[bot]"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # Install commit-check CLI | ||
| # For details please see: https://github.com/commit-check/commit-check | ||
| commit-check==0.10.2 | ||
| commit-check==2.0.0 | ||
| # Interact with the GitHub API. | ||
| PyGithub==2.8.1 |