config: add label and auto-assign workflows#4
Merged
Conversation
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
.github/workflows/auto-label.ymlusingactions/github-script@v8Auto-Assign Workflow:
.github/workflows/auto-assign.ymlusingactions/github-script@v8Issue Templates:
Slash Commands:
.claude/commands/make-pr.mdto include all commit type conventions.claude/commands/make-branch.mdto include all commit type conventionsTest
Human Check
🤖 Generated with Claude Code