ci(labeler): update labels & associated files - #297
Conversation
📝 WalkthroughWalkthroughUpdated GitHub Actions labeling configuration by restructuring label-matching rules in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/labeler.yml (1)
46-52: Tightenscriptsglobs to avoid broad labeling across the repository.Lines 50–52 (
*.sh,*.ps1,*.bat) match script files anywhere in the repository (e.g.,scripts/deploy.sh,src/utils/helper.sh, root-level wrappers), not just thescripts/directory. If the intent is to label only scripts directory changes, keep it scoped toscripts/**alone.🔧 Proposed change
scripts: - changed-files: - any-glob-to-any-file: - "scripts/**" - - "*.sh" - - "*.ps1" - - "*.bat"🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/labeler.yml around lines 46 - 52, The current labeler globs under the "scripts" rule (the changed-files -> any-glob-to-any-file list) include "*.sh", "*.ps1", and "*.bat" which match script files anywhere; restrict these glob entries so they only target the scripts/ directory (or remove the root-level globs) by updating the changed-files -> any-glob-to-any-file list to reference only "scripts/**" (or equivalent scoped patterns) to avoid labeling changes to script files outside the scripts/ folder.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/labeler.yml:
- Around line 46-52: The current labeler globs under the "scripts" rule (the
changed-files -> any-glob-to-any-file list) include "*.sh", "*.ps1", and "*.bat"
which match script files anywhere; restrict these glob entries so they only
target the scripts/ directory (or remove the root-level globs) by updating the
changed-files -> any-glob-to-any-file list to reference only "scripts/**" (or
equivalent scoped patterns) to avoid labeling changes to script files outside
the scripts/ folder.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 153b9ece-aa2c-48a1-a340-c1181e04490f
📒 Files selected for processing (2)
.github/labeler.yml.github/workflows/pr-auto-label.yml
What was changed & why
Updates labeler workflow.
This provides better semantic labelling.
Fixes: none
Changes
Just the
.github/labeler.ymland.github/workflows/pr-auto-label.ymlTesting & Verification
Additional Resources
Summary by CodeRabbit