Fix renovate author check and add manual retry to autogen-docs notify#1006
Merged
Conversation
gh pr view --json author returns login as app/renovate, not renovate[bot], so the string comparison always failed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
workflow_run replaces the old draft-flip escape hatch, so there is no longer a way to manually re-trigger the notify for a missed PR. Add workflow_dispatch with a pr_number input as a direct retry path. The label/author guard is skipped for workflow_dispatch since the caller is a human explicitly choosing a PR. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request fixes the autogen-docs-notify GitHub Actions workflow so it (1) correctly detects Renovate-authored PRs after switching to workflow_run, and (2) supports manual retries via workflow_dispatch with a pr_number input.
Changes:
- Add a
workflow_dispatchtrigger with a requiredpr_numberinput to allow manual notification retries. - Update the notify job gating and PR resolution logic to support both
workflow_runand manual dispatch runs. - Fix the Renovate author check to match the login format returned by
gh pr view --json author.
Gate workflow_dispatch to refs/heads/main so manual retries always run from the trusted default-branch workflow definition. Accept both app/renovate and renovate[bot] as valid author logins to handle both GitHub App and bot account forms of Renovate. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
rdimitrov
approved these changes
Jul 1, 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.
Description
Two fixes to the `autogen-docs-notify` workflow introduced in #1002:
gh pr view --json authorreturns the login asapp/renovate, notrenovate[bot], so the author check in the "Resolve PR" step always failed and the notify job silently skipped every PR.workflow_runtrigger replaced the old draft-flip approach, which also removed the ability to manually re-trigger a missed notification.Adds a
workflow_dispatchinput with apr_numberfield as a direct retry path (label/author guard skipped for human-initiated runs).Type of change
Related issues/PRs
Follows #1002.
Submitter checklist
Content and formatting