Fix test_positional_arg_invalid_commit failing in CI environments#373
Conversation
✅ Deploy Preview for commit-check ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Merging this PR will improve performance by 22.1%
Performance Changes
Comparing Footnotes
|
The test was failing in CI because the git author (copilot[bot]) was in the ignore_authors list, causing validation to be skipped and return 0 instead of 1. Added mocker parameter and mock to ensure the author is not ignored. Co-authored-by: shenxianpeng <[email protected]>
e2f8162 to
1220d9b
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dependabot/github_actions/CodSpeedHQ/action-4.10.5 #373 +/- ##
=====================================================================================
Coverage ? 94.65%
=====================================================================================
Files ? 9
Lines ? 805
Branches ? 0
=====================================================================================
Hits ? 762
Misses ? 43
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0544028
into
dependabot/github_actions/CodSpeedHQ/action-4.10.5



Test was returning 0 (pass) instead of 1 (fail) when run in CI because the git author (
copilot[bot]) was in theignore_authorsconfiguration list, causing validation to be skipped.Changes
get_commit_infointest_positional_arg_invalid_committo return"test-author"instead of the actual CI authorThis aligns with the existing pattern used in
test_message_validation_with_invalid_commit.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.