NO-JIRA: Add default coderabbit for the repo#798
Conversation
|
@rikatz: This pull request explicitly references no jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Warning Ignoring CodeRabbit configuration file changes. For security, only the configuration from the base branch is applied for open source repositories. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughA new ChangesCodeRabbit Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
/cc @bentito |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@rikatz this will leave off at an /approve that is from someone not in OWNERS, right? We had discussed also having "openshift-ci detects coderabbit approving and add the ready-for-human-review label" but how does that part work? We can certainly merge this PR. Just wondering about rest of the process. |
|
yes that's right. I though it was something that openshift-ci robot would do, but I've found we can also ask coderabbit to do directly: https://github.com/openshift/lvm-operator/blob/f6407c6c17ef3c34b72c3afb430487125d32c84c/.coderabbit.yaml#L13-L15 Tho I am not sure if it will have the right permissions. @coderabbitai do you know? |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Fetch the lvm-operator .coderabbit.yaml to see lines 13-15
curl -s "https://raw.githubusercontent.com/openshift/lvm-operator/f6407c6c17ef3c34b72c3afb430487125d32c84c/.coderabbit.yaml"Length of output: 709
What CodeRabbit can do: add GitHub labels directlyThe lvm-operator config you found (lines 13–15) uses the reviews:
auto_apply_labels: true
labeling_instructions:
- label: "ready-for-human-review"
instructions: "Apply when CodeRabbit approves the PR with no outstanding comments or requested changes."This uses the GitHub App API to apply the label directly — it does not post a prow command. As long as the CodeRabbit GitHub App was installed with What CodeRabbit cannot do: act as a prow approverPosting RecommendationYou can add this to the reviews:
auto_apply_labels: true
labeling_instructions:
- label: "ready-for-human-review"
instructions: "Apply when CodeRabbit approves the PR with no outstanding comments or requested changes."This gives you the label-based signal without needing OWNERS file changes. The label |
|
aha @bentito actually we need to enable https://github.com/openshift/release/blob/ae6198e8bf8638a290103281db4c78833a404e92/clusters/app.ci/prow/03_deployment/ship-hook.yaml#L18 on our repo, apparently Found the design for it: https://github.com/openshift-eng/ship-hook/blob/832c122c37735ce4f3ac612d36b45b019e412157/specs/003-ready-for-humans.md?plain=1#L16 |
|
@rikatz: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Add coderabbit configuration for router repo
Summary by CodeRabbit