From 72d5935fd91c1a7c622ed74e352cbe58e022f835 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:24:30 +0000 Subject: [PATCH 1/3] Initial plan From 7de3325c4c75cedb5188e3a9a2ec6c59556a334a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:31:43 +0000 Subject: [PATCH 2/3] Fix changeset script - remove duplicate tag creation The changeset.js script was trying to create a git tag that already exists, causing the GitHub Actions workflow to fail. The workflow's release job creates the tag first, then the changesets job calls changeset.js which tried to create the same tag again. Changes: - Removed tag creation (git tag -a) from changeset.js - Removed tag push (git push origin ) from changeset.js - Updated error recovery instructions to not mention tag operations - Added documentation clarifying the script expects tags to be pre-created The script now only updates CHANGELOG.md, deletes changeset files, commits changes, and pushes to main - no tag operations. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- scripts/changeset.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/scripts/changeset.js b/scripts/changeset.js index 6734d000438..4b9fec07b66 100755 --- a/scripts/changeset.js +++ b/scripts/changeset.js @@ -9,6 +9,10 @@ * * Example: * node changeset.js release v1.2.3 --yes + * + * Note: This script does NOT create or push git tags. Tags should be created by the caller + * (e.g., the GitHub Actions workflow) before running this script. This script only updates + * CHANGELOG.md, deletes changeset files, commits the changes, and pushes to the main branch. */ const fs = require("fs"); @@ -492,21 +496,13 @@ async function runRelease(versionTag, skipConfirmation = false) { console.log(formatInfoMessage("Committing changes...")); execSync(`git commit -m "Release ${versionString}"`, { encoding: "utf8" }); - // Create tag - console.log(formatInfoMessage("Creating tag...")); - execSync(`git tag -a ${versionString} -m "Release ${versionString}"`, { encoding: "utf8" }); - // Push commit to remote console.log(formatInfoMessage("Pushing commit...")); execSync("git push", { encoding: "utf8" }); - // Push tag - console.log(formatInfoMessage("Pushing tag...")); - execSync(`git push origin ${versionString}`, { encoding: "utf8" }); - console.log(""); console.log(formatSuccessMessage(`Successfully released ${versionString}`)); - console.log(formatSuccessMessage("Commit and tag pushed to remote")); + console.log(formatSuccessMessage("Commit pushed to remote")); } catch (error) { console.log(""); console.error(formatErrorMessage("Git operation failed: " + error.message)); @@ -518,9 +514,7 @@ async function runRelease(versionTag, skipConfirmation = false) { console.log(` git add CHANGELOG.md`); } console.log(` git commit -m "Release ${versionString}"`); - console.log(` git tag -a ${versionString} -m "Release ${versionString}"`); console.log(` git push`); - console.log(` git push origin ${versionString}`); process.exit(1); } } From cc494d8a5be0f09b7d5a6e207fdc9bfaff154234 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 22:31:17 +0000 Subject: [PATCH 3/3] Update changesets job to depend on agent job The changesets job now runs after the agent job completes, ensuring release highlights are generated before the CHANGELOG is updated. Before: agent -> depends on changesets After: changesets -> depends on agent This allows the agent to generate release highlights first, then the CHANGELOG can be updated with the full context. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/release.lock.yml | 4 ++-- .github/workflows/release.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.lock.yml b/.github/workflows/release.lock.yml index e2e41feb4ec..e92c16b34a5 100644 --- a/.github/workflows/release.lock.yml +++ b/.github/workflows/release.lock.yml @@ -21,7 +21,7 @@ # # Build, test, and release gh-aw extension, then generate and prepend release highlights # -# frontmatter-hash: c9708bda21d12a9562aa015ec98e9b1e13ed12edc2c85b192f054fa73d025c8b +# frontmatter-hash: 62a5857122b3a2ff00cac78bc5db9fd961177658cbee4eba8187769c0fd15b7b name: "Release" "on": @@ -78,7 +78,6 @@ jobs: agent: needs: - activation - - changesets - config - release runs-on: ubuntu-latest @@ -757,6 +756,7 @@ jobs: changesets: needs: - activation + - agent - config - release runs-on: ubuntu-latest diff --git a/.github/workflows/release.md b/.github/workflows/release.md index 2b1791c9f9f..8edfabfc42b 100644 --- a/.github/workflows/release.md +++ b/.github/workflows/release.md @@ -303,7 +303,7 @@ jobs: provenance: mode=max changesets: - needs: ["activation", "config", "release"] + needs: ["activation", "config", "release", "agent"] runs-on: ubuntu-latest permissions: contents: write