Skip to content

Add agentic workflow to file TCGC bump tracking issues for http-client-csharp#10014

Merged
jorgerangel-msft merged 17 commits intomainfrom
copilot/create-agentic-workflow-tcgc-upgrade
Apr 27, 2026
Merged

Add agentic workflow to file TCGC bump tracking issues for http-client-csharp#10014
jorgerangel-msft merged 17 commits intomainfrom
copilot/create-agentic-workflow-tcgc-upgrade

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 12, 2026

Adds a daily GitHub Agentic Workflow that checks for new stable releases of @azure-tools/typespec-client-generator-core and files a tracking issue assigned to GitHub Copilot to upgrade http-client-csharp when one is found. (GitHub Actions in microsoft repos cannot create PRs, so the workflow files an issue and assigns Copilot to perform the upgrade instead.)

  • Trigger: schedule: daily (gh-aw fuzzy daily schedule) with workflow_dispatch for manual runs — checks the npm registry for the latest non-dev TCGC version
  • No-op when current: Compares against devDependencies["@azure-tools/typespec-client-generator-core"] in packages/http-client-csharp/package.json; exits without creating an issue if already up to date
  • Duplicate issue detection: Searches existing issues in any state (open or closed) that carry the emitter:client:csharp label and reference upgrading TCGC to the same version (Bump TCGC to <LATEST_STABLE>); exits without creating a new issue if a match is found
  • Issue creation: Files a new issue using the Bump TCGC to <LATEST_STABLE> title format and the body structure of #10367 (links to the TCGC CHANGELOG anchor and asks for Generate.ps1 to be rerun)
  • Issue labeling: safe-outputs.create-issue.labels: [emitter:client:csharp] applies the label automatically at issue-creation time
  • Copilot assignment: Uses safe-outputs.create-issue with assignees: [copilot] to assign the Copilot coding agent at issue creation time, per the assign-to-copilot docs. The Copilot coding agent then follows the existing migration steps in .github/prompts/upgrade-tcgc.instructions.md to perform the actual version bump.
  • Default model: safe-outputs.assign-to-agent is configured with name: copilot and model: "claude-opus-4.6" to set the default model for the assigned agent (model: is not a valid field on create-issue itself in the gh-aw schema)
  • Frontmatter format: Aligned with the repo standard established by PR Add issue triage agentic workflow #10001 (issue-triage.md) — uses description: only (no name:), simple network: defaults, engine: copilot, permissions: read-all, and canonical tools: web-fetch: / github: toolsets: [issues, repos], lockdown: false
  • Lock file: Includes the compiled bump-tcgc-csharp.lock.yml generated by gh aw compile

This replaces the manual process of filing an issue + assigning Copilot for each TCGC patch/minor bump (e.g. commits 458f881, f3bdd60).

Original prompt

This section details on the original issue you should resolve

<issue_title>Create an Agentic Workflow to Automatically Upgrade TCGC Dependency for the http-client-csharp package</issue_title>
<issue_description>We should look into creating a new agentic workflow that automates the version bump process for tcgc. The workflow should run once a day and check if a new non-dev tcgc version is available at https://www.npmjs.com/package/@azure-tools/typespec-client-generator-core and if that version is newer than the one used in http-client-csharp. If there is no new version, no PR should be opened. If there is a new version, then a PR should be opened with the code updates. Some examples of this being done previously:

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Copilot AI changed the title [WIP] Create agentic workflow for tcgc dependency upgrade Add agentic workflow to auto-bump TCGC for http-client-csharp Mar 12, 2026
Copilot AI requested a review from jorgerangel-msft March 12, 2026 21:16
Comment thread .github/workflows/bump-tcgc-csharp.md
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Comment thread .github/workflows/bump-tcgc-csharp.md Outdated
Comment thread .github/workflows/bump-tcgc-csharp.md Outdated
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Comment thread .github/workflows/bump-tcgc-csharp.md Outdated
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Comment thread .github/workflows/bump-tcgc-csharp.md Outdated
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 27, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.50.1
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.50.1 --jq .object.sha (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/c7477d4d-6f7e-4684-955c-20a3bf432f79

Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 27, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.50.1
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.50.1 --jq .object.sha (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/58cbda36-7303-4c9d-8dcc-d26bf8e1cd96

Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
…ilot/create-agentic-workflow-tcgc-upgrade
@github-actions
Copy link
Copy Markdown
Contributor

No changes needing a change description found.

@jorgerangel-msft jorgerangel-msft marked this pull request as ready for review April 27, 2026 19:40
@jorgerangel-msft jorgerangel-msft removed the stale Mark a PR that hasn't been recently updated and will be closed. label Apr 27, 2026
@azure-sdk
Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Comment thread .github/workflows/bump-tcgc-csharp.md
@jorgerangel-msft jorgerangel-msft added this pull request to the merge queue Apr 27, 2026
Merged via the queue into main with commit 5b4d837 Apr 27, 2026
30 checks passed
@jorgerangel-msft jorgerangel-msft deleted the copilot/create-agentic-workflow-tcgc-upgrade branch April 27, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create an Agentic Workflow to Automatically Upgrade TCGC Dependency for the http-client-csharp package

5 participants