Skip to content

Commit 27f487f

Browse files
patnikoCopilot
andauthored
Remove PR creation from cross-repo issue analysis workflow (#780)
Simplify the workflow to only open linked issues in copilot-agent-runtime instead of also creating draft PRs with suggested fixes. This reduces scope and avoids potentially noisy automated PRs. Changes: - Remove pull-requests permission - Remove edit tool and create-pull-request safe-output - Remove PR creation instructions from the prompt - Update guidelines to reflect issue-only workflow Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9a0a1a5 commit 27f487f

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/cross-repo-issue-analysis.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: Analyzes copilot-sdk issues to determine if a fix is needed in copilot-agent-runtime, then opens a linked issue and suggested-fix PR there
2+
description: Analyzes copilot-sdk issues to determine if a fix is needed in copilot-agent-runtime, then opens a linked issue there
33
on:
44
issues:
55
types: [labeled]
@@ -13,15 +13,13 @@ if: "github.event_name == 'workflow_dispatch' || github.event.label.name == 'run
1313
permissions:
1414
contents: read
1515
issues: read
16-
pull-requests: read
1716
steps:
1817
- name: Clone copilot-agent-runtime
1918
run: git clone --depth 1 https://x-access-token:${{ secrets.RUNTIME_TRIAGE_TOKEN }}@github.com/github/copilot-agent-runtime.git ${{ github.workspace }}/copilot-agent-runtime
2019
tools:
2120
github:
2221
toolsets: [default]
2322
github-token: ${{ secrets.RUNTIME_TRIAGE_TOKEN }}
24-
edit:
2523
bash:
2624
- "grep:*"
2725
- "find:*"
@@ -42,12 +40,6 @@ safe-outputs:
4240
labels: [upstream-from-sdk, ai-triaged]
4341
target-repo: "github/copilot-agent-runtime"
4442
max: 1
45-
create-pull-request:
46-
title-prefix: "[copilot-sdk] "
47-
labels: [upstream-from-sdk, ai-suggested-fix]
48-
draft: true
49-
target-repo: "github/copilot-agent-runtime"
50-
5143
timeout-minutes: 20
5244
---
5345

@@ -106,18 +98,13 @@ Classify the issue into one of these categories:
10698
- References the original SDK issue (e.g., `github/copilot-sdk#123`)
10799
- Includes the specific files and code paths involved
108100
- Suggests a fix approach
109-
- Create a draft PR in `github/copilot-agent-runtime` with a suggested fix:
110-
- Make the minimal, targeted code changes needed
111-
- Include a clear PR description linking back to both issues
112-
- If you're uncertain about the fix, still create the PR as a starting point for discussion
113101

114102
3. **Needs-investigation**: You cannot confidently determine the root cause. Label the issue `needs-investigation`.
115103

116104
## Guidelines
117105

118106
1. **Be thorough but focused**: Read enough code to be confident in your analysis, but don't read every file in both repos
119107
2. **Err on the side of creating the runtime issue**: If there's a reasonable chance the fix is in the runtime, create the issue. False positives are better than missed upstream bugs.
120-
3. **Make actionable PRs**: Even if the fix isn't perfect, a draft PR with a concrete starting point is more useful than just an issue description
121-
4. **Link everything**: Always cross-reference between the SDK issue, runtime issue, and runtime PR so maintainers can follow the trail
122-
5. **Be specific**: When describing the root cause, point to specific files, functions, and line numbers in both repos
123-
6. **Don't duplicate**: Before creating a runtime issue, search existing open issues in `github/copilot-agent-runtime` to avoid duplicates. If a related issue exists, reference it instead of creating a new one.
108+
3. **Link everything**: Always cross-reference between the SDK issue and runtime issue so maintainers can follow the trail
109+
4. **Be specific**: When describing the root cause, point to specific files, functions, and line numbers in both repos
110+
5. **Don't duplicate**: Before creating a runtime issue, search existing open issues in `github/copilot-agent-runtime` to avoid duplicates. If a related issue exists, reference it instead of creating a new one.

0 commit comments

Comments
 (0)