Skip to content

add auto labeling github actions configuration #2

@utkarsh232005

Description

@utkarsh232005

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

  • Step 1: Create .github/labeler.yml to define file-path mappings for PRs.
  • Step 2: Create .github/workflows/labeler.yml to trigger on pull_request_target.
  • Step 3: Create .github/workflows/issue-labeler.yml to handle keyword-based labeling for issues.
  • Step 4: Update Issue Templates to include default labels in the YAML frontmatter.

📌 References

Note: Once this is implemented, we should also consider a "Stale" action to automatically label and close inactive issues after 30 days.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions