From cc60c3c70e7a6c65ab69e3c851c94a9e2be238f1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 28 Nov 2025 08:56:48 +0000 Subject: [PATCH 1/6] Initial plan From 9ec4c813cabe60883dc9d843318fa787571bee17 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 28 Nov 2025 09:03:57 +0000 Subject: [PATCH 2/6] Add AI issue assessment workflow with github/ai-assessment-comment-labeler Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com> --- .github/prompts/bug-report-review.prompt.yml | 32 ++++++++++++++++++++ .github/workflows/ai-issue-assessment.yml | 28 +++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .github/prompts/bug-report-review.prompt.yml create mode 100644 .github/workflows/ai-issue-assessment.yml diff --git a/.github/prompts/bug-report-review.prompt.yml b/.github/prompts/bug-report-review.prompt.yml new file mode 100644 index 000000000..23c4bf70d --- /dev/null +++ b/.github/prompts/bug-report-review.prompt.yml @@ -0,0 +1,32 @@ +messages: + - role: system + content: | + You are a triage assistant for the GitHub MCP Server repository. This is a Model Context Protocol (MCP) server that connects AI tools to GitHub's platform, enabling AI agents to manage repositories, issues, pull requests, workflows, and more. + + Your job is to analyze bug reports and assess their completeness. + + Analyze the issue for these key elements: + 1. Clear description of the problem + 2. Affected version (from running `docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version`) + 3. Steps to reproduce the behavior + 4. Expected vs actual behavior + 5. Relevant logs (if applicable) + + Provide ONE of these assessments: + + ### AI Assessment: Ready for Review + Use when the bug report has most required information and can be triaged by a maintainer. + + ### AI Assessment: Missing Details + Use when critical information is missing (no reproduction steps, no version info, unclear problem description). + + ### AI Assessment: Unsure + Use when you cannot determine the completeness of the report. + + After your assessment header, provide a brief explanation of your rating. + If details are missing, note which specific sections need more information. + - role: user + content: "{{input}}" +model: openai/gpt-4o-mini +modelParameters: + max_tokens: 500 diff --git a/.github/workflows/ai-issue-assessment.yml b/.github/workflows/ai-issue-assessment.yml new file mode 100644 index 000000000..5ce59d3c2 --- /dev/null +++ b/.github/workflows/ai-issue-assessment.yml @@ -0,0 +1,28 @@ +name: AI Issue Assessment + +on: + issues: + types: [labeled] + +jobs: + ai-issue-assessment: + if: github.event.label.name == 'triage-pending' + runs-on: ubuntu-latest + permissions: + issues: write + models: read + contents: read + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run AI assessment + uses: github/ai-assessment-comment-labeler@e3bedc38cfffa9179fe4cee8f7ecc93bffb3fee7 # v1.0.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + issue_number: ${{ github.event.issue.number }} + issue_body: ${{ github.event.issue.body }} + ai_review_label: 'triage-pending' + prompts_directory: '.github/prompts' + labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml' From 705ca0887a17d8a1440a0e1755be8ce21b9140ef Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 28 Nov 2025 09:12:50 +0000 Subject: [PATCH 3/6] Remove AI issue assessment workflow and prompt file per review feedback Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com> --- .github/prompts/bug-report-review.prompt.yml | 32 -------------------- .github/workflows/ai-issue-assessment.yml | 28 ----------------- 2 files changed, 60 deletions(-) delete mode 100644 .github/prompts/bug-report-review.prompt.yml delete mode 100644 .github/workflows/ai-issue-assessment.yml diff --git a/.github/prompts/bug-report-review.prompt.yml b/.github/prompts/bug-report-review.prompt.yml deleted file mode 100644 index 23c4bf70d..000000000 --- a/.github/prompts/bug-report-review.prompt.yml +++ /dev/null @@ -1,32 +0,0 @@ -messages: - - role: system - content: | - You are a triage assistant for the GitHub MCP Server repository. This is a Model Context Protocol (MCP) server that connects AI tools to GitHub's platform, enabling AI agents to manage repositories, issues, pull requests, workflows, and more. - - Your job is to analyze bug reports and assess their completeness. - - Analyze the issue for these key elements: - 1. Clear description of the problem - 2. Affected version (from running `docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version`) - 3. Steps to reproduce the behavior - 4. Expected vs actual behavior - 5. Relevant logs (if applicable) - - Provide ONE of these assessments: - - ### AI Assessment: Ready for Review - Use when the bug report has most required information and can be triaged by a maintainer. - - ### AI Assessment: Missing Details - Use when critical information is missing (no reproduction steps, no version info, unclear problem description). - - ### AI Assessment: Unsure - Use when you cannot determine the completeness of the report. - - After your assessment header, provide a brief explanation of your rating. - If details are missing, note which specific sections need more information. - - role: user - content: "{{input}}" -model: openai/gpt-4o-mini -modelParameters: - max_tokens: 500 diff --git a/.github/workflows/ai-issue-assessment.yml b/.github/workflows/ai-issue-assessment.yml deleted file mode 100644 index 5ce59d3c2..000000000 --- a/.github/workflows/ai-issue-assessment.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: AI Issue Assessment - -on: - issues: - types: [labeled] - -jobs: - ai-issue-assessment: - if: github.event.label.name == 'triage-pending' - runs-on: ubuntu-latest - permissions: - issues: write - models: read - contents: read - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Run AI assessment - uses: github/ai-assessment-comment-labeler@e3bedc38cfffa9179fe4cee8f7ecc93bffb3fee7 # v1.0.1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - issue_number: ${{ github.event.issue.number }} - issue_body: ${{ github.event.issue.body }} - ai_review_label: 'triage-pending' - prompts_directory: '.github/prompts' - labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml' From 0bfc61930db7cb662d497a5c290537596b83c7f5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 28 Nov 2025 09:17:00 +0000 Subject: [PATCH 4/6] Restore workflow and prompt, run on bug label or unlabeled issues Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com> --- .github/prompts/bug-report-review.prompt.yml | 32 ++++++++++++++++++++ .github/workflows/ai-issue-assessment.yml | 29 ++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 .github/prompts/bug-report-review.prompt.yml create mode 100644 .github/workflows/ai-issue-assessment.yml diff --git a/.github/prompts/bug-report-review.prompt.yml b/.github/prompts/bug-report-review.prompt.yml new file mode 100644 index 000000000..23c4bf70d --- /dev/null +++ b/.github/prompts/bug-report-review.prompt.yml @@ -0,0 +1,32 @@ +messages: + - role: system + content: | + You are a triage assistant for the GitHub MCP Server repository. This is a Model Context Protocol (MCP) server that connects AI tools to GitHub's platform, enabling AI agents to manage repositories, issues, pull requests, workflows, and more. + + Your job is to analyze bug reports and assess their completeness. + + Analyze the issue for these key elements: + 1. Clear description of the problem + 2. Affected version (from running `docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version`) + 3. Steps to reproduce the behavior + 4. Expected vs actual behavior + 5. Relevant logs (if applicable) + + Provide ONE of these assessments: + + ### AI Assessment: Ready for Review + Use when the bug report has most required information and can be triaged by a maintainer. + + ### AI Assessment: Missing Details + Use when critical information is missing (no reproduction steps, no version info, unclear problem description). + + ### AI Assessment: Unsure + Use when you cannot determine the completeness of the report. + + After your assessment header, provide a brief explanation of your rating. + If details are missing, note which specific sections need more information. + - role: user + content: "{{input}}" +model: openai/gpt-4o-mini +modelParameters: + max_tokens: 500 diff --git a/.github/workflows/ai-issue-assessment.yml b/.github/workflows/ai-issue-assessment.yml new file mode 100644 index 000000000..844c090a7 --- /dev/null +++ b/.github/workflows/ai-issue-assessment.yml @@ -0,0 +1,29 @@ +name: AI Issue Assessment + +on: + issues: + types: [opened, labeled] + +jobs: + ai-issue-assessment: + if: > + (github.event.action == 'opened' && github.event.issue.labels[0] == null) || + (github.event.action == 'labeled' && github.event.label.name == 'bug') + runs-on: ubuntu-latest + permissions: + issues: write + models: read + contents: read + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run AI assessment + uses: github/ai-assessment-comment-labeler@e3bedc38cfffa9179fe4cee8f7ecc93bffb3fee7 # v1.0.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + issue_number: ${{ github.event.issue.number }} + issue_body: ${{ github.event.issue.body }} + prompts_directory: '.github/prompts' + labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml' From f68072e4e8970248f28ab37dbed5773ca1969db7 Mon Sep 17 00:00:00 2001 From: JoannaaKL Date: Fri, 28 Nov 2025 10:27:47 +0100 Subject: [PATCH 5/6] Update .github/workflows/ai-issue-assessment.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/ai-issue-assessment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ai-issue-assessment.yml b/.github/workflows/ai-issue-assessment.yml index 844c090a7..c0eb2dff3 100644 --- a/.github/workflows/ai-issue-assessment.yml +++ b/.github/workflows/ai-issue-assessment.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Run AI assessment uses: github/ai-assessment-comment-labeler@e3bedc38cfffa9179fe4cee8f7ecc93bffb3fee7 # v1.0.1 From 5e1b41c7659207089fc0b6b3b3a6be7f4ee8daf7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 28 Nov 2025 09:31:37 +0000 Subject: [PATCH 6/6] Add default-issue-review.prompt.yml for unlabeled issues Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com> --- .../prompts/default-issue-review.prompt.yml | 31 +++++++++++++++++++ .github/workflows/ai-issue-assessment.yml | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/prompts/default-issue-review.prompt.yml diff --git a/.github/prompts/default-issue-review.prompt.yml b/.github/prompts/default-issue-review.prompt.yml new file mode 100644 index 000000000..6b4cd4a2b --- /dev/null +++ b/.github/prompts/default-issue-review.prompt.yml @@ -0,0 +1,31 @@ +messages: + - role: system + content: | + You are a triage assistant for the GitHub MCP Server repository. This is a Model Context Protocol (MCP) server that connects AI tools to GitHub's platform, enabling AI agents to manage repositories, issues, pull requests, workflows, and more. + + Your job is to analyze new issues and help categorize them. + + Analyze the issue to determine: + 1. Is this a bug report, feature request, question, or something else? + 2. Is the issue clear and well-described? + 3. Does it contain enough information for maintainers to act on? + + Provide ONE of these assessments: + + ### AI Assessment: Ready for Review + Use when the issue is clear, well-described, and contains enough context for maintainers to understand and act on it. + + ### AI Assessment: Missing Details + Use when the issue is unclear, lacks context, or needs more information to be actionable. + + ### AI Assessment: Unsure + Use when you cannot determine the nature or completeness of the issue. + + After your assessment header, provide a brief explanation including: + - What type of issue this appears to be (bug, feature request, question, etc.) + - What additional information might be helpful if any + - role: user + content: "{{input}}" +model: openai/gpt-4o-mini +modelParameters: + max_tokens: 500 diff --git a/.github/workflows/ai-issue-assessment.yml b/.github/workflows/ai-issue-assessment.yml index c0eb2dff3..8e813e81d 100644 --- a/.github/workflows/ai-issue-assessment.yml +++ b/.github/workflows/ai-issue-assessment.yml @@ -26,4 +26,4 @@ jobs: issue_number: ${{ github.event.issue.number }} issue_body: ${{ github.event.issue.body }} prompts_directory: '.github/prompts' - labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml' + labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml|default,default-issue-review.prompt.yml'