Dispatch CI workflows for generated changelog PRs#177
Open
nirooxx wants to merge 10 commits into
Open
Conversation
…m API - find_dispatched_workflow_run_id: removed urlencode() call for the ?branch= query parameter — GitHub's query router does NOT decode %2F in query strings, so branches with slashes (e.g. release-changelog-update/1.0.0) returned zero runs and the polling loop timed out before check runs were ever created - PR creation: read CHANGELOG_PR_HEAD_SHA from .head.sha in the API response (authoritative) rather than git rev-parse HEAD (local guess) - PR creation: handle HTTP 422 (PR already exists) by fetching the existing PR and reading its current head SHA so re-runs still trigger the full dispatch → find-run → mirror-check-runs flow - prettier: normalise LF line endings in existing test files
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.
This PR fixes missing required CI checks for changelog PRs created by the release action.
Why:
PRs created with GITHUB_TOKEN may not start normal pull_request checks automatically.
What:
Adds an optional ci-workflows input.
How:
After creating the changelog PR, the action dispatches the configured CI workflows on the generated changelog branch using workflow_dispatch. This keeps the flow based on GITHUB_TOKEN and avoids PAT or GitHub App tokens.