René's URL Explorer Experiment


Title: fix: cz bump subdir by Yusin0903 · Pull Request #1391 · commitizen-tools/commitizen · GitHub

Open Graph Title: fix: cz bump subdir by Yusin0903 · Pull Request #1391 · commitizen-tools/commitizen

X Title: fix: cz bump subdir by Yusin0903 · Pull Request #1391 · commitizen-tools/commitizen

Description: Description This pull request fixes the construction of the changelog file name in changelog.py to ensure type safety and correct path handling. It also adds proper error handling for missing or invalid changelog file names. Checklist Add test cases to all the changes you introduce Run poetry all locally to ensure this change passes linter check and test Test the changes on the local machine manually Update the documentation for the changes Expected behavior The changelog command should now correctly resolve the changelog file path, regardless of whether the config path is set, and should raise a clear error if the file name is missing or invalid. Steps to Test This Pull Request Run poetry all and ensure all checks pass. Run the changelog command with and without the --file-name argument. Verify that the changelog file is created at the expected location. Check that an error is raised if the changelog file name is missing or invalid. Additional context Sorry, I don' t know why my last branch have hide word problem. So I open lots of PR and close them . By the way, I saw the github action warning This is a scheduled Ubuntu 20.04 retirement. Ubuntu 20.04 LTS runner will be removed on 2025-04-15. For more details, see https://github.com/actions/runner-images/issues/11101Show more

Open Graph Description: Description This pull request fixes the construction of the changelog file name in changelog.py to ensure type safety and correct path handling. It also adds proper error handling for missing or ...

X Description: Description This pull request fixes the construction of the changelog file name in changelog.py to ensure type safety and correct path handling. It also adds proper error handling for missing or ...

