-
-
Notifications
You must be signed in to change notification settings - Fork 8
refactor: move default values to __init__.py #299
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
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 |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| what-is-new | ||
| configuration | ||
| migration | ||
| troubleshoot | ||
| changelog | ||
|
|
||
| .. toctree:: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| Troubleshooting | ||
| =============== | ||
|
|
||
| How to Skip Author Name Check | ||
| ----------------------------- | ||
|
|
||
| In some cases, Commit Check may fail due to an invalid ``author_name``, as shown below: | ||
|
|
||
| .. code-block:: shell | ||
| check committer name.....................................................Failed | ||
| - hook id: check-author-name | ||
| - exit code: 1 | ||
| Commit rejected by Commit-Check. | ||
| Type author_name check failed => 12 | ||
| It doesn't match regex: ^[A-Za-zÀ-ÖØ-öø-ÿ\u0100-\u017F\u0180-\u024F ,.\'-]+$|.*(\[bot]) | ||
| The committer name seems invalid | ||
| Suggest: run command `git config user.name "Your Name"` | ||
| To fix it, you can either update your Git config or temporarily skip the check using one of the following methods. | ||
|
|
||
| Bypass Specific Hook | ||
| ~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Use the ``--no-verify`` flag to skip the pre-commit hook: | ||
|
|
||
| .. code-block:: shell | ||
| # Amend the commit without running hooks | ||
| git commit --amend --author="Xianpeng Shen <xianpeng.shen@gmail.com>" --no-edit --no-verify | ||
| Bypass All Hooks | ||
| ---------------- | ||
|
|
||
| Alternatively, use the ``SKIP=your-hook-name`` environment variable, like below: | ||
|
|
||
| .. code-block:: shell | ||
| # Set the correct Git author name | ||
| git config user.name "Xianpeng Shen" | ||
| # Force amend while skipping the specified hook | ||
| SKIP=check-author-name git commit --amend --author="Xianpeng Shen <xianpeng.shen@gmail.com>" --no-edit | ||
|
Comment on lines
+24
to
+45
Contributor
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. Fix misleading hook-bypass guidance
-Bypass Specific Hook
-~~~~~~~~~~~~~~~~~~~~
-
-Use the ``--no-verify`` flag to skip the pre-commit hook:
+Bypass All Hooks
+----------------
+
+Use the ``--no-verify`` flag to skip every pre-commit and commit-msg hook:
@@
-Bypass All Hooks
-----------------
-
-Alternatively, use the ``SKIP=your-hook-name`` environment variable, like below:
+Skip Selected Hooks
+~~~~~~~~~~~~~~~~~~~
+
+Alternatively, use the ``SKIP=your-hook-name`` environment variable with pre-commit to skip only particular hooks:🤖 Prompt for AI Agents |
||
Uh oh!
There was an error while loading. Please reload this page.