Skip to content

Add agentic workflow for upstream sync#104

Merged
brunoborges merged 2 commits intomainfrom
feat/agentic-upstream-sync-workflow
Feb 9, 2026
Merged

Add agentic workflow for upstream sync#104
brunoborges merged 2 commits intomainfrom
feat/agentic-upstream-sync-workflow

Conversation

@brunoborges
Copy link
Member

Summary\n\nAdd a GitHub Agentic Workflow to automate weekly upstream SDK syncing. This replaces the current approach of creating a Copilot coding agent issue via weekly-upstream-sync.yml with a native gh-aw workflow.\n\n## Changes\n\n- .github/workflows/upstream-sync.md — Agentic workflow definition with:\n - Weekly schedule trigger (+ manual dispatch)\n - Java 17 and Node.js 22 setup steps\n - GitHub toolsets for repo reading\n - create-pull-request safe output for submitting changes\n - noop safe output for when no upstream changes exist\n - Detailed agent instructions covering: change detection, diff analysis, Java porting conventions, test porting, documentation updates, formatting/testing, and PR creation\n- .github/workflows/upstream-sync.lock.yml — Compiled GitHub Actions YAML (auto-generated by gh aw compile)\n- .github/aw/actions-lock.json — SHA-pinned action references\n\n## How it works\n\n1. Agent clones upstream github/copilot-sdk and checks .lastmerge for new commits\n2. If no changes → calls noop safe output and exits\n3. If changes found → analyzes diffs by area (.NET src, tests, docs, protocol)\n4. Ports changes to Java SDK following existing patterns and conventions\n5. Runs mvn spotless:apply + mvn clean verify\n6. Creates a draft PR via create-pull-request safe output\n\n## Notes\n\n- The existing weekly-upstream-sync.yml can be removed once this workflow is validated\n- The workflow markdown body can be edited on GitHub.com without recompilation\n- Frontmatter changes require gh aw compile upstream-sync

Create a gh-aw agentic workflow that replaces the existing
Copilot coding agent issue-based approach with a native
GitHub Agentic Workflow for weekly upstream SDK syncing.

The workflow checks for new upstream commits, analyzes diffs,
ports changes to the Java SDK, runs tests, and creates a PR.
@brunoborges brunoborges merged commit 987d605 into main Feb 9, 2026
@brunoborges brunoborges deleted the feat/agentic-upstream-sync-workflow branch February 16, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant