Skip to content

Comments

config: add label and auto-assign workflows#4

Merged
p-iknow merged 5 commits intomainfrom
i3-config/label-and-auto-assign
Oct 11, 2025
Merged

config: add label and auto-assign workflows#4
p-iknow merged 5 commits intomainfrom
i3-config/label-and-auto-assign

Conversation

@p-iknow
Copy link
Contributor

@p-iknow p-iknow commented Oct 11, 2025

Requirement

Resolves #3

Add common labels for issue/PR categorization and implement automated workflows for labeling and assignment to streamline contribution management.

Implementation

Labels Created (via GitHub CLI):

Created 9 labels with descriptions and color coding:

  • feat - New features or enhancements (green)
  • fix - Bug fixes (red)
  • doc - Documentation changes (blue)
  • config - Configuration updates (pink)
  • refactor - Code refactoring (yellow)
  • agent - Agent rules and commands (purple)
  • bug - Bug reports (red)
  • test - Test additions or improvements (yellow)
  • perf - Performance improvements (light blue)

Auto-Label Workflow:

  • Created .github/workflows/auto-label.yml using actions/github-script@v8
  • Automatically detects type prefix in issue/PR titles (feat:, fix:, doc:, config:, refactor:, agent:, test:, bug:, perf:)
  • Applies corresponding label when prefix is found
  • Triggers on issue/PR open, edit, and synchronize events
  • Added documentation comments explaining usage and supported prefixes

Auto-Assign Workflow:

  • Created .github/workflows/auto-assign.yml using actions/github-script@v8
  • Automatically assigns issues/PRs to their creator for ownership tracking
  • Triggers on issue open and PR open/ready_for_review events
  • Includes error handling for assignment failures
  • Added documentation comments explaining workflow purpose

Issue Templates:

  • Updated existing templates (agent, bug, config, doc) to use correct labels and consistent formatting
  • Created new templates: feat.md, fix.md, refactor.md, test.md, perf.md
  • Removed obsolete templates: component.md, util.md
  • Standardized all templates with consistent title format "type: " (no brackets)
  • Removed hardcoded assignees (changed to empty string)
  • Each of the 9 labels now has a corresponding issue template

Slash Commands:

  • Updated .claude/commands/make-pr.md to include all commit type conventions
  • Updated .claude/commands/make-branch.md to include all commit type conventions
  • Added doc, test, perf to supported types
  • Changed docs → doc for consistency

Test

  • Verify auto-label workflow triggers on new issue/PR with title prefix
  • Verify auto-assign workflow assigns creator when issue/PR is opened
  • Confirm all 9 labels are visible in repository settings
  • Verify all 9 issue templates appear in GitHub issue creation
  • Test slash commands recognize new conventions

Human Check

🤖 Generated with Claude Code

  • I reviewed it

이영창(piknow) and others added 2 commits October 11, 2025 17:04
Intent:
Automate the labeling process for issues and pull requests based on their title prefix. This ensures consistent labeling and reduces manual effort in categorizing contributions.

Implementation:
- Created auto-label.yml workflow using actions/github-script@v8
- Automatically detects type prefix in title (feat, fix, docs, config, refactor, agent, test)
- Applies corresponding label when prefix is found
- Triggers on issue/PR open and edit events
- Added documentation comments explaining usage and supported prefixes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Intent:
Automatically assign issues and pull requests to their creator to establish clear ownership and accountability. This streamlines the contribution workflow by eliminating manual assignment.

Implementation:
- Created auto-assign.yml workflow using actions/github-script@v8
- Automatically assigns issue/PR to the creator when opened
- Triggers on issue open and PR open/ready_for_review events
- Includes error handling for assignment failures
- Added documentation comments explaining the workflow purpose

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the config Configuration updates label Oct 11, 2025
이영창(piknow) and others added 3 commits October 11, 2025 19:18
Intent:
Align all issue templates with the new label system to ensure consistency across the repository. Remove obsolete templates and create new ones for each label type.

Implementation:
- Updated existing templates (agent, bug, config, doc) to use correct labels and consistent title format
- Created new templates: feat.md, fix.md, refactor.md, test.md, perf.md
- Removed obsolete templates: component.md, util.md
- Changed all assignees to empty string (removed hardcoded user)
- Standardized title format to "type: " without brackets
- Ensured each label has a corresponding issue template

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Intent:
Extend the auto-label workflow to support additional label types (bug, test, perf) that were created via GitHub CLI. This ensures all label types are automatically applied based on issue/PR title prefixes.

Implementation:
- Updated workflow documentation to include bug:, test:, perf: prefixes
- Modified regex pattern to recognize bug, test, and perf prefixes
- Changed docs to doc for consistency with label naming

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Intent:
Update make-pr and make-branch slash commands to reflect the complete set of commit type conventions used in the project (feat, fix, doc, config, refactor, test, perf).

Implementation:
- Updated make-pr.md to include doc, test, and perf types
- Updated make-branch.md to include doc, test, and perf types
- Changed docs to doc for consistency
- Updated example to use doc instead of docs
- Removed agent and bug from commit conventions (issue-only labels)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@p-iknow p-iknow marked this pull request as ready for review October 11, 2025 10:20
@p-iknow p-iknow added the agent Agent rules and commands label Oct 11, 2025
@p-iknow p-iknow merged commit 7a05038 into main Oct 11, 2025
4 checks passed
@p-iknow p-iknow deleted the i3-config/label-and-auto-assign branch October 11, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Agent rules and commands config Configuration updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

config: label and auto assign

1 participant