You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cb97024
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/prompts/agentic-merge-upstream.prompt.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ All scripts write/read a `.merge-env` file (git-ignored) to share state (branch
35
35
5. Run `./.github/scripts/format-and-test.sh` frequently while porting
36
36
6. Update documentation
37
37
7. Run `./.github/scripts/merge-upstream-finish.sh` (final test + push)
38
-
8.Create Pull Request
38
+
8.Finalize Pull Request (see note below about coding agent vs. manual workflow)
39
39
40
40
---
41
41
@@ -316,7 +316,7 @@ Ensure consistency across all documentation files:
316
316
- Code examples should use the same patterns and be tested
317
317
- Links to Javadoc should use correct paths (`apidocs/...`)
318
318
319
-
## Steps 11-12: Finish, Push, and Create Pull Request
319
+
## Steps 11-12: Finish, Push, and Finalize Pull Request
320
320
321
321
Run the finish script which updates `.lastmerge`, runs a final build, and pushes the branch:
322
322
@@ -325,11 +325,17 @@ Run the finish script which updates `.lastmerge`, runs a final build, and pushes
325
325
./.github/scripts/merge-upstream-finish.sh --skip-tests # if tests already passed
326
326
```
327
327
328
-
**After pushing, create the Pull Request using the GitHub MCP tool (`mcp_github_create_pull_request`).**
328
+
### PR Handling: Coding Agent vs. Manual Workflow
329
329
330
-
Use `owner: copilot-community-sdk`, `repo: copilot-sdk-java`, `head: $BRANCH_NAME`, `base: main`.
330
+
**If running as a Copilot coding agent** (triggered via GitHub issue assignment by the weekly sync workflow), a pull request has **already been created automatically** for you. Do NOT create a new one. Just push your commits to the current branch — the existing PR will be updated. Add the `upstream-sync` label to the existing PR:
331
331
332
-
**After creating the PR, add the `upstream-sync` label** using the `gh` CLI:
> **No-changes scenario (coding agent only):** If after analyzing the upstream diff there are no relevant changes to port to the Java SDK, close the auto-created pull request, then close the triggering issue as "not planned" with a comment explaining that no changes were applicable.
337
+
338
+
**If running manually** (e.g., from VS Code via the reusable prompt), create the Pull Request using the GitHub MCP tool (`mcp_github_create_pull_request`). Use `owner: copilot-community-sdk`, `repo: copilot-sdk-java`, `head: $BRANCH_NAME`, `base: main`. Then add the label:
"custom_instructions": "Follow the agentic-merge-upstream prompt at .github/prompts/agentic-merge-upstream.prompt.md to port upstream changes to the Java SDK. Use the utility scripts in .github/scripts/ for initialization, diffing, formatting, and testing. Commit changes incrementally. Update .lastmerge when done."
0 commit comments