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
Copy file name to clipboardExpand all lines: .github/workflows/reference-impl-sync.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ permissions:
11
11
contents: read
12
12
actions: read
13
13
issues: read
14
+
pull-requests: read
14
15
15
16
network:
16
17
allowed:
@@ -19,7 +20,7 @@ network:
19
20
20
21
tools:
21
22
github:
22
-
toolsets: [context, repos, issues]
23
+
toolsets: [context, repos, issues, pull_requests]
23
24
24
25
safe-outputs:
25
26
create-issue:
@@ -37,6 +38,9 @@ safe-outputs:
37
38
name: "copilot"
38
39
model: "claude-opus-4.6"
39
40
target: "*"
41
+
close-pull-request:
42
+
target: "*"
43
+
max: 10
40
44
noop:
41
45
report-as-issue: false
42
46
---
@@ -78,14 +82,16 @@ Go to Step 3b.
78
82
79
83
1. Search for any open issues with the `reference-impl-sync` label using the GitHub MCP tools.
80
84
2. If there are open `reference-impl-sync` labeled issues, close each one using the `close_issue` safe-output tool with a comment: "No new reference implementation changes detected. The Java SDK is up to date. Closing."
81
-
3. Call the `noop` safe-output tool with message: "No new reference implementation changes since last merge (<LAST_MERGE>)."
82
-
4.**Stop here.** Do not proceed further.
85
+
3. Search for any open pull requests whose head branch starts with `copilot/reference-impl`. Close each one using the `close_pull_request` safe-output tool with a comment: "Superseded — the Java SDK is up to date with the reference implementation. Closing stale sync PR."
86
+
4. Call the `noop` safe-output tool with message: "No new reference implementation changes since last merge (<LAST_MERGE>)."
87
+
5.**Stop here.** Do not proceed further.
83
88
84
89
### Step 3b: Changes detected
85
90
86
91
1. Search for any open issues with the `reference-impl-sync` label using the GitHub MCP tools.
87
92
2. Close each existing open `reference-impl-sync` issue using the `close_issue` safe-output tool with a comment: "Superseded by a newer reference implementation sync check."
88
-
3. Create a new issue using the `create_issue` safe-output tool with:
93
+
3. Search for any open pull requests whose head branch starts with `copilot/reference-impl`. Close each one using the `close_pull_request` safe-output tool with a comment: "Superseded by a newer reference implementation sync issue. Closing stale sync PR."
94
+
4. Create a new issue using the `create_issue` safe-output tool with:
89
95
-**Title:**`Reference Implementation sync: <COMMIT_COUNT> new commits (<YYYY-MM-DD>)`
90
96
-**Body:** Include the following information:
91
97
```
@@ -112,7 +118,7 @@ Go to Step 3b.
112
118
❌❌Do NOT update .lastmerge manually — the finish script does this.❌❌
113
119
❌❌Do NOT skip the finish script — it syncs codegen versions and updates .lastmerge.❌❌
114
120
```
115
-
4. After creating the issue, use the `assign_to_agent` safe-output tool to assign Copilot to the newly created issue.
121
+
5. After creating the issue, use the `assign_to_agent` safe-output tool to assign Copilot to the newly created issue.
0 commit comments