Opengraph URL: https://github.com/commitizen-tools/commitizen/pull/1391

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fe2088a4-2642-8dc1-d4f7-2bf1bb4ed73d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB158:7A367:7A6798:B39850:6A4E1557
html-safe-nonceba32656bfd315ece2ad89b5c208660f04057ba5d6c05f57bb04ba91743f37ccd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTU4OjdBMzY3OjdBNjc5ODpCMzk4NTA6NkE0RTE1NTciLCJ2aXNpdG9yX2lkIjoiNzEzODM5NDEzNjMyMzY5MTg2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfcee8974e6ef5f6a0ca54255a62c87f63809e3f90eb2b8b515427cbdf3040d3b
hovercard-subject-tagpull_request:2464118833
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/commitizen-tools/commitizen/pull/1391/files
twitter:imagehttps://avatars.githubusercontent.com/u/34501891?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/34501891?s=400&v=4
og:image:altDescription This pull request fixes the construction of the changelog file name in changelog.py to ensure type safety and correct path handling. It also adds proper error handling for missing or ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git
octolytics-dimension-user_id62252524
octolytics-dimension-user_logincommitizen-tools
octolytics-dimension-repository_id106127589
octolytics-dimension-repository_nwocommitizen-tools/commitizen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id106127589
octolytics-dimension-repository_network_root_nwocommitizen-tools/commitizen
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseea9187571e3edc5f2780f750631138669441ca50
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/pull/1391/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F1391%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F1391%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=commitizen-tools%2Fcommitizen
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1391/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1391/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1391/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1391/files
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1391/files
Notifications https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 344 https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Star 3.5k https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Code https://github.com/commitizen-tools/commitizen
Issues 116 https://github.com/commitizen-tools/commitizen/issues
Pull requests 45 https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality 0 https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Code https://github.com/commitizen-tools/commitizen
Issues https://github.com/commitizen-tools/commitizen/issues
Pull requests https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcommitizen-tools%2Fcommitizen%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen%2Fissues%2Fnew%2Fchoose
Lee-Whttps://github.com/Lee-W
commitizen-tools:masterhttps://github.com/commitizen-tools/commitizen/tree/master
Yusin0903:fix-cz-bump-subdirhttps://github.com/Yusin0903/commitizen/tree/fix-cz-bump-subdir
Conversation 3 https://github.com/commitizen-tools/commitizen/pull/1391
Commits 3 https://github.com/commitizen-tools/commitizen/pull/1391/commits
Checks 0 https://github.com/commitizen-tools/commitizen/pull/1391/checks
Files changed https://github.com/commitizen-tools/commitizen/pull/1391/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1391/files
fix: cz bump subdir https://github.com/commitizen-tools/commitizen/pull/1391/files#top
Show all changes 3 commits https://github.com/commitizen-tools/commitizen/pull/1391/files
6eabcfa fix(changelog.py): modify the CHANGELOG.md generated by cz bump --cha… Yusin0903 Apr 15, 2025 https://github.com/commitizen-tools/commitizen/pull/1391/commits/6eabcfa80683788594dcd46416ce68a4631e7c99
2e6f754 test(test_changelog_command.py): add test for changelog file_name con… Yusin0903 Apr 15, 2025 https://github.com/commitizen-tools/commitizen/pull/1391/commits/2e6f754464cd4cc449fd3f42e3158bc9fced3866
2bc2fa8 fix(changelog.py): cross-platform path handling using os.path.join an… Yusin0903 Apr 16, 2025 https://github.com/commitizen-tools/commitizen/pull/1391/commits/2bc2fa866bd0aa6894f2381b6bd0ea42b1b5564f
Clear filters https://github.com/commitizen-tools/commitizen/pull/1391/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1391/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1391/files
changelog.py https://github.com/commitizen-tools/commitizen/pull/1391/files#diff-c6c18b0eef4f3598794a5fa7177ac53dd0cd8eba8f29ed7be7319c6d431f21c1
test_changelog.py https://github.com/commitizen-tools/commitizen/pull/1391/files#diff-a851993f0fd5a02da3608dd2bde34d3575e429c25ae8c52e2496205ad0492de0
commitizen/commands/changelog.pyhttps://github.com/commitizen-tools/commitizen/pull/1391/files#diff-c6c18b0eef4f3598794a5fa7177ac53dd0cd8eba8f29ed7be7319c6d431f21c1
View file https://github.com/Yusin0903/commitizen/blob/2bc2fa866bd0aa6894f2381b6bd0ea42b1b5564f/commitizen/commands/changelog.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1391/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1391/files#diff-c6c18b0eef4f3598794a5fa7177ac53dd0cd8eba8f29ed7be7319c6d431f21c1
https://github.com/commitizen-tools/commitizen/pull/1391/files#diff-c6c18b0eef4f3598794a5fa7177ac53dd0cd8eba8f29ed7be7319c6d431f21c1
https://github.com/commitizen-tools/commitizen/pull/1391/files#diff-c6c18b0eef4f3598794a5fa7177ac53dd0cd8eba8f29ed7be7319c6d431f21c1
tests/test_changelog.pyhttps://github.com/commitizen-tools/commitizen/pull/1391/files#diff-a851993f0fd5a02da3608dd2bde34d3575e429c25ae8c52e2496205ad0492de0
View file https://github.com/Yusin0903/commitizen/blob/2bc2fa866bd0aa6894f2381b6bd0ea42b1b5564f/tests/test_changelog.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1391/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1391/files#diff-a851993f0fd5a02da3608dd2bde34d3575e429c25ae8c52e2496205ad0492de0
https://github.com/commitizen-tools/commitizen/pull/1391/files#diff-a851993f0fd5a02da3608dd2bde34d3575e429c25ae8c52e2496205ad0492de0
https://github.com/commitizen-tools/commitizen/pull/1391/files#diff-a851993f0fd5a02da3608dd2bde34d3575e429c25ae8c52e2496205ad0492de0
https://github.com/commitizen-tools/commitizen/pull/1391/files#diff-a851993f0fd5a02da3608dd2bde34d3575e429c25ae8c52e2496205ad0492de0
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.