Conversation
Use github.event.pull_request.user.login not github.actor.
There was a problem hiding this comment.
Pull Request Overview
This PR updates the GitHub Actions workflow to use the PR author's username instead of the actor's username for determining when to run the lock file update job. This ensures the workflow triggers based on who created the pull request rather than who triggered the workflow event.
- Updates the conditional check from
github.actortogithub.event.pull_request.user.login
WalkthroughThe workflow file for updating lock files was modified to change the condition that determines when the workflow runs. The check now verifies if the pull request author's login is 'renovate[bot]' instead of checking the GitHub actor. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/update-lock.yml (1)
14-14: Normalise the runner label casing.GitHub-hosted runner labels are case-insensitive, but all official docs use lower-case (
ubuntu-latest). Normalising avoids future confusion and keeps the workflow consistent with common samples.- runs-on: Ubuntu-Latest + runs-on: ubuntu-latest
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/update-lock.yml(1 hunks)
🔇 Additional comments (1)
.github/workflows/update-lock.yml (1)
13-13: Condition switch is correct & clearer.Using
github.event.pull_request.user.loginreliably targets the PR author instead of the actor that triggered the workflow run, which prevents false-positives when Renovate pushes follow-up commits. 👍
close #
✏️ Description
Use
github.event.pull_request.user.login, notgithub.actor.