Repository navigation
fix(customize): resolve info_path from config directory - #2134
Open
draarivpatel-ui wants to merge 1 commit into
Open
draarivpatel-ui wants to merge 1 commit into
draarivpatel-ui wants to merge 1 commit into
Conversation
Assisted By: AI
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2134 +/- ##
=======================================
Coverage 98.29% 98.29%
=======================================
Files 61 61
Lines 2874 2877 +3
=======================================
+ Hits 2825 2828 +3
Misses 49 49 ☔ View full report in Codecov by Harness. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #1897.
Resolve a relative
info_pathfrom the directory that contains the Commitizen configuration file instead of the current working directory. This letscz infowork from subdirectories of a repository.Checklist
Was generative AI tooling used to co-author this PR?
Generated-by: AI assistant following the guidelines
Code Changes
uv run poe alllocally to ensure this change passes linter check and testsDocumentation Changes
Updated the
info_pathoption description to document how relative paths are resolved.uv run poe doclocally to ensure the documentation pages renders correctlyExpected Behavior
cz infodisplays the configured information file from any directory inside the repository.Steps to Test This Pull Request
cz_customizewithinfo_path = "README_cz.md"in a repository root.cz infofrom a subdirectory.Automated verification:
pytest -q tests/test_cz_customize.pypassed with 71 tests.Additional Context
Absolute
info_pathvalues keep their existing behavior.