Feat/automatic pr labellng#68
Conversation
🚀 PR Received SuccessfullyHello @SaranHiruthikM, Thank you for taking the initiative to contribute to this project. Please ensure that your PR follows all project guidelines properly before requesting review.
|
📝 WalkthroughWalkthroughThis PR adds GitHub Actions automation to automatically label pull requests based on file path patterns. A new labeler configuration file maps frontend directory changes to a ChangesAutomatic PR Labeling Setup
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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.
Pull request overview
Adds GitHub Actions-based automation to label pull requests based on which parts of the repository were modified, to reduce manual triage effort.
Changes:
- Added a PR labeling workflow using
actions/labeler. - Added a label mapping configuration file to map paths (frontend/server/markdown) to labels.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/label.yml |
Introduces a workflow that runs the labeler on pull_request_target events and applies labels. |
.github/labeler.yml |
Defines the label-to-path rules used by the labeler action. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/labeler.yml:
- Around line 2-11: The label config uses inconsistent names: "Frontend"
(capitalized), "backend" and "documentation", which also don't match the PR
text; update the label keys so they are consistent, lowercase, and match the PR
description by renaming "Frontend" to "frontend" and "documentation" to "docs"
while keeping "backend" unchanged; ensure the pattern entries under each label
(e.g., "frontend/**", "server/**", "**/*.md") remain the same and test the
labeler to confirm PRs get the frontend, backend, and docs labels.
In @.github/workflows/label.yml:
- Line 13: Update the GitHub Actions labeler step to use the current stable
release by replacing the reference "actions/labeler@v4" with
"actions/labeler@v6.1.0"; locate the workflow step that contains the uses:
action string (the labeler step) and update the version tag to v6.1.0 to ensure
you get the latest fixes and features.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: b5f369aa-fbeb-4518-97d7-483984b37ab7
📒 Files selected for processing (2)
.github/labeler.yml.github/workflows/label.yml
|
Solves #64 cc: @kunalverma2512 |
Description
This PR introduces automatic Pull Request labeling using GitHub Actions. As contributor activity increases, this automation will help improve PR categorization, simplify repository triaging, and significantly reduce the manual workload for maintainers.
Changes Introduced
.github/labeler.ymlto define the label mapping rules based on file paths..github/workflows/label.ymlto set up the GitHub Action workflow that runs on PR events.Expected Behavior
The workflow detects modified files in a Pull Request and automatically assigns the following labels:
Frontend(for any changes in thefrontend/**directory)backend(for any changes in theserver/**directory)docs(for any changes to**/*.mdfiles)Summary by CodeRabbit