Skip to content

Dispatch CI workflows for generated changelog PRs#177

Open
nirooxx wants to merge 10 commits into
improve/release-contributors-layoutfrom
fix/changelog-pr-ci-dispatch
Open

Dispatch CI workflows for generated changelog PRs#177
nirooxx wants to merge 10 commits into
improve/release-contributors-layoutfrom
fix/changelog-pr-ci-dispatch

Conversation

@nirooxx

@nirooxx nirooxx commented Jun 10, 2026

Copy link
Copy Markdown
Member

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.

@nirooxx nirooxx requested a review from pavelkornev June 10, 2026 13:43
@nirooxx nirooxx changed the base branch from main to improve/release-contributors-layout June 10, 2026 14:22
@nirooxx nirooxx changed the base branch from improve/release-contributors-layout to main June 12, 2026 12:06
nirooxx and others added 9 commits June 13, 2026 16:38
…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>
@nirooxx nirooxx changed the base branch from main to improve/release-contributors-layout June 23, 2026 17:14
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.

1 participant