Skip to content

Commit b8a73cd

Browse files
committed
fix: update documentation to clarify issue assignment to Copilot agent
1 parent f1f1315 commit b8a73cd

1 file changed

Lines changed: 10 additions & 25 deletions

File tree

.github/workflows/weekly-upstream-sync.md

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This document describes the `weekly-upstream-sync.yml` GitHub Actions workflow,
4040

4141
## Overview
4242

43-
The workflow runs on a **weekly schedule** (every Monday at 10:00 UTC) and can also be triggered manually. It does **not** perform the actual merge — instead, it detects upstream changes and creates a GitHub issue assigned to `copilot`, which then follows the [agentic-merge-upstream](../prompts/agentic-merge-upstream.prompt.md) prompt to port the changes.
43+
The workflow runs on a **weekly schedule** (every Monday at 10:00 UTC) and can also be triggered manually. It does **not** perform the actual merge — instead, it detects upstream changes and creates a GitHub issue assigned to `copilot`, instructing the agent to follow the [agentic-merge-upstream](../prompts/agentic-merge-upstream.prompt.md) prompt to port the changes.
4444

4545
## Trigger
4646

@@ -49,20 +49,6 @@ The workflow runs on a **weekly schedule** (every Monday at 10:00 UTC) and can a
4949
| `schedule` | Every Monday at 10:00 UTC (`0 10 * * 1`) |
5050
| `workflow_dispatch` | Manual trigger from the Actions tab |
5151

52-
## Permissions
53-
54-
| Permission | Level | Purpose |
55-
|---|---|---|
56-
| `contents` | `write` | Read `.lastmerge` file |
57-
| `issues` | `write` | Create/close upstream-sync issues |
58-
| `pull-requests` | `write` | Allow Copilot agent to create PRs |
59-
60-
## Secrets
61-
62-
| Secret | Purpose |
63-
|---|---|
64-
| `GH_AW_AGENT_TOKEN` | PAT used as `GH_TOKEN` for `gh` CLI operations (issue create/close/comment). Required because the default `GITHUB_TOKEN` cannot assign issues to `copilot-swe-agent`. |
65-
6652
## Workflow Steps
6753

6854
### 1. Checkout repository
@@ -97,7 +83,7 @@ Creates a new GitHub issue with:
9783

9884
- **Title:** `Upstream sync: N new commits (YYYY-MM-DD)`
9985
- **Label:** `upstream-sync`
100-
- **Assignee:** `copilot-swe-agent`
86+
- **Assignee:** `copilot`
10187
- **Body:** Contains commit count, commit range links, a summary of recent commits, and a link to the merge prompt
10288

10389
The Copilot coding agent picks up the issue, creates a branch and PR, then follows the merge prompt to port the changes.
@@ -115,21 +101,21 @@ Writes a GitHub Actions step summary with:
115101

116102
```
117103
┌─────────────────────┐
118-
│ Schedule / Manual
104+
│ Schedule / Manual │
119105
└──────────┬──────────┘
120106
121107
122108
┌─────────────────────┐
123-
│ Read .lastmerge
124-
│ Clone upstream SDK
125-
│ Compare commits
109+
│ Read .lastmerge │
110+
│ Clone upstream SDK │
111+
│ Compare commits │
126112
└──────────┬──────────┘
127113
128114
┌─────┴─────┐
129-
115+
│ │
130116
changes? no changes
131-
132-
117+
│ │
118+
▼ ▼
133119
┌──────────┐ ┌──────────────────┐
134120
│ Close old│ │ Close stale │
135121
│ issues │ │ issues │
@@ -138,7 +124,7 @@ Writes a GitHub Actions step summary with:
138124
139125
┌──────────────────────────┐
140126
│ Create issue assigned to │
141-
│ copilot-swe-agent
127+
│ copilot
142128
└──────────────────────────┘
143129
144130
@@ -154,5 +140,4 @@ Writes a GitHub Actions step summary with:
154140
|---|---|
155141
| `.lastmerge` | Stores the SHA of the last merged upstream commit |
156142
| [agentic-merge-upstream.prompt.md](../prompts/agentic-merge-upstream.prompt.md) | Detailed instructions the Copilot agent follows to port changes |
157-
| [upstream-sync.md](upstream-sync.md) | gh-aw agentic workflow (alternative approach that runs the agent directly in CI) |
158143
| `.github/scripts/upstream-sync/` | Helper scripts used by the merge prompt |

0 commit comments

Comments
 (0)