Skip to content

Git Tag manager Canvas - #6421

Merged
aaronpowell merged 2 commits into
github:mainfrom
jamesmontemagno:agents/git-tag-manager-canvas-creation
Nov 16, 2026
Merged

aaronpowell merged 2 commits into
github:mainfrom
jamesmontemagno:agents/git-tag-manager-canvas-creation

Conversation

@jamesmontemagno

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the main branch for this pull request.

Description


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • New canvas extension.
  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

This pull request introduces a new Git Tag Manager plugin that allows users to create, push, view, and delete Git tags through an interactive canvas interface. Key changes include:

  • New Plugin Structure: Created a dedicated directory for the Git Tag Manager plugin, including all necessary files for functionality and documentation.
  • Canvas Features:
    • Browse and filter local and remote tags.
    • Create lightweight or annotated tags.
    • Push and delete tags with confirmation prompts.
    • Integration with GitHub Actions workflows for tag pushes.
  • Testing and Validation: Implemented integration tests to ensure functionality, including checks for tag creation, pushing, and deletion without affecting real repositories.
  • Documentation: Added README files for both the plugin and the extension, providing installation instructions and usage details.

This plugin aligns with existing canvas structures in the repository, ensuring consistency in user experience and sharing capabilities.

@jamesmontemagno
jamesmontemagno requested review from a team as code owners November 14, 2026 00:12
Copilot AI adaptive review requested due to automatic review settings November 14, 2026 00:12
@github-actions github-actions Bot added canvas-extension PR touches canvas extensions new-submission PR adds at least one new contribution plugin PR touches plugins awaiting-automation merge-risk:high labels Nov 14, 2026
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🚦 Submission status: 🛠️ Requires submitter fixes

Risk tier: merge-risk:high — Privileged execution, automation, or review-policy change
Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access, including a maintainer with admin or maintain permission.

Why this tier
  • Spawns processes or evaluates code in extensions/git-tag-manager/git.mjs
  • Label needs-review:HIGH flags a high contributor-risk signal

Automated checks

Check Status Details
Line endings ✅ Passed Passed · logs
Spelling ✅ Passed Passed · logs
Generated README consistency ✅ Passed Passed · logs
Plugin and extension validation ✅ Passed Passed · logs
Canvas extension validation ✅ Passed Passed · logs
Plugin structure ✅ Passed Passed · logs
Risk scan ✅ Passed Passed · logs
Contributor reputation ✅ Passed Passed · logs
Duplicate resource scan ⚠️ Failed (advisory, non-blocking) The workflow did not complete successfully · logs
PR quality signal ⏭️ Skipped Skipped by its workflow · logs
Canvas/plugin smoke test ❌ Contribution failure Failed step: Run canvas smoke test · logs

Action needed

  • Canvas/plugin smoke test failed. See the smoke-test job log for the failing plugin or extension.
  • ⚠️ Advisory checks did not complete (Duplicate resource scan). This does not block the PR.

Review

  • Approvals: 0/1
  • Assigned reviewer: not assigned yet — comment /request-review to ask for one
  • Review target date: not set
  • Still needed: 1 more approval(s); an approval from a maintainer with admin or maintain permission
  • The core-maintainers pool is not staffed yet; an approver with admin or maintain permission is required instead.

Commands

Command Who What it does
/rerun-checks PR author, maintainers Re-runs failed or incomplete checks and re-evaluates this gate
/request-review PR author, maintainers Asks the review rotation to assign a reviewer (adds needs-reviewer)

Updated for 863a2c0 · gate run · This comment is maintained automatically — see submission gate docs.

@github-actions

Copy link
Copy Markdown
Contributor

🔒 PR Risk Scan Results

Scanned 19 changed file(s).

Severity Count
🔴 High 0
🟠 Medium 0
ℹ️ Info 0

✅ No matching risk patterns were detected in changed files.

Skipped non-text or missing files
  • extensions/git-tag-manager/assets/preview.png

This is an automated soft-gate report. Findings indicate review targets and do not block merge by themselves.

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Contributor Reputation Check: HIGH risk

Check Risk
Profile HIGH
Credential audit NONE

Maintainers: please review this contributor before merging.
See the workflow run for full details.
Automated check powered by AGT.

@github-actions github-actions Bot added needs-review:HIGH Contributor reputation check flagged HIGH risk requires-submitter-fixes Submission has quality-gate findings that submitter must fix before maintainer review and removed awaiting-automation labels Nov 14, 2026
@jamesmontemagno jamesmontemagno changed the title Agent Host changes for agents/git-tag-manager-canvas-creation Git Tag manager Canvas Nov 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved critical security issues permit unauthorized tag mutations, destructive operations against a changed remote destination, and execution of repository-supplied Git binaries on Windows.

8 open issues
What changed in this PR

Adds a Git Tag Manager canvas and installable plugin to Awesome Copilot for browsing tags and previewing creation, push, and deletion operations before confirmation.

Changes:

  • Implements Git operations, confirmation plans, remote checks, and saved preferences.
  • Adds a themed canvas interface with filtering and operation previews.
  • Includes integration tests, usage documentation, and marketplace registration.
