Skip to content

Fix release drafter empty changelogs and render stale branch refs#16

Merged
milldr merged 2 commits intomainfrom
fix/release-drafter-and-render-pull
Feb 28, 2026
Merged

Fix release drafter empty changelogs and render stale branch refs#16
milldr merged 2 commits intomainfrom
fix/release-drafter-and-render-pull

Conversation

@milldr
Copy link
Owner

@milldr milldr commented Feb 27, 2026

What

  • Add 10s delay to release-drafter workflow to avoid GitHub GraphQL API race condition
  • Add workflow_dispatch trigger for manual re-runs when drafts are empty
  • Add autolabeler config to auto-label PRs from branch name patterns
  • Fix flow render to use origin/<default> instead of local branch ref when creating new branches
  • Add test verifying new branches use the remote ref as start point

Why

Release drafter was intermittently producing empty changelogs ("No changes") because its GraphQL query for associated pull requests ran before the API had propagated the commit/PR association (~9s after push). Traced through the release-drafter v6 source to confirm the query uses history(since:) with associatedPullRequests, which is subject to eventual consistency.

Separately, flow render was creating new branches from potentially stale local refs in the bare repo cache. After fetch --all, the remote tracking refs (origin/main) are updated but the local branch ref (main) may still point to an old commit.

Ref

  • Release drafter source: lib/commits.jsfindCommitsWithAssociatedPullRequestsQuery
  • Affected releases: v0.3.0, v1.4.0, v1.5.0 all showed "No changes"
  • Working releases (v1.1.0–v1.3.0) either had accumulated drafts or got lucky with API timing

@milldr milldr added the minor Minor version bump label Feb 28, 2026
@milldr milldr merged commit 28a5d48 into main Feb 28, 2026
3 checks passed
@milldr milldr deleted the fix/release-drafter-and-render-pull branch February 28, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Minor version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant