Title: Relative paths works differently with newer versions · Issue #1411 · commitizen-tools/commitizen · GitHub
Open Graph Title: Relative paths works differently with newer versions · Issue #1411 · commitizen-tools/commitizen
X Title: Relative paths works differently with newer versions · Issue #1411 · commitizen-tools/commitizen
Description: Description Hello, I am using commitizen with my sphinx documentation to include CHANGELOG to my sphinx docs. After update to 4.6.3 and newer versions the following code breaks: subprocess.run("cz -n cz_customize changelog --file-name=" ...
Open Graph Description: Description Hello, I am using commitizen with my sphinx documentation to include CHANGELOG to my sphinx docs. After update to 4.6.3 and newer versions the following code breaks: subprocess.run("cz ...
X Description: Description Hello, I am using commitizen with my sphinx documentation to include CHANGELOG to my sphinx docs. After update to 4.6.3 and newer versions the following code breaks: subprocess.run(&quo...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1411
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Relative paths works differently with newer versions","articleBody":"### Description\n\nHello, \nI am using commitizen with my sphinx documentation to include CHANGELOG to my sphinx docs.\nAfter update to 4.6.3 and newer versions the following code breaks:\n``subprocess.run(\"cz -n cz_customize changelog --file-name=\" + os.path.join(\"changelog\", file), shell=True)``\nbut rather following works:\n``subprocess.run(\"cz -n cz_customize changelog --file-name=\" + os.path.join(\"docs\", \"source\", \"changelog\", file), shell=True)``\n\nIt seems that there are the changes related to relative path detection or so.\nIs this a bug or expected behavior?\nCan someone help to understand how code should be changed in order to support both cz versions?\n\n### Steps to reproduce\n\n1. create git repo\n2. create a subfolder\n3. change directory to subfolder\n4. run cz changelog generation and it will grab git root directory instead\n\n### Current behavior\n\nFails to generate changelog in intended path\n\n### Desired behavior\n\nGenerate documents as in previous versions or at least make it compatible \n\n### Screenshots\n\n_No response_\n\n### Environment\n\nCommitizen Version: 4.6.3\nPython Version: 3.12.8 (main, Dec 4 2024, 08:54:12) [GCC 11.4.0]\nOperating System: Linux","author":{"url":"https://github.com/kesmik","@type":"Person","name":"kesmik"},"datePublished":"2025-05-13T05:19:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1411/commitizen/issues/1411"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7c8b3739-65bf-701e-16cf-8937763588bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B06C:B72C9:ECB8CF:1448681:6A4DD5D9 |
| html-safe-nonce | f68c5f2d1451c64db8e48a1198071b56471e6852cbe62fed81f77641a61c25b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDZDOkI3MkM5OkVDQjhDRjoxNDQ4NjgxOjZBNERENUQ5IiwidmlzaXRvcl9pZCI6IjY1OTkzNzk2OTIwNDU1ODc5MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1e51a999c54ce0c9e859cf57ea920e4626e5ca41859150256c50862641060884 |
| hovercard-subject-tag | issue:3058790473 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen/1411/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c6d28cdf3ea255d3b419e0721375254e68c550ef1cf15b42fb9af8b9f6dfa56b/commitizen-tools/commitizen/issues/1411 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c6d28cdf3ea255d3b419e0721375254e68c550ef1cf15b42fb9af8b9f6dfa56b/commitizen-tools/commitizen/issues/1411 |
| og:image:alt | Description Hello, I am using commitizen with my sphinx documentation to include CHANGELOG to my sphinx docs. After update to 4.6.3 and newer versions the following code breaks: subprocess.run("cz ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kesmik |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git |
| octolytics-dimension-user_id | 62252524 |
| octolytics-dimension-user_login | commitizen-tools |
| octolytics-dimension-repository_id | 106127589 |
| octolytics-dimension-repository_nwo | commitizen-tools/commitizen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 106127589 |
| octolytics-dimension-repository_network_root_nwo | commitizen-tools/commitizen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width