Skip to content

Commit 29da520

Browse files
authored
Merge pull request #6520 from github/aaronpowell-canvas-icons
Add icons for repository review canvases
2 parents 39f8a7b + d9339d7 commit 29da520

9 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/extensions/duplicate-review-board/extension.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ session = await joinSession({
108108
canvases: [createCanvas({
109109
id: "duplicate-review-board",
110110
displayName: "Duplicate Review Board",
111+
icon: path.join(path.dirname(fileURLToPath(import.meta.url)), "icon.png"),
111112
description: "Triage duplicate-resource reports locally, compare groups in background agents, and preview confirmed acceptance or consolidation actions.",
112113
inputSchema: object(),
113114
actions: [
8.78 KB
Loading

‎.github/extensions/external-plugin-review-board/extension.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ session = await joinSession({
355355
createCanvas({
356356
id: CANVAS_ID,
357357
displayName: "External Plugin Review Board",
358+
icon: path.join(EXT_DIR, "icon.png"),
358359
description:
359360
"Kanban board for triaging github/awesome-copilot external plugin submissions: AI review, drag between buckets, view issues, and approve/reject.",
360361
inputSchema: { type: "object", additionalProperties: false, properties: {} },
10.6 KB
Loading

‎.github/extensions/open-pr-board/extension.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ session = await joinSession({
296296
createCanvas({
297297
id: CANVAS_ID,
298298
displayName: "Open PR Board",
299+
icon: path.join(EXT_DIR, "icon.png"),
299300
description:
300301
"Review board for open pull requests: AI reviews with persistent state tracking, visible labels and checks, and confirmed GitHub review, close, and auto-merge actions.",
301302
inputSchema: { type: "object", additionalProperties: false, properties: { repo: repoProperty } },
11.1 KB
Loading

‎.github/extensions/resource-staleness-board/extension.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ session = await joinSession({
234234
canvases: [createCanvas({
235235
id: ID,
236236
displayName: "Resource Staleness Board",
237+
icon: path.join(extensionDir, "icon.png"),
237238
description: "Review local resource age, propose evidence-based refreshes or removals, and prepare changes in reusable child sessions.",
238239
inputSchema: { type: "object", additionalProperties: false, properties: {} },
239240
actions: Object.entries(schemas).map(([name, schema]) => ({
12.5 KB
Loading

‎.github/scripts/canvas/canvas-error-handoff.test.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function fixture(t, { send = async () => {}, policy = "script-src 'self'",
4545
}));
4646
const origin = `http://127.0.0.1:${server.address().port}`;
4747
runtime.createCanvas({
48-
id: "board", displayName: "Board", actions: [{ name: "retry", handler() {} }],
48+
id: "board", displayName: "Board", icon: "/tmp/board-icon.png", actions: [{ name: "retry", handler() {} }],
4949
open: async () => ({ title: "Board", url: `http://${hostname}:${server.address().port}/?token=original-secret` }),
5050
onClose: async () => {},
5151
});
@@ -86,6 +86,7 @@ test("registered documents gain opt-in UI without changing recovery, API, SSE or
8686
assert.equal((await fetch(`${f.origin}/api/fail`)).status, 400);
8787
assert.equal(new URL(f.open.url).searchParams.get("token"), "original-secret");
8888
assert.ok(f.options.actions.some(item => item.name === "retry"));
89+
assert.equal(f.options.icon, "/tmp/board-icon.png");
8990
});
9091

9192
test("streamed canvas HTML is enhanced and nonce/inline-only CSPs remain intact", async t => {

0 commit comments

Comments
 (0)