Skip to content

Commit f031011

Browse files
committed
Unify @github/copilot version tracking and rename sync workflow
Option C: Make reference-impl sync the single entry point for all @github/copilot version changes. During sync, both pom.xml and scripts/codegen/package.json are updated from the reference implementation's nodejs/package.json. Changes: - Add sync-codegen-version.sh to update scripts/codegen/package.json - Update merge-reference-impl-finish.sh to call the new script - Remove Dependabot npm entry for /scripts/codegen (no longer needed) - Rename weekly-reference-impl-sync.{yml,md,lock.yml} to reference-impl-sync.{yml,md,lock.yml} - Change schedule from weekly (Monday) to daily - Remove all 'weekly'/'Weekly' timing references from file contents - Rename POM property to remove 'weekly' from its name - Recompile agentic workflow via gh aw compile
1 parent 5821e83 commit f031011

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/reference-impl-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: "Reference Implementation Sync"
22

33
on:
44
schedule:
5-
# Daily at 10:00 UTC (5:00 AM EST / 6:00 AM EDT)
6-
- cron: '0 10 * * *'
5+
# Tuesday and Thursday at 10:00 UTC (5:00 AM EST / 6:00 AM EDT)
6+
- cron: '0 10 * * 2,4'
77
workflow_dispatch:
88

99
permissions:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Contributions are welcome! Please see the [Contributing Guide](CONTRIBUTING.md)
165165

166166
This SDK tracks the official [Copilot SDK](https://github.com/github/copilot-sdk) (.NET reference implementation) and ports changes to Java. The reference implementation merge process is automated with AI assistance:
167167

168-
**Daily automated sync** — A [scheduled GitHub Actions workflow](.github/workflows/reference-impl-sync.yml) runs daily at 10:00 UTC. It checks for new reference implementation commits since the last merge (tracked in [`.lastmerge`](.lastmerge)), and if changes are found, creates an issue labeled `reference-impl-sync` and assigns it to the GitHub Copilot coding agent. Any previously open `reference-impl-sync` issues are automatically closed. The sync also updates the `@github/copilot` version in both `pom.xml` and `scripts/codegen/package.json` to keep schemas and test CLI in lockstep.
168+
**Automated sync** — A [scheduled GitHub Actions workflow](.github/workflows/reference-impl-sync.yml) runs on the schedule specified in that file. It checks for new reference implementation commits since the last merge (tracked in [`.lastmerge`](.lastmerge)), and if changes are found, creates an issue labeled `reference-impl-sync` and assigns it to the GitHub Copilot coding agent. Any previously open `reference-impl-sync` issues are automatically closed. The sync also updates the `@github/copilot` version in both `pom.xml` and `scripts/codegen/package.json` to keep schemas and test CLI in lockstep.
169169

170170
**Reusable prompt** — The merge workflow is defined in [`agentic-merge-reference-impl.prompt.md`](.github/prompts/agentic-merge-reference-impl.prompt.md). It can be triggered manually from:
171171
- **VS Code Copilot Chat** — type `/agentic-merge-reference-impl`

docs/WORKFLOWS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
| [Update @github/copilot Dependency](workflows/update-copilot-dependency.yml) | Updates the `@github/copilot` npm package, re-runs code generation, and opens a PR | `workflow_dispatch` ||
1010
| [Deploy Documentation](workflows/deploy-site.yml) | Generates and deploys versioned docs to GitHub Pages | `workflow_run` (after Build & Test), `release`, `workflow_dispatch` ||
1111
| [Publish to Maven Central](workflows/publish-maven.yml) | Releases the SDK to Maven Central and creates a GitHub Release | `workflow_dispatch` ||
12-
| [Reference Implementation Sync](workflows/reference-impl-sync.yml) | Checks for new reference implementation commits and creates an issue for Copilot to merge | `workflow_dispatch` | Daily at 10:00 UTC |
13-
| [Reference Implementation Sync (Agentic)](workflows/reference-impl-sync.lock.yml) | Compiled agentic workflow that executes the reference implementation sync via `gh-aw` | `workflow_dispatch` | Daily (scattered) |
12+
| [Reference Implementation Sync](workflows/reference-impl-sync.yml) | Checks for new reference implementation commits and creates an issue for Copilot to merge | `workflow_dispatch` | [See workflow](workflows/reference-impl-sync.yml) |
13+
| [Reference Implementation Sync (Agentic)](workflows/reference-impl-sync.lock.yml) | Compiled agentic workflow that executes the reference implementation sync via `gh-aw` | `workflow_dispatch` | [See workflow](workflows/reference-impl-sync.yml) |
1414
| [Copilot Setup Steps](workflows/copilot-setup-steps.yml) | Configures the environment for the GitHub Copilot coding agent | `push` (on self-change), `workflow_dispatch` ||
1515

1616
---
@@ -68,7 +68,7 @@ Manual-only workflow that performs a full release:
6868

6969
**File:** [`reference-impl-sync.yml`](workflows/reference-impl-sync.yml)
7070

71-
Runs daily at 10:00 UTC. Clones the official `github/copilot-sdk` repository and compares `HEAD` against the commit hash stored in `.lastmerge`.
71+
Runs on the schedule specified in [`.github/workflows/reference-impl-sync.yml`](workflows/reference-impl-sync.yml). Clones the official `github/copilot-sdk` repository and compares `HEAD` against the commit hash stored in `.lastmerge`.
7272

7373
If new commits are found:
7474
1. Closes any previously open `reference-impl-sync` issues

0 commit comments

Comments
 (0)