Skip to content

Rule: Work in progress detection (work-in-progress) #23

@ddjain

Description

@ddjain

Rule: Work In Progress Detection

Overview

Identifies PRs that are marked as work-in-progress or draft based on title patterns.

Label Metadata

  • Label Name: work-in-progress
  • Color: 6a737d (Gray)
  • Description: PR marked as work-in-progress or draft

Detection Logic

Check PR title for WIP/Draft indicators:

  • Case-insensitive matching
  • Patterns: WIP, Draft, [WIP], [DRAFT], (WIP), (DRAFT)
  • Position: Beginning or anywhere in title

Regex Patterns

  • ^(WIP|DRAFT|\[WIP\]|\[DRAFT\]|\\(WIP\\)|\\(DRAFT\\))
  • Case-insensitive flag

Example Titles That Trigger

  • WIP: Add new feature
  • [DRAFT] Refactor auth system
  • (WIP) Update documentation
  • Add login page - WIP

Example Titles That Do NOT Trigger

  • Add new feature
  • WIPping the data (substring, not prefix)
  • Work in progress (full words, not abbreviation)

Test Cases Needed

  • Detects WIP prefix
  • Detects DRAFT prefix
  • Detects bracketed indicators
  • Detects parenthetical indicators
  • Case-insensitive matching
  • Handles WIP anywhere in title

Edge Cases

  • wip lowercase - should detect
  • WIPping - should not trigger (avoid false positives)
  • Multiple indicators - should still detect

Integration Notes

  • Useful for filtering draft PRs
  • May want to combine with GitHub Draft PR status (but check title for manual marking)
  • Consider auto-removing label when title changes

Priority

Medium - Useful for PR management


Status: Not implemented
Category: PR Structure & Metadata

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions