Add CodeRabbit review trigger for Dependabot GitHub Actions updates#246
Add CodeRabbit review trigger for Dependabot GitHub Actions updates#246skitt merged 1 commit intosubmariner-io:develfrom
Conversation
This commit enhances the webhook bot to automatically trigger CodeRabbit reviews for Dependabot PRs that update GitHub Actions workflow files on the devel branch. The bot now inspects the files changed in Dependabot PRs targeting the devel branch. If all changed files are GitHub Actions workflow files (.github/workflows/*.yml or *.yaml), it triggers a CodeRabbit review by posting the appropriate comment. Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
|
🤖 Created branch: z_pr246/tpantelis/cr_devel_only |
WalkthroughThe pull request adds a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 inconclusive)
✅ Passed checks (3 passed)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pkg/ghclient/gh.go (1)
172-181: No pagination: PRs with >100 changed files will be silently truncated.
ListFilesfetches only the first page (max 100 items). If a PR has more than 100 files, the remaining ones are never retrieved. This mirrors the existingListReviewspattern, so it's consistent, but forisGitHubActionsUpdatePRthe consequence is that a non-workflow file beyond the 100th entry could be missed, incorrectly returningtrue.For the current Dependabot use case this is very unlikely to matter, but worth a brief comment or a TODO.
|
🤖 Closed branches: [z_pr246/tpantelis/cr_devel_only] |
This commit enhances the webhook bot to automatically trigger CodeRabbit reviews for Dependabot PRs that update GitHub Actions workflow files on the devel branch.
The bot now inspects the files changed in Dependabot PRs targeting the devel branch. If all changed files are GitHub Actions workflow files (.github/workflows/*.yml or *.yaml), it triggers a CodeRabbit review by posting the appropriate comment.
Summary by CodeRabbit