Implement Auto-Labeling GitHub Actions Configuration
📝 Overview
To improve our repository management and contributor experience, we need to automate the labeling process for both Issues and Pull Requests. This will ensure that new reports are categorized immediately and contributors can easily find tasks like good first issue.
🛠 Proposed Logic
1. Issue Automation
We should use a workflow that scans issue titles and bodies for keywords to apply the following labels:
| Label |
Trigger Keyword / Condition |
bug |
"bug", "error", "broken", "fix" |
enhancement |
"feature", "request", "add", "new" |
good first issue |
Manually added or via specific "first timer" keywords |
need triage |
Applied to every new issue by default |
2. PR Automation (File-based)
Using the actions/labeler plugin, we can label Pull Requests based on the files modified:
documentation: If files in docs/ or *.md are changed.
frontend: If files in src/ or public/ are changed.
ci/cd: If files in .github/workflows/ are changed.
🚀 Implementation Plan
📌 References
Note: Once this is implemented, we should also consider a "Stale" action to automatically label and close inactive issues after 30 days.
Implement Auto-Labeling GitHub Actions Configuration
📝 Overview
To improve our repository management and contributor experience, we need to automate the labeling process for both Issues and Pull Requests. This will ensure that new reports are categorized immediately and contributors can easily find tasks like
good first issue.🛠 Proposed Logic
1. Issue Automation
We should use a workflow that scans issue titles and bodies for keywords to apply the following labels:
bugenhancementgood first issueneed triage2. PR Automation (File-based)
Using the
actions/labelerplugin, we can label Pull Requests based on the files modified:documentation: If files indocs/or*.mdare changed.frontend: If files insrc/orpublic/are changed.ci/cd: If files in.github/workflows/are changed.🚀 Implementation Plan
.github/labeler.ymlto define file-path mappings for PRs..github/workflows/labeler.ymlto trigger onpull_request_target..github/workflows/issue-labeler.ymlto handle keyword-based labeling for issues.📌 References