Skip to content

Commit 14cd2ba

Browse files
authored
Merge pull request #812 from github/website-update
Website: remove prompts, add workflows page, fix TypeScript config
2 parents a653f34 + 0f42a72 commit 14cd2ba

20 files changed

Lines changed: 258 additions & 220 deletions

docs/README.workflows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#adding-agentic-workflows) for guideline
3333

3434
| Name | Description | Triggers |
3535
| ---- | ----------- | -------- |
36-
| [Daily Issues Report](../workflows/daily-issues-report.md) | Generates a daily summary of open issues and recent activity as a GitHub issue | N/A |
36+
| [Daily Issues Report](../workflows/daily-issues-report.md) | Generates a daily summary of open issues and recent activity as a GitHub issue | schedule |

eng/generate-website-data.mjs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ function generateWorkflowsData(gitDates) {
204204
items: workflows,
205205
filters: {
206206
triggers: [],
207-
tags: [],
208207
},
209208
};
210209
}
@@ -214,7 +213,6 @@ function generateWorkflowsData(gitDates) {
214213
});
215214

216215
const allTriggers = new Set();
217-
const allTags = new Set();
218216

219217
for (const file of workflowFiles) {
220218
const filePath = path.join(WORKFLOWS_DIR, file);
@@ -226,15 +224,13 @@ function generateWorkflowsData(gitDates) {
226224
.replace(/\\/g, "/");
227225

228226
(metadata.triggers || []).forEach((t) => allTriggers.add(t));
229-
(metadata.tags || []).forEach((t) => allTags.add(t));
230227

231228
const id = path.basename(file, ".md");
232229
workflows.push({
233230
id,
234231
title: metadata.name,
235232
description: metadata.description,
236233
triggers: metadata.triggers || [],
237-
tags: metadata.tags || [],
238234
path: relativePath,
239235
lastUpdated: gitDates.get(relativePath) || null,
240236
});
@@ -248,7 +244,6 @@ function generateWorkflowsData(gitDates) {
248244
items: sortedWorkflows,
249245
filters: {
250246
triggers: Array.from(allTriggers).sort(),
251-
tags: Array.from(allTags).sort(),
252247
},
253248
};
254249
}
@@ -682,9 +677,7 @@ function generateSearchIndex(
682677
lastUpdated: workflow.lastUpdated,
683678
searchText: `${workflow.title} ${
684679
workflow.description
685-
} ${workflow.triggers.join(" ")} ${workflow.tags.join(
686-
" "
687-
)}`.toLowerCase(),
680+
} ${workflow.triggers.join(" ")}`.toLowerCase(),
688681
});
689682
}
690683

@@ -843,7 +836,7 @@ async function main() {
843836
const workflowsData = generateWorkflowsData(gitDates);
844837
const workflows = workflowsData.items;
845838
console.log(
846-
`✓ Generated ${workflows.length} workflows (${workflowsData.filters.triggers.length} triggers, ${workflowsData.filters.tags.length} tags)`
839+
`✓ Generated ${workflows.length} workflows (${workflowsData.filters.triggers.length} triggers)`
847840
);
848841

849842
const instructionsData = generateInstructionsData(gitDates);

eng/yaml-parser.mjs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,19 @@ function parseWorkflowMetadata(filePath) {
275275
return null;
276276
}
277277

278-
// Extract triggers from frontmatter if present
279-
const triggers = frontmatter.triggers || [];
278+
// Extract triggers from the 'on' field (top-level keys)
279+
const onField = frontmatter.on;
280+
const triggers = [];
281+
if (onField && typeof onField === "object") {
282+
triggers.push(...Object.keys(onField));
283+
} else if (typeof onField === "string") {
284+
triggers.push(onField);
285+
}
280286

281287
return {
282288
name: frontmatter.name,
283289
description: frontmatter.description,
284290
triggers,
285-
tags: frontmatter.tags || [],
286291
path: filePath,
287292
};
288293
},

website/src/env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="astro/client" />

website/src/layouts/BaseLayout.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface Props {
99
1010
const {
1111
title,
12-
description = "Community-driven collection of custom agents, prompts, and instructions for GitHub Copilot",
12+
description = "Community-driven collection of custom agents, instructions, and skills for GitHub Copilot",
1313
activeNav = "",
1414
} = Astro.props;
1515
const base = import.meta.env.BASE_URL;
@@ -57,10 +57,6 @@ try {
5757
href={`${base}agents/`}
5858
class:list={[{ active: activeNav === "agents" }]}>Agents</a
5959
>
60-
<a
61-
href={`${base}prompts/`}
62-
class:list={[{ active: activeNav === "prompts" }]}>Prompts</a
63-
>
6460
<a
6561
href={`${base}instructions/`}
6662
class:list={[{ active: activeNav === "instructions" }]}
@@ -74,6 +70,10 @@ try {
7470
href={`${base}hooks/`}
7571
class:list={[{ active: activeNav === "hooks" }]}>Hooks</a
7672
>
73+
<a
74+
href={`${base}workflows/`}
75+
class:list={[{ active: activeNav === "workflows" }]}>Workflows</a
76+
>
7777
<a
7878
href={`${base}plugins/`}
7979
class:list={[{ active: activeNav === "plugins" }]}

website/src/pages/index.astro

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const base = import.meta.env.BASE_URL;
1111
<section class="hero" aria-labelledby="hero-heading">
1212
<div class="container">
1313
<h1 id="hero-heading">Awesome GitHub Copilot</h1>
14-
<p class="hero-subtitle">Community-contributed instructions, prompts, agents, and skills to enhance your GitHub Copilot experience</p>
14+
<p class="hero-subtitle">Community-contributed agents, instructions, and skills to enhance your GitHub Copilot experience</p>
1515
<div class="hero-search">
1616
<label for="global-search" class="sr-only">Search all resources</label>
1717
<input type="text" id="global-search" placeholder="Search all resources..." autocomplete="off" role="combobox" aria-autocomplete="list" aria-expanded="false" aria-controls="search-results">
@@ -33,14 +33,6 @@ const base = import.meta.env.BASE_URL;
3333
</div>
3434
<div class="card-count" data-count="agents" aria-label="Agent count">-</div>
3535
</a>
36-
<a href={`${base}prompts/`} class="card card-with-count" id="card-prompts">
37-
<div class="card-icon" aria-hidden="true">🎯</div>
38-
<div class="card-content">
39-
<h3>Prompts</h3>
40-
<p>Ready-to-use prompt templates for development tasks</p>
41-
</div>
42-
<div class="card-count" data-count="prompts" aria-label="Prompt count">-</div>
43-
</a>
4436
<a href={`${base}instructions/`} class="card card-with-count" id="card-instructions">
4537
<div class="card-icon" aria-hidden="true">📋</div>
4638
<div class="card-content">
@@ -65,6 +57,14 @@ const base = import.meta.env.BASE_URL;
6557
</div>
6658
<div class="card-count" data-count="hooks" aria-label="Hook count">-</div>
6759
</a>
60+
<a href={`${base}workflows/`} class="card card-with-count" id="card-workflows">
61+
<div class="card-icon" aria-hidden="true">⚡</div>
62+
<div class="card-content">
63+
<h3>Workflows</h3>
64+
<p>AI-powered automations for GitHub Actions</p>
65+
</div>
66+
<div class="card-count" data-count="workflows" aria-label="Workflow count">-</div>
67+
</a>
6868
<a href={`${base}plugins/`} class="card card-with-count" id="card-plugins">
6969
<div class="card-icon" aria-hidden="true">🔌</div>
7070
<div class="card-content">
@@ -103,7 +103,7 @@ const base = import.meta.env.BASE_URL;
103103
<div class="step">
104104
<div class="step-number" aria-hidden="true">1</div>
105105
<h3>Browse</h3>
106-
<p>Explore agents, prompts, instructions, and skills</p>
106+
<p>Explore agents, instructions, skills, and plugins</p>
107107
</div>
108108
<div class="step">
109109
<div class="step-number" aria-hidden="true">2</div>

website/src/pages/llms.txt.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { APIRoute } from "astro";
22
import agentsData from "../../public/data/agents.json";
3-
import promptsData from "../../public/data/prompts.json";
43
import instructionsData from "../../public/data/instructions.json";
54
import skillsData from "../../public/data/skills.json";
65

@@ -9,7 +8,6 @@ const GITHUB_RAW_BASE = "https://raw.githubusercontent.com/github/awesome-copilo
98

109
export const GET: APIRoute = () => {
1110
const agents = agentsData.items;
12-
const prompts = promptsData.items;
1311
const instructions = instructionsData.items;
1412
const skills = skillsData.items;
1513

@@ -22,16 +20,14 @@ export const GET: APIRoute = () => {
2220

2321
// Summary blockquote (optional but recommended)
2422
content +=
25-
"> A community-driven collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot experiences across various domains, languages, and use cases.\n\n";
23+
"> A community-driven collection of custom agents, instructions, and skills to enhance GitHub Copilot experiences across various domains, languages, and use cases.\n\n";
2624

2725
// Add overview section
2826
content += "## Overview\n\n";
2927
content +=
3028
"This repository provides resources to customize and enhance GitHub Copilot:\n\n";
3129
content +=
3230
"- **Agents**: Specialized GitHub Copilot agents that integrate with MCP servers\n";
33-
content +=
34-
"- **Prompts**: Task-specific prompts for code generation and problem-solving\n";
3531
content +=
3632
"- **Instructions**: Coding standards and best practices applied to specific file patterns\n";
3733
content +=
@@ -47,16 +43,6 @@ export const GET: APIRoute = () => {
4743
}
4844
content += "\n";
4945

50-
// Process Prompts
51-
content += "## Prompts\n\n";
52-
for (const prompt of prompts) {
53-
const description = (prompt.description || "No description available")
54-
.replace(/\s+/g, " ")
55-
.trim();
56-
content += `- [${prompt.title}](${url(prompt.path)}): ${description}\n`;
57-
}
58-
content += "\n";
59-
6046
// Process Instructions
6147
content += "## Instructions\n\n";
6248
for (const instruction of instructions) {

website/src/pages/plugins.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import BaseLayout from '../layouts/BaseLayout.astro';
33
import Modal from '../components/Modal.astro';
44
---
55

6-
<BaseLayout title="Plugins" description="Curated plugins of prompts, agents, and skills for specific workflows" activeNav="plugins">
6+
<BaseLayout title="Plugins" description="Curated plugins of agents, hooks, and skills for specific workflows" activeNav="plugins">
77
<main id="main-content">
88
<div class="page-header">
99
<div class="container">
1010
<h1>🔌 Plugins</h1>
11-
<p>Curated plugins of prompts, agents, and skills for specific workflows</p>
11+
<p>Curated plugins of agents, hooks, and skills for specific workflows</p>
1212
</div>
1313
</div>
1414

@@ -18,7 +18,7 @@ import Modal from '../components/Modal.astro';
1818
<label for="search-input" class="sr-only">Search plugins</label>
1919
<input type="text" id="search-input" placeholder="Search plugins..." autocomplete="off">
2020
</div>
21-
21+
2222
<div class="filters-bar" id="filters-bar">
2323
<div class="filter-group">
2424
<label for="filter-tag">Tag:</label>
@@ -32,7 +32,7 @@ import Modal from '../components/Modal.astro';
3232
</div>
3333
<button id="clear-filters" class="btn btn-secondary btn-small">Clear Filters</button>
3434
</div>
35-
35+
3636
<div class="results-count" id="results-count" aria-live="polite"></div>
3737
<div class="resource-list" id="resource-list" role="list">
3838
<div class="loading" aria-live="polite">Loading plugins...</div>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@ import BaseLayout from '../layouts/BaseLayout.astro';
33
import Modal from '../components/Modal.astro';
44
---
55

6-
<BaseLayout title="Prompts" description="Ready-to-use prompt templates for development tasks with GitHub Copilot" activeNav="prompts">
6+
<BaseLayout title="Workflows" description="AI-powered repository automations that run coding agents in GitHub Actions" activeNav="workflows">
77
<main id="main-content">
88
<div class="page-header">
99
<div class="container">
10-
<h1>🎯 Prompts</h1>
11-
<p>Ready-to-use prompt templates for development tasks with GitHub Copilot</p>
10+
<h1>⚡ Agentic Workflows</h1>
11+
<p>AI-powered repository automations that run coding agents in GitHub Actions</p>
1212
</div>
1313
</div>
1414

1515
<div class="page-content">
1616
<div class="container">
1717
<div class="search-bar">
18-
<label for="search-input" class="sr-only">Search prompts</label>
19-
<input type="text" id="search-input" placeholder="Search prompts..." autocomplete="off">
18+
<label for="search-input" class="sr-only">Search workflows</label>
19+
<input type="text" id="search-input" placeholder="Search workflows..." autocomplete="off">
2020
</div>
2121

2222
<div class="filters-bar" id="filters-bar">
2323
<div class="filter-group">
24-
<label for="filter-tool">Tool:</label>
25-
<select id="filter-tool" multiple aria-label="Filter by tool"></select>
24+
<label for="filter-trigger">Trigger:</label>
25+
<select id="filter-trigger" multiple aria-label="Filter by trigger"></select>
2626
</div>
2727
<div class="filter-group">
2828
<label for="sort-select">Sort:</label>
@@ -36,7 +36,7 @@ import Modal from '../components/Modal.astro';
3636

3737
<div class="results-count" id="results-count" aria-live="polite"></div>
3838
<div class="resource-list" id="resource-list" role="list">
39-
<div class="loading" aria-live="polite">Loading prompts...</div>
39+
<div class="loading" aria-live="polite">Loading workflows...</div>
4040
</div>
4141
</div>
4242
</div>
@@ -45,6 +45,6 @@ import Modal from '../components/Modal.astro';
4545
<Modal />
4646

4747
<script>
48-
import '../scripts/pages/prompts';
48+
import '../scripts/pages/workflows';
4949
</script>
5050
</BaseLayout>

website/src/scripts/modal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export function setupInstallDropdown(containerId: string): void {
287287
/**
288288
* Open file viewer modal
289289
* @param filePath - Path to the file
290-
* @param type - Resource type (agent, prompt, instruction, etc.)
290+
* @param type - Resource type (agent, instruction, etc.)
291291
* @param updateUrl - Whether to update the URL hash (default: true)
292292
* @param trigger - The element that triggered the modal (for focus return)
293293
*/

0 commit comments

Comments
 (0)