Add agentic workflow for upstream sync#104
Merged
brunoborges merged 2 commits intomainfrom Feb 9, 2026
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ymlwith 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-requestsafe output for submitting changes\n -noopsafe 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 bygh aw compile)\n-.github/aw/actions-lock.json— SHA-pinned action references\n\n## How it works\n\n1. Agent clones upstreamgithub/copilot-sdkand checks.lastmergefor new commits\n2. If no changes → callsnoopsafe 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. Runsmvn spotless:apply+mvn clean verify\n6. Creates a draft PR viacreate-pull-requestsafe output\n\n## Notes\n\n- The existingweekly-upstream-sync.ymlcan be removed once this workflow is validated\n- The workflow markdown body can be edited on GitHub.com without recompilation\n- Frontmatter changes requiregh aw compile upstream-sync