René's URL Explorer Experiment


Title: Scan for providers using metadata.entry_points in init · Issue #1258 · commitizen-tools/commitizen · GitHub

Open Graph Title: Scan for providers using metadata.entry_points in init · Issue #1258 · commitizen-tools/commitizen

X Title: Scan for providers using metadata.entry_points in init · Issue #1258 · commitizen-tools/commitizen

Description: Description Currently, when running the cz init command, Commitizen scans for plugins using the registry populated by metadata.entry_points(group="commitizen.plugin") in commitizen/cz/__init__.py. However, for providers, while the cz ver...

Open Graph Description: Description Currently, when running the cz init command, Commitizen scans for plugins using the registry populated by metadata.entry_points(group="commitizen.plugin") in commitizen/cz/__init__.py. ...

X Description: Description Currently, when running the cz init command, Commitizen scans for plugins using the registry populated by metadata.entry_points(group="commitizen.plugin") in commitizen/cz/__i...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Scan for providers using metadata.entry_points in init","articleBody":"### Description\n\nCurrently, when running the ```cz init``` command, Commitizen scans for plugins using the registry populated by ```metadata.entry_points(group=\"commitizen.plugin\")``` in ```commitizen/cz/__init__.py```.\r\n\r\nHowever, for providers, while the ```cz version``` command scans and detects third-party providers dynamically, the ```cz init``` command relies on a fixed list of providers. This makes it difficult to discover or configure new providers during the initialization process.\r\n\r\nTo improve usability, cz should implement dynamic discovery of providers during ```cz init```, similar to how third-party plugins are handled, allowing for easier integration of new or custom providers.\r\n\r\nI have locally implemented the feature and I'd be willing to provide a PR if possible. \r\n\n\n### Possible Solution\n\nCreate a similar registry for providers and populate it using metadata.entry_points(group=\"commitizen.provider\"). Concatenate the results with the hardcoded one in (commitizen/commands/init.py:227)\r\n\r\n## commitizen/cz/__init__.py\r\n```python\r\ndef discover_providers() -\u003e dict[str, type[VersionProvider]]:\r\n    \"\"\"Discover commitizen version providers on the path\r\n\r\n        Returns:\r\n        Dict[str, Type[VersionProvider]]: Registry with found version providers\r\n    \"\"\"\r\n\r\n    return {\r\n        ep.name: ep.load() for ep in metadata.entry_points(group=\"commitizen.provider\")\r\n    }\r\n\r\nversioner: dict[str, type[BaseCommitizen]] = discover_providers()\r\n```\r\n\r\n## commitizen/commands/init.py - line 236\r\n```python\r\n  opts = list(versioner.keys())\r\n    # Merge\r\n  OPTS.update(\r\n      {opt: f\"{opt}: Get and set version from {opt}\" for opt in opts})\r\n```\n\n### Additional context\n\n_No response_\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/dhmmasson","@type":"Person","name":"dhmmasson"},"datePublished":"2024-10-14T18:02:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1258/commitizen/issues/1258"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:022f6446-37ee-b929-0b46-1d62087ea63d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB356:7DC64:552909:7BEE55:6A4E0924
html-safe-noncef9f21dc375579e118307ee2b1c20d8b43077730c74d8da7919077c4b5f1cce95
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzU2OjdEQzY0OjU1MjkwOTo3QkVFNTU6NkE0RTA5MjQiLCJ2aXNpdG9yX2lkIjoiNjQ3NDc5MDM3MDE5MDE2NjMwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4ed6877e09012f295d4d1686a508face8721164bba923bf6e30129c56936be68
hovercard-subject-tagissue:2586711858
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/1258/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8b2c295a1ede1665f10ead9505c4837100d1f1b10b592f90ea93d7491b7d6fb7/commitizen-tools/commitizen/issues/1258
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8b2c295a1ede1665f10ead9505c4837100d1f1b10b592f90ea93d7491b7d6fb7/commitizen-tools/commitizen/issues/1258
og:image:altDescription Currently, when running the cz init command, Commitizen scans for plugins using the registry populated by metadata.entry_points(group="commitizen.plugin") in commitizen/cz/__init__.py. ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedhmmasson
hostnamegithub.com
expected-hostnamegithub.com
Nonedf0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6
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
release52bde38e24398476f8eb1e0760c81346c6a00812
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/issues/1258#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1258
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%2Fissues%2F1258
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/1258
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1258
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1258
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1258
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1258
Notifications https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 343 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
Scan for providers using metadata.entry_points in inithttps://github.com/commitizen-tools/commitizen/issues/1258#top
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%22
type: featureA new enhacement proposalhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%22
https://github.com/dhmmasson
dhmmassonhttps://github.com/dhmmasson
on Oct 14, 2024https://github.com/commitizen-tools/commitizen/issues/1258#issue-2586711858
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%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.