File Description
plugins/​git-tag-manager/​README.md Documents plugin installation and extension source.
plugins/​git-tag-manager/​plugin.json Registers the plugin and bundled extension.
extensions/​git-tag-manager/​test-fixture.mjs Creates disposable repositories for tests.
extensions/​git-tag-manager/​storage.mjs Validates and saves repository preferences.
extensions/​git-tag-manager/​server.test.mjs Tests HTTP access checks and confirmed operations.
extensions/​git-tag-manager/​server.mjs Serves the canvas and operation API over loopback HTTP.
extensions/​git-tag-manager/​schemas.mjs Defines inputs, validation, and error types.
extensions/​git-tag-manager/​README.md Documents usage, safeguards, storage, and validation.
extensions/​git-tag-manager/​public/​theme.js Selects the canvas color theme.
extensions/​git-tag-manager/​public/​styles.css Styles the responsive interface and confirmation dialog.
extensions/​git-tag-manager/​public/​index.html Defines tag browsing and confirmation controls.
extensions/​git-tag-manager/​public/​client.js Handles rendering, filtering, previews, and API requests.
extensions/​git-tag-manager/​manager.test.mjs Tests tag operations, preferences, and failure handling.
extensions/​git-tag-manager/​manager.mjs Coordinates previews and confirmed Git mutations.
extensions/​git-tag-manager/​git.mjs Wraps Git commands and remote destination checks.
extensions/​git-tag-manager/​extension.mjs Registers canvas actions and manages server lifecycle.
extensions/​git-tag-manager/​copilot-extension.json Declares extension identity and metadata format.
docs/​README.plugins.md Adds the plugin to the catalog.
.gitignore Excludes the local development extension alias.
.github/​plugin/​marketplace.json Adds the marketplace entry.

Review effort: Balanced (dynamic)


export async function git(repository, args) {
try {
const { stdout } = await exec("git", ["--no-pager", ...args], {
Comment on lines +91 to +93
...input, scope, id: randomUUID(), repository: this.repository, remote: this.remote,
targetOid, localOid: tag?.localOid ?? null, remoteOid: tag?.remoteOid ?? null,
remoteChange, expiresAt: Date.now() + 5 * 60 * 1000,
response.setHeader("Cache-Control", "no-store");
response.setHeader("X-Content-Type-Options", "nosniff");
response.setHeader("Referrer-Policy", "no-referrer");
response.setHeader("Content-Security-Policy", "default-src 'self'; script-src 'self'; style-src 'self'; connect-src 'self'; img-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors *");
throw new TagError("forbidden", "Cross-origin requests are not allowed.");
}
const route = request.url;
if (request.method === "GET" && files.has(route)) {
const repository = await resolveRepository(input.repository);
const prefs = await readPreferences(repository, directory);
const remotes = (await git(repository, ["remote"])).split("\n").filter(Boolean);
const remote = input.remote ?? prefs?.remote ?? (remotes.includes("origin") ? "origin" : remotes[0] ?? "");
Comment on lines +119 to +120
const args = ["tag"];
if (plan.message?.trim()) args.push("-a", "-m", plan.message);
: plan.operation === "push" ? "Publish only this tag to the selected remote. Existing remote tags will not be overwritten."
: `Delete this tag from ${plan.scope === "both" ? "both local and remote locations" : `the ${plan.scope} location`}. This does not delete the underlying commit.`;
$("plan-details").replaceChildren();
for (const [label, value] of [["Tag", plan.name], ["Repository", plan.repository], ["Remote", plan.remoteChange ? plan.remote : "No remote changes"], ["Commit", plan.targetOid || plan.localOid || plan.remoteOid]]) {
Comment on lines +45 to +51
const navigation = request.method === "GET" && request.url === "/" && request.headers["sec-fetch-mode"] === "navigate";
if (request.headers.host !== new URL(entry.url).host ||
(request.headers.origin && request.headers.origin !== entry.url) ||
(request.headers["sec-fetch-site"] === "cross-site" && !navigation)) {
throw new TagError("forbidden", "Cross-origin requests are not allowed.");
}
const route = request.url;
Copilot AI adaptive review requested due to automatic review settings November 14, 2026 00:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

windowsHide: true, encoding: "utf8",
env: { ...process.env, GIT_TERMINAL_PROMPT: "0", GCM_INTERACTIVE: "never" },
});
return stdout.trimEnd();
export async function pushTag(repository, remote, name, expectedRemoteOid, sourceOid) {
await checkPushDestination(repository, remote);
// Disable configured mirror/followTags so an explicit refspec affects exactly one tag.
const args = ["-c", "push.followTags=false", "-c", `remote.${remote}.mirror=false`, "push", "--porcelain"];
if ((tag?.localOid ?? null) !== plan.localOid || (tag?.remoteOid ?? null) !== plan.remoteOid) {
throw new TagError("tag_changed", "The tag changed since preview. Refresh and prepare again.");
}
if (plan.remoteChange) await checkPushDestination(this.repository, plan.remote);
for (const [label, value] of [["Tag", plan.name], ["Repository", plan.repository], ["Remote", plan.remoteChange ? plan.remote : "No remote changes"], ["Commit", plan.targetOid || plan.localOid || plan.remoteOid]]) {
$("plan-details").append(text("dt", label), text("dd", value));
}
$("confirm-name").textContent = plan.name;
@aaronpowell
aaronpowell merged commit 9cf68a6 into github:main Nov 16, 2026
25 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

canvas-extension PR touches canvas extensions merge-risk:high needs-review:HIGH Contributor reputation check flagged HIGH risk new-submission PR adds at least one new contribution plugin PR touches plugins requires-submitter-fixes Submission has quality-gate findings that submitter must fix before maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants