René's URL Explorer Experiment


Title: Filtering commits by path before version bump · Issue #1347 · commitizen-tools/commitizen · GitHub

Open Graph Title: Filtering commits by path before version bump · Issue #1347 · commitizen-tools/commitizen

X Title: Filtering commits by path before version bump · Issue #1347 · commitizen-tools/commitizen

Description: Description Introduce an option (either in the configuration file or as a CLI argument) to filter the commits that will be considered for the version bump calculation. This feature would allow users to specify a path prefix, ensuring tha...

Open Graph Description: Description Introduce an option (either in the configuration file or as a CLI argument) to filter the commits that will be considered for the version bump calculation. This feature would allow user...

X Description: Description Introduce an option (either in the configuration file or as a CLI argument) to filter the commits that will be considered for the version bump calculation. This feature would allow user...

Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1347

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Filtering commits by path before version bump","articleBody":"### Description\n\nIntroduce an option (either in the configuration file or as a CLI argument) to filter the commits that will be considered for the version bump calculation. This feature would allow users to specify a path prefix, ensuring that only commits affecting files within the specified path are taken into account.\n\nThis feature would provide a basic way to handle version bumping in monorepos by allowing users to focus on changes within specific subdirectories and could be used by users until full support for monorepos is added to commitizen (I saw other issues mentioning other types of features for monorepo support so this could be used together with those other features).\n\n### Possible Solution\n\nI went ahead and tried implementing my suggestion [in a fork](https://github.com/dalbitresb12/commitizen/tree/feat/bump-path-filter) so that I could start testing it with an internal application (I did search for contributing guidelines, but I didn't look in the docs/ folder, so I didn't see [this line](https://github.com/commitizen-tools/commitizen/blob/5d6369ee1c6e06f610f5a77117df909cee389b64/docs/contributing.md?plain=1#L5) before implementing, sorry).\n\nBasically the changes I made are:\n\n- [Read a new config option, `path_prefix`](https://github.com/dalbitresb12/commitizen/blob/3cce09866984de070a2b854922fc9433a1641abf/commitizen/commands/bump.py#L69). I didn't add this feature as a CLI argument but it can be added if wanted.\n- Use this config option to [apply a filter](https://github.com/dalbitresb12/commitizen/blob/3cce09866984de070a2b854922fc9433a1641abf/commitizen/commands/bump.py#L139-L150) using the already implemented [`git.get_filenames_in_commit`](https://github.com/commitizen-tools/commitizen/blob/08a259d2de99138035c08af35ec515fb8455aa83/commitizen/git.py#L153-L164) function.\n- [Filter the list of commits](https://github.com/dalbitresb12/commitizen/blob/3cce09866984de070a2b854922fc9433a1641abf/commitizen/commands/bump.py#L267) using the previously defined filter.\n\nI can make a PR for this feature and also make any other changes as needed so that this feature can see the light of day :)\n\n### Additional context\n\nYou can see the [test](https://github.com/dalbitresb12/commitizen/blob/3cce09866984de070a2b854922fc9433a1641abf/tests/commands/test_bump_command.py#L1548-L1562) I implemented for an example of the feature working.\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/dalbitresb12","@type":"Person","name":"dalbitresb12"},"datePublished":"2025-01-30T18:00:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1347/commitizen/issues/1347"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4c349451-a907-deb3-4ff8-88406d58e3b6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idACE6:8CA80:803338:B3FAD9:6A4E7C72
html-safe-nonce50c8140271bb2cea22df4d0ec8b159d4e3d6b9a122d9c567d2cc3534b3797805
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0U2OjhDQTgwOjgwMzMzODpCM0ZBRDk6NkE0RTdDNzIiLCJ2aXNpdG9yX2lkIjoiNDMyNTkwNjMyNTUwMDM4NjQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace4ce7e06076c2d9d647a39a0e846b83545453b38986da38c1f1ce4912568c7aa
hovercard-subject-tagissue:2821482432
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen/1347/issue_layout
twitter:imagehttps://opengraph.githubassets.com/042b7decd32cf7f211e875f858e1e8a74ada118c8139bdc688dc4780d04c7a3d/commitizen-tools/commitizen/issues/1347
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/042b7decd32cf7f211e875f858e1e8a74ada118c8139bdc688dc4780d04c7a3d/commitizen-tools/commitizen/issues/1347
og:image:altDescription Introduce an option (either in the configuration file or as a CLI argument) to filter the commits that will be considered for the version bump calculation. This feature would allow user...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedalbitresb12
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/issues/1347#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1347
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2Fissues%2F1347
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=commitizen-tools%2Fcommitizen
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1347
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1347
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1347
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1347
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1347
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
Filtering commits by path before version bumphttps://github.com/commitizen-tools/commitizen/issues/1347#top
effects-of-ai-on-code-reviewFor SWE productivity study (temporary tag)https://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22effects-of-ai-on-code-review%22
type: featureA new enhacement proposalhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%22
https://github.com/dalbitresb12
dalbitresb12https://github.com/dalbitresb12
on Jan 30, 2025https://github.com/commitizen-tools/commitizen/issues/1347#issue-2821482432
in a forkhttps://github.com/dalbitresb12/commitizen/tree/feat/bump-path-filter
this linehttps://github.com/commitizen-tools/commitizen/blob/5d6369ee1c6e06f610f5a77117df909cee389b64/docs/contributing.md?plain=1#L5
Read a new config option, path_prefixhttps://github.com/dalbitresb12/commitizen/blob/3cce09866984de070a2b854922fc9433a1641abf/commitizen/commands/bump.py#L69
apply a filterhttps://github.com/dalbitresb12/commitizen/blob/3cce09866984de070a2b854922fc9433a1641abf/commitizen/commands/bump.py#L139-L150
git.get_filenames_in_commithttps://github.com/commitizen-tools/commitizen/blob/08a259d2de99138035c08af35ec515fb8455aa83/commitizen/git.py#L153-L164
Filter the list of commitshttps://github.com/dalbitresb12/commitizen/blob/3cce09866984de070a2b854922fc9433a1641abf/commitizen/commands/bump.py#L267
testhttps://github.com/dalbitresb12/commitizen/blob/3cce09866984de070a2b854922fc9433a1641abf/tests/commands/test_bump_command.py#L1548-L1562
effects-of-ai-on-code-reviewFor SWE productivity study (temporary tag)https://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22effects-of-ai-on-code-review%22
type: featureA new enhacement proposalhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%22
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.