Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
cat > analysis_prompt.txt << 'EOF'
You are an expert at analyzing GitHub discussions to identify potential bug reports and categorize discussions.

Please analyze the following GitHub discussions from the Models category and classify each one into one of these categories:
Please analyze the following GitHub discussions from the Copilot News and Announcements category and classify each one into one of these categories:
- BUG_REPORT: Issues, problems, errors, crashes, things not working as expected
- FEATURE_REQUEST: Requests for new features, enhancements, improvements
- QUESTION: How-to questions, help requests, clarifications, documentation questions
Expand Down Expand Up @@ -304,7 +304,7 @@ jobs:
// Create issue body
const issueBody = `## Auto-detected Bug Report

This issue was automatically created based on AI analysis of a GitHub discussion in the Models category.
This issue was automatically created based on AI analysis of a GitHub discussion in the Copilot News and Announcements category.

**Original Discussion:** ${originalDiscussion ? originalDiscussion.url : 'URL not found'}
**AI Confidence:** ${bugReport.confidence}%
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 🐛 models-discussion-watcher

This GitHub Action monitors the public [GitHub Models Community Discussions](https://github.com/orgs/community/discussions/categories/models) and uses **GitHub Models AI** to detect posts that may contain bug reports. If a potential bug is found, the Action automatically opens a GitHub Issue for the team to triage.
This GitHub Action monitors the public [GitHub Copilot News and Announcements Discussions](https://github.com/orgs/community/discussions/categories/copilot-news-and-announcements) and uses **GitHub Models AI** to detect posts that may contain bug reports. If a potential bug is found, the Action automatically opens a GitHub Issue for the team to triage.

---

## 🔍 What it does

* Scrapes the **Models** category in GitHub Discussions
* Scrapes the **Copilot News and Announcements** category in GitHub Discussions
* Uses `openai/gpt-4o` via [GitHub Models](https://docs.github.com/en/rest/models?apiVersion=2022-11-28) to classify each post as:

* `BUG_REPORT`
Expand Down
2 changes: 1 addition & 1 deletion scripts/fetch-discussions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const fs = require('fs');

try {
console.log('Navigating to GitHub discussions...');
await page.goto('https://github.com/orgs/community/discussions/categories/models', {
await page.goto('https://github.com/orgs/community/discussions/categories/copilot-news-and-announcements', {
waitUntil: 'networkidle',
timeout: 30000
});
Expand Down