Skip to content

Conversation

Arlodotexe
Copy link
Member

@Arlodotexe Arlodotexe commented Jul 30, 2025

Problem

The --fill-verbose flag in the scheduled releases workflow wasn't working as expected. Instead of populating the PR description with detailed commit information from changes between rel/weekly and main, it was only showing the generic message we provided via the --body parameter.

Root Cause

After investigating the GitHub CLI documentation (gh pr create --help), we discovered that when both --body and --fill-verbose flags are provided together, the --body parameter takes precedence and overwrites any autofilled content from --fill-verbose.

Solution

Removed the conflicting --body parameter from the gh pr create command in the scheduled releases workflow.

Additional Issue Discovered

When testing the fix with gh pr create --fill-verbose --dry-run, we discovered that the command fails with "could not find any commits between origin/rel/weekly and main" when the branches are synchronized (no new commits). This would cause the scheduled workflow to fail when there's nothing to release.

Additional Solution

Added early exit logic following the same pattern used in build.yml - the workflow now checks if there are new commits between rel/weekly and main before attempting to create a PR, preventing failures when branches are synchronized.

End Result

  • The scheduled weekly release PRs will now automatically include detailed commit information in their descriptions, showing exactly what changes are being released each week instead of just a generic automated message.
  • The workflow gracefully handles cases where there are no new commits to release, skipping PR creation entirely.

…uled releases

The --body parameter was overriding the --fill-verbose flag, preventing
the PR description from being populated with commit details. Removed
--body to allow --fill-verbose to work correctly.
- Add commit check step following build.yml pattern
- Skip PR creation when no new commits between rel/weekly and main
- Satisfy linter by declaring HAS_NEW_COMMITS environment variable
- Prevents workflow failure when branches are synchronized
@Arlodotexe Arlodotexe enabled auto-merge July 30, 2025 20:10
@Arlodotexe Arlodotexe merged commit f33057f into main Jul 30, 2025
23 of 24 checks passed
@Arlodotexe Arlodotexe deleted the fix/scheduled-releases-fill-verbose branch July 30, 2025 21:11
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.

2 participants