agentleFS
Microsoft AzureKnown publisherAzure/azure-sdk-for-java/.github/skills/azsdk-java-patch-mergeback/SKILL.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Azure/azure-sdk-for-java repository that our weekly crawl found: only 12 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about Azure/azure-sdk-for-java

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

7 more on GitHub

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
  1. Distinctive:

    WHEN: "merge-back PR", "merge back patches", "patch release merge-back", "bring patch releases into main", "reconcile the patch branch" DO …

    line 21
  2. Distinctive:

    DO NOT USE FOR: triggering an SDK release, incrementing versions for a new patch cycle, code generation.

    line 22
  3. Distinctive:

    If either value is ambiguous, ask the user to confirm before proceeding.

    line 35
  4. Very specific:

    Do not touch README.md files: Run the version script with --skip-readme so READMEs are left unchanged (README updates are handled …

    line 43
  5. Very specific:

    version_client.txt: update only the dependency-version of SDK libraries that changed on the release branch.

    line 45
  6. Very specific:

    CHANGELOG.md: keep the PATCH_DATE entry from the release branch.

    line 48
  7. Very specific:

    Do not stage any manual pom.xml edits.

    line 73

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

VariableHow to determine itCurrent value
RELEASE_BRANCHThe branch the "Increment versions" PR targets: release/patch/YYYYMMDD.release/patch/20260701
PATCH_DATEDerived 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_BRANCH carry the updates to bring back. Diff against RELEASE_BRANCH~2 to scope the change set.
  • Never edit pom.xml by hand. It is regenerated by eng/versioning/update_versions.py after version_client.txt is correct.
  • Do not touch README.md files. Run the version script with --skip-readme so READMEs are left unchanged (README updates are handled separately).
  • version_client.txt: update only the dependency-version of SDK libraries that changed on the release branch; always keep the current-version from main. Never reset beta versions to beta.1.
  • CHANGELOG.md: keep the PATCH_DATE entry from the release branch; every other line must match main. Do not invent or edit any other CHANGELOG content.
  • Base the merge-back branch on main, not on the release branch.

Workflow

  1. Confirm inputs — Establish RELEASE_BRANCH and PATCH_DATE (see table above). Fetch the branch: git fetch origin RELEASE_BRANCH.
  2. Create the working branch from main: git checkout main && git pull then git checkout -b copilot/merge-back-release-patch-YYYYMMDD.
  3. 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, many CHANGELOG.md, and many pom.xml (+ possibly README.md).
  4. Reconcile version_client.txt — Follow references/version-client-resolution.md.
  5. Reconcile each CHANGELOG.md — Follow references/changelog-resolution.md.
  6. Regenerate pom.xml — From the repo root run the version script with the --skip-readme (--sr) flag so README.md files are left untouched:
    python eng/versioning/update_versions.py --skip-readme
    Do not stage any manual pom.xml edits; only the generated output. Confirm no README.md files appear in the resulting diff.
  7. Review & sanity-check — Verify no v2 (*-v2) or unrelated libraries were touched, no current-version values were altered, and no beta version was reset to beta.1.
  8. Commit and open the PR against main — Title it like <Month> <Year> Patches Merge-back. Summarize: bumped dependency versions, inserted PATCH_DATE CHANGELOG entries, and auto-generated pom.xml updates (READMEs intentionally left unchanged via --skip-readme).

Examples

  • "Prepare the merge-back PR for release/patch/20260701 into main."
  • "Bring the July 2026 patch releases back into main."

Troubleshooting

  • current-version mismatch after regeneration (e.g. 2.59.0-beta.1 vs 2.59.0-beta.2): you likely overwrote a current-version. Restore it from main; only dependency-version should change.
  • Unexpected pom.xml diffs: re-run update_versions.py only after version_client.txt is 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.