René's URL Explorer Experiment


Title: feat: Commit parser w/ path filter for monorepos · Issue #614 · python-semantic-release/python-semantic-release · GitHub

Open Graph Title: feat: Commit parser w/ path filter for monorepos · Issue #614 · python-semantic-release/python-semantic-release

X Title: feat: Commit parser w/ path filter for monorepos · Issue #614 · python-semantic-release/python-semantic-release

Description: Description Adding the use_only_cwd_commits config makes it possible to make the semantic release look for commits in the cwd folder only. The default behavior is any commit in the repo can trigger a package release. https://github.com/p...

Open Graph Description: Description Adding the use_only_cwd_commits config makes it possible to make the semantic release look for commits in the cwd folder only. The default behavior is any commit in the repo can trigger...

X Description: Description Adding the use_only_cwd_commits config makes it possible to make the semantic release look for commits in the cwd folder only. The default behavior is any commit in the repo can trigger...

Opengraph URL: https://github.com/python-semantic-release/python-semantic-release/issues/614

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: Commit parser w/ path filter for monorepos","articleBody":"## Description\r\n\r\nAdding the `use_only_cwd_commits` config makes it possible to make the semantic release look for commits in the `cwd` folder only.\r\n\r\nThe default behavior is any commit in the repo can trigger a package release.\r\n\r\nhttps://github.com/python-semantic-release/python-semantic-release/blob/master/semantic_release/vcs_helpers.py#L19-L26\r\n```python\r\n_repo: Optional[Repo]\r\n_sub_directory = \"\"\r\ntry:\r\n    _repo = Repo(\".\", search_parent_directories=True)\r\n    if config.get(\"use_only_cwd_commits\") and config.get(\"version_source\") == \"commit\":\r\n        _sub_directory = os.path.relpath(os.getcwd(), _repo.working_dir)\r\nexcept InvalidGitRepositoryError:\r\n    _repo = None\r\n```\r\n\r\nit will be good to have a config option to define one or more folders in the repo to semantic release CLI look for commits.\r\n\r\n## Use cases\r\n\r\n**Monorepo**: When you have multiple packages in the same repo, you can use `use_only_cwd_commits` to force the semantic release to look for commits only in the package folder.\r\n\r\nHowever, when you have local dependencies that could potentially trigger the release of the application, it is required to look at multiple folders to decide if a release is necessary.\r\n\r\nIssue reference: https://github.com/lucasvieirasilva/nx-plugins/issues/122\r\n\r\nExample:\r\n\r\n```text\r\n- apps/app1/pyproject.toml\r\n- libs/lib1/pyproject.toml\r\n```\r\n\r\nIn this example, `app1` references `lib1` as a local dependency using the Poetry path reference https://python-poetry.org/docs/dependency-specification/#path-dependencies\r\n\r\n```toml\r\n...\r\n[tool.poetry]\r\nname = \"app1\"\r\n...\r\n\r\n    [tool.poetry.dependencies.lib1]\r\n    path = \"../../libs/lib1\"\r\n    develop = true\r\n...\r\n```\r\n\r\nIf something changes in the `lib1` it should trigger the `app1` release, however, the commit path is only in the `libs/lib1` folder, not in the `apps/app1` folder.\r\n\r\nIn this case, the `use_only_cwd_commits` config isn't gonna work.\r\n\r\n If we have the option to specify multiple paths for the commit analyzer, I could explicitly reference `libs/lib1` in the `apps/app1/pyproject.toml` semantic release config.\r\n\r\n## Possible implementation\r\n\r\n- a new config entry `commit_paths` that accepts a list of paths.\r\n\r\n```toml\r\n[tool.semantic_release]\r\nversion_variable = [\r\n    \"pyproject.toml:version\"\r\n]\r\nbranch = \"main\"\r\nupload_to_pypi = false\r\nupload_to_release = false\r\ncommit_paths = [\r\n    \"apps/app1\",\r\n    \"libs/lib1\"\r\n]\r\n```\r\n\r\n","author":{"url":"https://github.com/lucasvieirasilva","@type":"Person","name":"lucasvieirasilva"},"datePublished":"2023-06-26T14:32:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/614/python-semantic-release/issues/614"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ffb15f0c-e404-4d43-0eae-7d58c66cff03
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id873E:1B4AFD:12DC45D:1832D31:6990D2EF
html-safe-nonce2fbf4e3c645422683e9e1ea428f64ee51b04912b6a8311c080a8b6f419f9e63f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzNFOjFCNEFGRDoxMkRDNDVEOjE4MzJEMzE6Njk5MEQyRUYiLCJ2aXNpdG9yX2lkIjoiODgwMjI2MDM1NjQ5Nzk4NjI4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac672bba8de9c6bc51c25d147d8cbc31e516b380a6a7321d9ea55494063303d96d
hovercard-subject-tagissue:1774938270
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/python-semantic-release/python-semantic-release/614/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ed7f03be50360097807304d32e8b8c549ad08bd37bb0c89b8ce0a85079eca2fb/python-semantic-release/python-semantic-release/issues/614
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ed7f03be50360097807304d32e8b8c549ad08bd37bb0c89b8ce0a85079eca2fb/python-semantic-release/python-semantic-release/issues/614
og:image:altDescription Adding the use_only_cwd_commits config makes it possible to make the semantic release look for commits in the cwd folder only. The default behavior is any commit in the repo can trigger...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelucasvieirasilva
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/python-semantic-release/python-semantic-release git https://github.com/python-semantic-release/python-semantic-release.git
octolytics-dimension-user_id116517554
octolytics-dimension-user_loginpython-semantic-release
octolytics-dimension-repository_id39765732
octolytics-dimension-repository_nwopython-semantic-release/python-semantic-release
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id39765732
octolytics-dimension-repository_network_root_nwopython-semantic-release/python-semantic-release
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
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-semantic-release/python-semantic-release/issues/614#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-semantic-release%2Fpython-semantic-release%2Fissues%2F614
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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%2Fpython-semantic-release%2Fpython-semantic-release%2Fissues%2F614
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=python-semantic-release%2Fpython-semantic-release
Reloadhttps://github.com/python-semantic-release/python-semantic-release/issues/614
Reloadhttps://github.com/python-semantic-release/python-semantic-release/issues/614
Reloadhttps://github.com/python-semantic-release/python-semantic-release/issues/614
python-semantic-release https://github.com/python-semantic-release
python-semantic-releasehttps://github.com/python-semantic-release/python-semantic-release
Notifications https://github.com/login?return_to=%2Fpython-semantic-release%2Fpython-semantic-release
Fork 264 https://github.com/login?return_to=%2Fpython-semantic-release%2Fpython-semantic-release
Star 1k https://github.com/login?return_to=%2Fpython-semantic-release%2Fpython-semantic-release
Code https://github.com/python-semantic-release/python-semantic-release
Issues 63 https://github.com/python-semantic-release/python-semantic-release/issues
Pull requests 24 https://github.com/python-semantic-release/python-semantic-release/pulls
Actions https://github.com/python-semantic-release/python-semantic-release/actions
Security 0 https://github.com/python-semantic-release/python-semantic-release/security
Insights https://github.com/python-semantic-release/python-semantic-release/pulse
Code https://github.com/python-semantic-release/python-semantic-release
Issues https://github.com/python-semantic-release/python-semantic-release/issues
Pull requests https://github.com/python-semantic-release/python-semantic-release/pulls
Actions https://github.com/python-semantic-release/python-semantic-release/actions
Security https://github.com/python-semantic-release/python-semantic-release/security
Insights https://github.com/python-semantic-release/python-semantic-release/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-semantic-release/python-semantic-release/issues/614
New issuehttps://github.com/login?return_to=https://github.com/python-semantic-release/python-semantic-release/issues/614
feat: Commit parser w/ path filter for monoreposhttps://github.com/python-semantic-release/python-semantic-release/issues/614#top
featureA new feature or a feature requesthttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22feature%22
releasedhttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22released%22
Monorepo supporthttps://github.com/python-semantic-release/python-semantic-release/milestone/9
https://github.com/lucasvieirasilva
https://github.com/lucasvieirasilva
lucasvieirasilvahttps://github.com/lucasvieirasilva
on Jun 26, 2023https://github.com/python-semantic-release/python-semantic-release/issues/614#issue-1774938270
https://github.com/python-semantic-release/python-semantic-release/blob/master/semantic_release/vcs_helpers.py#L19-L26https://github.com/python-semantic-release/python-semantic-release/blob/master/semantic_release/vcs_helpers.py#L19-L26
lucasvieirasilva/nx-plugins#122https://github.com/lucasvieirasilva/nx-plugins/issues/122
https://python-poetry.org/docs/dependency-specification/#path-dependencieshttps://python-poetry.org/docs/dependency-specification/#path-dependencies
featureA new feature or a feature requesthttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22feature%22
releasedhttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22released%22
Monorepo supportNo due datehttps://github.com/python-semantic-release/python-semantic-release/milestone/9
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.