Skip to content

Commit 7c25cd2

Browse files
committed
Fixing line endings and removing dead code
1 parent 3743b97 commit 7c25cd2

File tree

3 files changed

+24
-96
lines changed

3 files changed

+24
-96
lines changed

prompts/my-issues.prompt.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
---
2-
mode: 'agent'
3-
tools: ['githubRepo', 'github', 'get_issue', 'get_issue_comments', 'get_me', 'list_issues']
4-
description: 'List my issues in the current repository'
5-
---
6-
7-
Search the current repo (using #githubRepo for the repo info) and list any issues you find (using #list_issues) that are assigned to me.
8-
9-
Suggest issues that I might want to focus on based on their age, the amount of comments, and their status (open/closed).
1+
---
2+
mode: 'agent'
3+
tools: ['githubRepo', 'github', 'get_issue', 'get_issue_comments', 'get_me', 'list_issues']
4+
description: 'List my issues in the current repository'
5+
---
6+
7+
Search the current repo (using #githubRepo for the repo info) and list any issues you find (using #list_issues) that are assigned to me.
8+
9+
Suggest issues that I might want to focus on based on their age, the amount of comments, and their status (open/closed).

prompts/my-pull-requests.prompt.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
---
2-
mode: 'agent'
3-
tools: ['githubRepo', 'github', 'get_me', 'get_pull_request', 'get_pull_request_comments', 'get_pull_request_diff', 'get_pull_request_files', 'get_pull_request_reviews', 'get_pull_request_status', 'list_pull_requests', 'request_copilot_review']
4-
description: 'List my pull requests in the current repository'
5-
---
6-
7-
Search the current repo (using #githubRepo for the repo info) and list any pull requests you find (using #list_pull_requests) that are assigned to me.
8-
9-
Describe the purpose and details of each pull request.
10-
11-
If a PR is waiting for someone to review, highlight that in the response.
12-
13-
If there were any check failures on the PR, describe them and suggest possible fixes.
14-
15-
If there was no review done by Copilot, offer to request one using #request_copilot_review.
1+
---
2+
mode: 'agent'
3+
tools: ['githubRepo', 'github', 'get_me', 'get_pull_request', 'get_pull_request_comments', 'get_pull_request_diff', 'get_pull_request_files', 'get_pull_request_reviews', 'get_pull_request_status', 'list_pull_requests', 'request_copilot_review']
4+
description: 'List my pull requests in the current repository'
5+
---
6+
7+
Search the current repo (using #githubRepo for the repo info) and list any pull requests you find (using #list_pull_requests) that are assigned to me.
8+
9+
Describe the purpose and details of each pull request.
10+
11+
If a PR is waiting for someone to review, highlight that in the response.
12+
13+
If there were any check failures on the PR, describe them and suggest possible fixes.
14+
15+
If there was no review done by Copilot, offer to request one using #request_copilot_review.

update-readme.js

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -353,78 +353,6 @@ function generateChatModesSection(chatmodesDir) {
353353
}
354354

355355
return `${TEMPLATES.chatmodesSection}\n\n${chatmodesContent}\n${TEMPLATES.chatmodesUsage}`;
356-
357-
if (chatmodesSection) {
358-
let chatmodesListContent = "\n\n";
359-
360-
// Always regenerate the entire list to ensure descriptions are included
361-
for (const file of chatmodeFiles.sort()) {
362-
const filePath = path.join(chatmodesDir, file);
363-
const title = extractTitle(filePath);
364-
const link = encodeURI(`chatmodes/${file}`);
365-
366-
// Check if there's a description in the frontmatter
367-
const customDescription = extractDescription(filePath);
368-
369-
if (customDescription && customDescription !== "null") {
370-
// Use the description from frontmatter
371-
chatmodesListContent += `- [${title}](${link}) - ${customDescription}\n`;
372-
} else {
373-
// Just add a link without description
374-
chatmodesListContent += `- [${title}](${link})\n`;
375-
}
376-
}
377-
378-
// Replace the current chat modes section with the updated one
379-
const newChatmodesSection =
380-
"## 🧩 Custom Chat Modes\n\nCustom chat modes define specific behaviors and tools for GitHub Copilot Chat, enabling enhanced context-aware assistance for particular tasks or workflows." +
381-
chatmodesListContent +
382-
"\n> 💡 **Usage**: Create new chat modes using the command `Chat: Configure Chat Modes...`, then switch your chat mode in the Chat input from _Agent_ or _Ask_ to your own mode.";
383-
384-
return currentReadme.replace(chatmodesSection[0], newChatmodesSection);
385-
} else {
386-
// Chat modes section doesn't exist yet but we have chat mode files
387-
console.log(
388-
"Creating new chat modes section with all available chat modes."
389-
);
390-
391-
const chatmodesListContent = chatmodeFiles
392-
.sort()
393-
.map((file) => {
394-
const filePath = path.join(chatmodesDir, file);
395-
const title = extractTitle(filePath);
396-
const link = `chatmodes/${file}`;
397-
const customDescription = extractDescription(filePath);
398-
399-
if (customDescription) {
400-
return `- [${title}](${link}) - ${customDescription}`;
401-
} else {
402-
return `- [${title}](${link})`;
403-
}
404-
})
405-
.join("\n");
406-
407-
const newChatmodesSection =
408-
"## 🧩 Custom Chat Modes\n\n" +
409-
"Custom chat modes define specific behaviors and tools for GitHub Copilot Chat, enabling enhanced context-aware assistance for particular tasks or workflows.\n\n" +
410-
chatmodesListContent +
411-
"\n\n> 💡 **Usage**: Create new chat modes using the command `Chat: Configure Chat Modes...`, then switch your chat mode in the Chat input from _Agent_ or _Ask_ to your own mode.\n";
412-
413-
// Insert before Additional Resources section
414-
const additionalResourcesPos = currentReadme.indexOf(
415-
"## 📚 Additional Resources"
416-
);
417-
if (additionalResourcesPos !== -1) {
418-
return (
419-
currentReadme.slice(0, additionalResourcesPos) +
420-
newChatmodesSection +
421-
"\n" +
422-
currentReadme.slice(additionalResourcesPos)
423-
);
424-
}
425-
426-
return currentReadme;
427-
}
428356
}
429357

430358
/**

0 commit comments

Comments
 (0)