Skip to content

feat(workflow): add automated pull request triage#513

Merged
Harxhit merged 1 commit into
Dev-Card:mainfrom
Harxhit:feat/triage-pr-workflow
Jun 9, 2026
Merged

feat(workflow): add automated pull request triage#513
Harxhit merged 1 commit into
Dev-Card:mainfrom
Harxhit:feat/triage-pr-workflow

Conversation

@Harxhit

@Harxhit Harxhit commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds an automated pull request triage workflow that classifies PRs based on the files modified, automatically applies area labels, and routes PRs to the appropriate reviewer. This helps streamline the review process and improves ownership visibility across the codebase.


Type of Change

  • Bug fix
  • New feature
  • Refactor (no functional change)
  • UI / Design change
  • Tests only
  • Documentation
  • Infrastructure / DevOps
  • Security

What Changed

  • Added a GitHub Actions workflow that runs when a pull request is opened.

  • Added automatic classification based on modified files.

  • Detects changes across the following areas:

    • backend
    • web
    • mobile
    • devops
  • Automatically applies one or more labels depending on the affected areas.

  • Determines a primary review area for mixed-area pull requests.

  • Automatically notifies the appropriate reviewer based on the primary review area.

  • Posts a summary comment containing:

    • Applied labels
    • Primary review area
    • Assigned reviewer

How to Test

  1. Open a pull request containing changes in apps/backend.
  2. Verify the backend label is applied.
  3. Open a pull request containing changes in apps/web.
  4. Verify the web label is applied.
  5. Open a pull request containing changes across multiple areas.
  6. Verify all relevant labels are applied.
  7. Verify a primary review area is selected.
  8. Verify the reviewer notification comment is posted.

Checklist

  • My code follows the project's coding style (npm run lint passes).
  • TypeScript compiles without errors (npm run typecheck passes).
  • I have added or updated tests for the changes I made.
  • All tests pass locally (npm run test).

Workflow Overview

Pull Request Opened
        │
        ▼
   Get Changed Files
        │
        ▼
 Detect Affected Areas
        │
        ├─ backend
        ├─ web
        ├─ mobile
        └─ devops
              │
              ▼
      Apply Labels
              │
              ▼
 Determine Primary Area
              │
              ▼
    Notify Reviewer

@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

@Harxhit is attempting to deploy a commit to the Prashantkumar Khatri's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

CI — All Checks Passed

Backend — SKIP

Check Result
Lint -
Test -
Typecheck -

Mobile — SKIP

Check Result
Lint -
Test -

Web — SKIP

Check Result
Check -
Build -

Last updated: Tue, 09 Jun 2026 07:31:34 GMT

@Harxhit

Harxhit commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

@ShantKhatri Please review this PR.

Also, could you take a quick look at the DevOps classification logic and let me know if any additional paths should be covered?

@Harxhit Harxhit requested a review from ShantKhatri June 9, 2026 07:33
@Harxhit Harxhit added the gssoc:approved Required label for every approved PR. Gives the base +50 points and enables contribution tracking. label Jun 9, 2026

@ShantKhatri ShantKhatri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@Harxhit Harxhit merged commit 0f3b50e into Dev-Card:main Jun 9, 2026
7 of 8 checks passed
@Harxhit Harxhit added level:advanced Complex contribution involving deeper technical work. (+55 pts) quality:exceptional Outstanding contribution with excellent implementation quality. (×1.5 multiplier) type:performance Performance optimization (+15 pts) type:devops CI/CD, infra, deployment, workflow work (+15 pts) labels Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Required label for every approved PR. Gives the base +50 points and enables contribution tracking. level:advanced Complex contribution involving deeper technical work. (+55 pts) quality:exceptional Outstanding contribution with excellent implementation quality. (×1.5 multiplier) type:devops CI/CD, infra, deployment, workflow work (+15 pts) type:performance Performance optimization (+15 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants