Skip to content

chore: Add coderabbit-review label configuration 🐰#19684

Merged
janisz merged 1 commit intomasterfrom
chore-Add-coderabbit-review-label-configuration
Mar 30, 2026
Merged

chore: Add coderabbit-review label configuration 🐰#19684
janisz merged 1 commit intomasterfrom
chore-Add-coderabbit-review-label-configuration

Conversation

@janisz
Copy link
Copy Markdown
Contributor

@janisz janisz commented Mar 30, 2026

Description

This PR enables coderabbit 🐰 reviews on paths owned by @stackrox/sensor-ecosystem

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

change me!

@janisz janisz requested a review from a team as a code owner March 30, 2026 09:13
@janisz janisz requested a review from a team March 30, 2026 09:13
@janisz janisz changed the title chore: Add coderabbit-review label configuration chore: Add coderabbit-review label configuration 🐰 Mar 30, 2026
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue, and left some high level feedback:

  • The coderabbit-review block in .github/labeler.yml appears mis-indented (the - changed-files: entry should be nested under coderabbit-review similarly to ai-review), otherwise the labeler config may not parse correctly.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The `coderabbit-review` block in `.github/labeler.yml` appears mis-indented (the `- changed-files:` entry should be nested under `coderabbit-review` similarly to `ai-review`), otherwise the labeler config may not parse correctly.

## Individual Comments

### Comment 1
<location path=".github/labeler.yml" line_range="86-84" />
<code_context>
     - scripts/ci/**/
     - sensor/**/*
+
+coderabbit-review:
+- changed-files:
+  - any-glob-to-any-file:
+    - .github/**/*
+    - .openshift-ci/**/*
+    - pkg/auth/**/*
+    - pkg/sac/**/*
+    - roxctl/**/*
+    - scripts/ci/**/
+    - sensor/**/*
</code_context>
<issue_to_address>
**issue (bug_risk):** The indentation makes `changed-files` a top-level list item instead of being nested under `coderabbit-review`.

As a result, `coderabbit-review` is currently a key with no value, and `- changed-files:` becomes a separate top-level list item. To align with `ai-review` and what the labeler action expects, it should be indented like:

```yaml
coderabbit-review:
  - changed-files:
      - any-glob-to-any-file:
          - .github/**/*
          - .openshift-ci/**/*
          - pkg/auth/**/*
          - pkg/sac/**/*
          - roxctl/**/*
          - scripts/ci/**/
          - sensor/**/*
```

Otherwise this block is likely to be ignored or fail to parse correctly.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 30, 2026

📝 Walkthrough

Walkthrough

The pull request adds a new coderabbit-review labeler rule to .github/labeler.yml. This rule automatically applies the coderabbit-review label to pull requests containing changes in specific file directories (.github/**/*, .openshift-ci/**/*, pkg/auth/**/*, pkg/sac/**/*, roxctl/**/*, scripts/ci/**/*, and sensor/**/*), mirroring the patterns used by the existing ai-review rule.

Changes

Cohort / File(s) Summary
GitHub Labeler Configuration
.github/labeler.yml
Added new coderabbit-review labeler rule with glob patterns matching .github/**/*, .openshift-ci/**/*, pkg/auth/**/*, pkg/sac/**/*, roxctl/**/*, scripts/ci/**/*, and sensor/**/* to automatically label PRs with changes in these paths.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description provides the main purpose (enabling coderabbit reviews) and references a related PR, but the testing and validation sections remain as placeholder text ('change me!'). Complete the 'How I validated my change' section to explain why testing is not needed for this configuration change, or provide validation details.
✅ Passed checks (2 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly and specifically describes the main change: adding a coderabbit-review label configuration to the CI setup.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore-Add-coderabbit-review-label-configuration

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 30, 2026

CodeRabbit chat interactions are restricted to organization members for this repository. Ask an organization member to interact with CodeRabbit, or set chat.allow_non_org_members: true in your configuration.

@rhacs-bot
Copy link
Copy Markdown
Contributor

Images are ready for the commit at bdeb1b5.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-476-gbdeb1b5b13.

Copy link
Copy Markdown
Contributor

@rhybrillou rhybrillou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the validity of the comment regarding the YAML file structure (proper nesting of sub-items and sub-lists).
Otherwise LGTM.

@janisz
Copy link
Copy Markdown
Contributor Author

janisz commented Mar 30, 2026

Yaml, is correct and it's working as label wa applied to this PR

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.38%. Comparing base (dfeac94) to head (bdeb1b5).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19684   +/-   ##
=======================================
  Coverage   49.38%   49.38%           
=======================================
  Files        2743     2743           
  Lines      207037   207037           
=======================================
+ Hits       102235   102236    +1     
  Misses      97217    97217           
+ Partials     7585     7584    -1     
Flag Coverage Δ
go-unit-tests 49.38% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@janisz janisz merged commit df8c4bc into master Mar 30, 2026
103 checks passed
@janisz janisz deleted the chore-Add-coderabbit-review-label-configuration branch March 30, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants