- Notifications
You must be signed in to change notification settings - Fork3.1k
Migrate PR #1515 review threads refactoring to go-sdk#1521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Draft
Copilot wants to merge2 commits intotonytrg/add-review-threadsChoose a base branch fromcopilot/fix-merge-conflicts-get-review-comments
base:tonytrg/add-review-threads
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Draft
Changes fromall commits
Commits
Show all changes
2 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| 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@v6 | ||
| - name: Run AI assessment | ||
| uses: github/ai-assessment-comment-labeler@e3bedc38cfffa9179fe4cee8f7ecc93bffb3fee7 # v1.0.1 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| ai_review_label: 'bug, enhancement' | ||
| 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|default,default-issue-review.prompt.yml' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -14,7 +14,7 @@ jobs: | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v6 | ||
| - name: Setup Go | ||
| uses: actions/setup-go@v6 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.