Skip to content

ci: fix renovate approve condition to check PR author#106

Merged
jimisola merged 1 commit intomainfrom
ci/fix-renovate-approve-actor-check
Mar 7, 2026
Merged

ci: fix renovate approve condition to check PR author#106
jimisola merged 1 commit intomainfrom
ci/fix-renovate-approve-actor-check

Conversation

@jimisola
Copy link
Member

@jimisola jimisola commented Mar 7, 2026

Summary

Fix incorrect actor check in the Renovate auto-approve workflow.

Problem: github.actor reflects who triggered the event (e.g. a human reopening a PR), not who authored the PR — so the if condition was silently skipping on legitimate Renovate PRs.

Fix: Move the condition to the caller and use github.event.pull_request.user.login which always reflects the PR author regardless of who triggered the workflow.

🤖 Generated with Claude Code

github.actor reflects who triggered the event (e.g. a human reopening
the PR), not who authored it. Use github.event.pull_request.user.login
in the caller to correctly identify Renovate-authored PRs regardless
of who triggers the workflow.

Signed-off-by: jimisola <jimisola@jimisola.com>
@jimisola jimisola self-assigned this Mar 7, 2026
@jimisola jimisola merged commit 8107c3a into main Mar 7, 2026
7 checks passed
@jimisola jimisola deleted the ci/fix-renovate-approve-actor-check branch March 7, 2026 18:23
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