azsdk-common-patch-mergeback
Skill2.6k starsChanged 21 months agoMITView on GitHub
Prepare a merge-back PR that brings patch-release version, CHANGELOG, and pom.xml updates from a `release/patch/YYYYMMDD` branch back into `main`. **WORKFLOW SKILL**. USE FOR: "merge-back PR", "merge back patches", "patch release merge-back", "bring patch releases into main", "reconcile release/patch branch with main". DO NOT USE FOR: triggering SDK releases, incrementing versions for a new patch, general SDK code generation. INVOKES: eng/versioning/update_versions.py.
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about Azure/azure-sdk-for-java
- hashicorp/vault“Add go templating to Identity Policy Templating”GitHub · Mar 9, 2021 · 15 reactions
- spring-projects/spring-data-rest“Circular references problem when using RestTemplateBuilder on custom WebMvcConfigurer”GitHub · Oct 24, 2022 · 7 reactions
- nextflow-io/nextflow“Support Azure Batch as additonal executor”GitHub · Dec 20, 2019 · 7 reactions
- Azure/azure-sdk-for-android“[FEATURE REQ] Support Storage libraries on Android”GitHub · Jan 2, 2023 · 6 reactions
- spring-projects/spring-ai“Support structured output in Azure OpenAI as well”GitHub · Dec 3, 2024 · 5 reactions
The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 12
Talked about on GitHub (12 times).
On GitHub · 12
- Mar 9, 2021Add go templating to Identity Policy Templating — hashicorp/vault15 reactions · 4 comments
- Oct 24, 2022Circular references problem when using RestTemplateBuilder on custom WebMvcConfigurer — spring-projects/spring-data-rest7 reactions · 7 comments
- Dec 20, 2019Support Azure Batch as additonal executor — nextflow-io/nextflow7 reactions · 21 comments
- Jan 2, 2023[FEATURE REQ] Support Storage libraries on Android — Azure/azure-sdk-for-android6 reactions · 1 comment
- Dec 3, 2024Support structured output in Azure OpenAI as well — spring-projects/spring-ai5 reactions · 4 comments
7 more on GitHub
- Jun 26, 2023Azure Cosmos DB: support for hierarchical partition keys — Azure/azure-sdk-for-go5 reactions · 6 comments
- May 15, 2020[FEATURE REQ] Storage Migration Guide — Azure/azure-sdk-for-net5 reactions · 10 comments
- Sep 8, 2021Plugins: [repository-azure] plugin should use Azure Storage SDK v12 for Java — opensearch-project/OpenSearch4 reactions · 6 comments
- Jun 27, 2024[BUG] AcquireTokenSilentSupplier failed: Token not found in the cache — AzureAD/microsoft-authentication-library-for-java3 reactions · 3 comments
- Jul 23, 2021Azure Cosmos DB: Introduce CosmosDBEmulatorContainer — testcontainers/testcontainers-java3 reactions · 29 comments
- Nov 17, 2020Upgrade Azure repository SDK to v12 — elastic/elasticsearch3 reactions · 10 comments
- Dec 17, 2024[FEATURE REQ] Add dataSecurityMode to AzureDatabricksLinkedService — Azure/azure-rest-api-specs2 reactions · 1 comment
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agentic-workflowsSkill
- azsdk-common-apiview-feedback-resolutionSkill
- azsdk-common-generate-sdk-locallySkill
- azsdk-common-pipeline-analysisSkill
- azsdk-common-pipeline-fixerSkill
- azsdk-common-prepare-release-planSkill
- azsdk-common-sdk-breaking-changeSkill
- azsdk-common-sdk-releaseSkill
- create-package-skillSkill
- find-package-skillSkill
- management-autopr-reviewSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
WHEN: "merge-back PR", "merge back patches", "patch release merge-back", "bring patch releases into main", "reconcile the patch branch" DO …
- Distinctive: line 22
DO NOT USE FOR: triggering an SDK release, incrementing versions for a new patch cycle, code generation.
- Distinctive: line 35
If either value is ambiguous, ask the user to confirm before proceeding.
- Very specific: line 43
Do not touch
README.mdfiles: Run the version script with --skip-readme so READMEs are left unchanged (README updates are handled … - Very specific: line 45
version_client.txt: update only the dependency-version of SDK libraries that changed on the release branch. - Very specific: line 48
CHANGELOG.md: keep the PATCH_DATE entry from the release branch. - Very specific: line 73
Do not stage any manual pom.xml edits.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Patch Release Merge-back
Prepare a PR that merges the version, CHANGELOG, and downstream pom.xml
updates produced by a patch release (on a release/patch/YYYYMMDD branch) back
into main. Patches revert CHANGELOG.md and version files to the last stable
release, so a naive merge creates many conflicts. This skill encodes how to
resolve each file type correctly.
Triggers
WHEN: "merge-back PR", "merge back patches", "patch release merge-back", "bring patch releases into main", "reconcile the patch branch" DO NOT USE FOR: triggering an SDK release, incrementing versions for a new patch cycle, code generation.
Inputs (variables)
Two values drive the whole workflow. Both come from the "Increment versions
for patch releases" PR (opened by azure-sdk-automation[bot]) that targets the
patch branch:
| Variable | How to determine it | Current value |
RELEASE_BRANCH | The branch the "Increment versions" PR targets: release/patch/YYYYMMDD. | release/patch/20260701 |
PATCH_DATE | Derived from the branch name YYYYMMDD → YYYY-MM-DD. Used in CHANGELOG entries. | 2026-07-01 |
If either value is ambiguous, ask the user to confirm before proceeding.
Critical Rules (read first)
- Only the last two commits of
RELEASE_BRANCHcarry the updates to bring back. Diff againstRELEASE_BRANCH~2to scope the change set. - Never edit
pom.xmlby hand. It is regenerated byeng/versioning/update_versions.pyafterversion_client.txtis correct. - Do not touch
README.mdfiles. Run the version script with--skip-readmeso READMEs are left unchanged (README updates are handled separately). version_client.txt: update only thedependency-versionof SDK libraries that changed on the release branch; always keep thecurrent-versionfrommain. Never reset beta versions tobeta.1.CHANGELOG.md: keep thePATCH_DATEentry from the release branch; every other line must matchmain. Do not invent or edit any other CHANGELOG content.- Base the merge-back branch on
main, not on the release branch.
Workflow
- Confirm inputs — Establish
RELEASE_BRANCHandPATCH_DATE(see table above). Fetch the branch:git fetch origin RELEASE_BRANCH. - Create the working branch from
main:git checkout main && git pullthengit checkout -b copilot/merge-back-release-patch-YYYYMMDD. - Scope the changes — List files touched by the last two commits:
git diff --name-only origin/RELEASE_BRANCH~2 origin/RELEASE_BRANCH. Expect three kinds:eng/versioning/version_client.txt, manyCHANGELOG.md, and manypom.xml(+ possiblyREADME.md). - Reconcile
version_client.txt— Follow references/version-client-resolution.md. - Reconcile each
CHANGELOG.md— Follow references/changelog-resolution.md. - Regenerate
pom.xml— From the repo root run the version script with the--skip-readme(--sr) flag soREADME.mdfiles are left untouched:
Do not stage any manualpython eng/versioning/update_versions.py --skip-readmepom.xmledits; only the generated output. Confirm noREADME.mdfiles appear in the resulting diff. - Review & sanity-check — Verify no v2 (
*-v2) or unrelated libraries were touched, nocurrent-versionvalues were altered, and no beta version was reset tobeta.1. - Commit and open the PR against
main— Title it like<Month> <Year> Patches Merge-back. Summarize: bumped dependency versions, insertedPATCH_DATECHANGELOG entries, and auto-generated pom.xml updates (READMEs intentionally left unchanged via--skip-readme).
Examples
- "Prepare the merge-back PR for
release/patch/20260701into main." - "Bring the July 2026 patch releases back into main."
Troubleshooting
current-versionmismatch after regeneration (e.g.2.59.0-beta.1vs2.59.0-beta.2): you likely overwrote acurrent-version. Restore it frommain; onlydependency-versionshould change.- Unexpected pom.xml diffs: re-run
update_versions.pyonly afterversion_client.txtis fully correct; stray diffs usually mean the version file still has a wrong entry. - Accidental v2 library changes: revert them — patch merge-backs only cover the patched GA/beta libraries listed in the release branch diff.
- Wrong CHANGELOG "from" versions in
## X.Y.Z (PATCH_DATE)dependency bullets: correct them to match the actual previous release, per the release branch entry.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

