Conversation
…ation Signed-off-by: Pieter Viljoen <ptr727@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Refactors the GitHub Actions automation around codegen pull requests to make auto-merge triggering more reliable, and updates documentation to clarify required token permissions and event behavior.
Changes:
- Update codegen PR creation to use
GITHUB_TOKEN, then close/reopen usingWORKFLOW_PATto trigger downstreampull_requestworkflows. - Refine the auto-merge job condition to distinguish
reopenedevents (PAT actor) from normal workflow activity (Actions bot actor). - Improve CodeGen HTTP resilience behavior/logging and explicitly request JSON responses from the quotes API.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Clarifies PAT permissions and explains why close/reopen is required to trigger downstream workflows. |
| CodeGen/HttpClientFactory.cs | Refactors retry/circuit-breaker configuration, adds logging hooks, and tightens transient-failure detection. |
| CodeGen/ApiNinjas.cs | Adds an explicit Accept: application/json header for the API request. |
| .github/workflows/run-codegen-pull-request-task.yml | Switches PR creation to GITHUB_TOKEN and adds a PAT-driven close/reopen step to trigger pull_request workflows. |
| .github/workflows/merge-bot-pull-request.yml | Updates merge gating logic to align with the new close/reopen triggering strategy. |
This was referenced Jun 25, 2026
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.
Refactor the merge conditions for codegen pull requests to improve workflow reliability and update the README documentation for clarity on permissions and workflow behavior.