Awesome Copilot collection (#360)

* Adding a collection for the meta prompts to help discover items in the awesome copilot repo

* Forgot to run validation locally

* YAML schema validation set and updating readme
This commit is contained in:
Aaron Powell
2025-10-29 11:56:47 +11:00
committed by GitHub
parent 704a299571
commit 22cf265019
9 changed files with 136 additions and 7 deletions

View File

@@ -3,6 +3,7 @@
const fs = require("fs");
const path = require("path");
const readline = require("readline");
const { COLLECTIONS_DIR } = require("./constants");
const rl = readline.createInterface({
input: process.stdin,
@@ -75,9 +76,8 @@ async function createCollectionTemplate() {
process.exit(1);
}
const collectionsDir = path.join(__dirname, "collections");
const filePath = path.join(
collectionsDir,
COLLECTIONS_DIR,
`${collectionId}.collection.yml`
);
@@ -91,8 +91,8 @@ async function createCollectionTemplate() {
}
// Ensure collections directory exists
if (!fs.existsSync(collectionsDir)) {
fs.mkdirSync(collectionsDir, { recursive: true });
if (!fs.existsSync(COLLECTIONS_DIR)) {
fs.mkdirSync(COLLECTIONS_DIR, { recursive: true });
}
// Get collection name