Repository navigation
Pin marketplace installs to the release tag - #8
Merged
Merged
Conversation
The marketplace entry now points at {"source": "github", "ref": "vX.Y.Z"}
instead of "./", so `copilot plugin update` only delivers published
releases, never unreleased work on main.
- validate.mjs requires the ref to equal v<plugin.json version>
- scripts/bump-version.mjs sets every version field and dates the changelog
- Validate CI also checks that release notes build, since a failed release
now blocks the update
- README and CONTRIBUTING describe the release-pinned update flow
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The version bump script accepts versions that can break publishing and modifies release files before validating marketplace data, leaving failed bumps partially applied.
2 open issues
What changed in this PR
Pins AgentCouncil marketplace installs to release tags instead of main, separating released versions from ongoing development.
Changes:
- Pins the marketplace source to
v2.0.0and validates that its ref matches the plugin version. - Adds a version-bump script and release-notes validation in CI.
- Documents release-pinned updates, direct-install behavior, and release precautions.
| File | Description |
|---|---|
scripts/validate.mjs |
Checks the marketplace source and release-tag alignment. |
scripts/bump-version.mjs |
Updates manifest versions, the pinned ref, and changelog headings. |
README.md |
Explains marketplace releases versus direct installs tracking main. |
CONTRIBUTING.md |
Documents the bump command and release-pinned workflow. |
CHANGELOG.md |
Records the release tooling and marketplace changes. |
.github/workflows/validate.yml |
Adds a release-notes check to CI. |
.github/workflows/release.yml |
Adds comments explaining release-tag pinning; behavior is unchanged. |
.github/plugin/marketplace.json |
Replaces the relative source with a GitHub source pinned to v2.0.0. |
Review effort: Balanced
- bump-version.mjs and validate.mjs use strict SemVer identifiers and reject a trailing ".lock", so v<version> is always a valid Git tag (2.1.0-rc..1, 2.1.0-rc. and 2.1.0-rc.lock were accepted before) - bump-version.mjs reads and checks marketplace.json and prepares every change before writing, so a rejected bump leaves all files untouched Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Marketplace users currently get whatever is on
mainwhen they runcopilot plugin update, because the marketplace entry uses"source": "./". That ships unreleased changes and makes the release workflow cosmetic. This PR pins installs to thevX.Y.Zrelease tag, so users only receive a new version once it has been published.Approach
.github/plugin/marketplace.jsonnow uses{"source": "github", "repo": "Sentry01/AgentCouncil", "ref": "v2.0.0"}. Thev2.0.0tag already exists, so merging this changes nothing for current users.scripts/validate.mjsfails unlesssource.refequalsv+ theplugin.jsonversion, so a bump cannot leave installs pointing at the old tag.scripts/bump-version.mjs X.Y.Z(orpatch/minor/major) updatesplugin.json, both version fields and the ref inmarketplace.json, and moves the Unreleased changelog notes under a dated heading. It refuses an empty Unreleased section.release-notes.mjs, so a missing or empty changelog section is caught in the PR. A failed release now blocks the update, so this needs to fail early.The release flow is unchanged otherwise: bump in a PR, merge, and the existing Release workflow tags the merge commit and publishes the release.
Things to know
copilot plugin updatefails with "Remote branch vX.Y.Z not found" and keeps the installed version. Fresh installs fail in that window too. I verified this with the CLI.2.1.0-rc.1merged tomainstill reaches every marketplace user. The docs say to test those locally withcopilot --plugin-dir .first.copilot plugin install Sentry01/AgentCouncilstill tracksmain. The README now says so.Validation
node scripts/validate.mjsandnode scripts/release-notes.mjspass.minorproduced a valid 2.1.0. An empty Unreleased section, the same version, a bad version and keyword bumps from a prerelease are all rejected.marketplace.json:v2.0.0tag tree exactly, notmain.