-
-
Notifications
You must be signed in to change notification settings - Fork 0
Propagate changes from main into development #986
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
4034a2a
e66146e
48df8c8
727a865
dc96507
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -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>.*)" | ||||||
|
||||||
| "extractVersionTemplate": "^v(?<version>.*)" | |
| "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.
This regex manager appears unlikely to match the current
.github/workflows/quality-checks.yml: that workflow currently hasversion: latestforgolangci-lint-actionand does not include the# renovate: datasource=github-releases depName=golangci/golangci-lintmarker comment. As a result, Renovate won’t track/update the golangci-lint version as intended; either update the workflow to pinversion: vX.Y.Zwith the marker, or adjust the regex to match the existing pattern you want Renovate to manage.