Skip to content

[typespec-python] Use tracking issue with PR compare link in regenerate workflow#46623

Open
msyyc wants to merge 22 commits into
mainfrom
fix-typespec-python-regenerate-action
Open

[typespec-python] Use tracking issue with PR compare link in regenerate workflow#46623
msyyc wants to merge 22 commits into
mainfrom
fix-typespec-python-regenerate-action

Conversation

@msyyc
Copy link
Copy Markdown
Member

@msyyc msyyc commented Apr 30, 2026

GitHub Actions is not permitted to create pull requests in this repo, so the regenerate workflow now creates/updates a tracking issue containing a pre-filled compare URL. Maintainers click the link to open the PR.
Copilot AI review requested due to automatic review settings April 30, 2026 03:26
@msyyc msyyc requested a review from a team as a code owner April 30, 2026 03:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the TypeSpec Python regeneration automation to work under org policy restrictions that prevent GitHub Actions from creating pull requests, by switching to a tracking-issue workflow that links to a pre-filled PR creation page.

Changes:

  • Replace “create/update PR” with “create/update tracking issue” containing a pre-filled compare URL (quick_pull=1) for manual PR creation.
  • Encode PR title/body into the compare URL using jq @uri.
  • Remove the auto-merge step since no PR exists at workflow runtime.

Comment thread .github/workflows/typespec-python-regenerate.yml Outdated
Comment thread .github/workflows/typespec-python-regenerate.yml Outdated
Comment thread .github/workflows/typespec-python-regenerate.yml Outdated
msyyc and others added 2 commits April 30, 2026 11:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 30, 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:

  • scanning-api.github.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

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

@msyyc msyyc marked this pull request as draft May 11, 2026 09:35
@msyyc msyyc marked this pull request as ready for review May 14, 2026 08:35
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.

4 participants