-
-
Notifications
You must be signed in to change notification settings - Fork 0
Propagate changes from main into development #982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,7 +7,6 @@ | |||||||||||||||||||||||||||||
| "helpers:pinGitHubActionDigests" | ||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||
| "baseBranchPatterns": [ | ||||||||||||||||||||||||||||||
| "feature/beta-release", | ||||||||||||||||||||||||||||||
| "development" | ||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||
| "postUpdateOptions": ["npmDedupe"], | ||||||||||||||||||||||||||||||
|
|
@@ -24,6 +23,7 @@ | |||||||||||||||||||||||||||||
| ".docker/**" | ||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| "minimumReleaseAge": null, | ||||||||||||||||||||||||||||||
| "rebaseWhen": "auto", | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| "vulnerabilityAlerts": { | ||||||||||||||||||||||||||||||
|
|
@@ -242,6 +242,20 @@ | |||||||||||||||||||||||||||||
| "depNameTemplate": "golang/go", | ||||||||||||||||||||||||||||||
| "datasourceTemplate": "golang-version", | ||||||||||||||||||||||||||||||
| "versioningTemplate": "semver" | ||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||
| "customType": "regex", | ||||||||||||||||||||||||||||||
| "description": "Track golangci-lint version in quality checks workflow", | ||||||||||||||||||||||||||||||
| "managerFilePatterns": [ | ||||||||||||||||||||||||||||||
| "/^\\.github/workflows/quality-checks\\.yml$/" | ||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||
| "matchStrings": [ | ||||||||||||||||||||||||||||||
| "# renovate: datasource=github-releases depName=golangci/golangci-lint\\n\\s+version: v(?<currentValue>[^\\s]+)" | ||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||
| "depNameTemplate": "golangci/golangci-lint", | ||||||||||||||||||||||||||||||
| "datasourceTemplate": "github-releases", | ||||||||||||||||||||||||||||||
| "versioningTemplate": "semver", | ||||||||||||||||||||||||||||||
| "extractVersionTemplate": "^v(?<version>.*)" | ||||||||||||||||||||||||||||||
|
Comment on lines
+245
to
+258
|
||||||||||||||||||||||||||||||
| }, | |
| { | |
| "customType": "regex", | |
| "description": "Track golangci-lint version in quality checks workflow", | |
| "managerFilePatterns": [ | |
| "/^\\.github/workflows/quality-checks\\.yml$/" | |
| ], | |
| "matchStrings": [ | |
| "# renovate: datasource=github-releases depName=golangci/golangci-lint\\n\\s+version: v(?<currentValue>[^\\s]+)" | |
| ], | |
| "depNameTemplate": "golangci/golangci-lint", | |
| "datasourceTemplate": "github-releases", | |
| "versioningTemplate": "semver", | |
| "extractVersionTemplate": "^v(?<version>.*)" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -183,27 +183,5 @@ jobs: | |
| core.info('Push originated from development (excluded). Skipping propagation back to development.'); | ||
| } | ||
| } else if (currentBranch === 'development') { | ||
| // Development -> Feature/Hotfix branches (The Pittsburgh Model) | ||
| // We propagate changes from dev DOWN to features/hotfixes so they stay up to date. | ||
|
|
||
| const branches = await github.paginate(github.rest.repos.listBranches, { | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| }); | ||
|
|
||
| // Filter for feature/* and hotfix/* branches using regex | ||
| // AND exclude the branch that just got merged in (if any) | ||
| const targetBranches = branches | ||
| .map(b => b.name) | ||
| .filter(name => { | ||
| const isTargetType = /^feature\/|^hotfix\//.test(name); | ||
| const isExcluded = (name === excludedBranch); | ||
| return isTargetType && !isExcluded; | ||
| }); | ||
|
|
||
| core.info(`Found ${targetBranches.length} target branches (excluding '${excludedBranch || 'none'}'): ${targetBranches.join(', ')}`); | ||
|
|
||
| for (const targetBranch of targetBranches) { | ||
| await createPR('development', targetBranch); | ||
| } | ||
| core.info('Push to development detected. No downstream propagation configured.'); | ||
| } | ||
|
Comment on lines
185
to
187
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With
baseBranchPatternsnow limited todevelopment, Renovate will no longer create PRs targeting other long-lived branches such asfeature/beta-release(which is referenced in multiple repo docs/scripts as an active branch). If Renovate updates are still expected on that branch, add it back (or use a broader pattern such asfeature/**for the specific branches you want Renovate to maintain).