kimseungbin / tag-and-release

A GitHub repository demonstrating automated releases using semantic versioning and a custom JavaScript GitHub Action. This project automates the tagging and release process, ensuring consistent version control and streamlined workflows.
BSD Zero Clause License
0 stars 0 forks source link

feat: Add label-config.ts for label configurations #6

Closed coderabbitai[bot] closed 18 hours ago

coderabbitai[bot] commented 1 day ago

As discussed in PR #4, we should consider moving label configurations to a separate file (e.g., label-config.ts) for better maintainability and flexibility. This would allow for:

Refer to the comment here for more details.

kimseungbin commented 1 day ago

@coderabbitai Provide layout of the new file.

coderabbitai[bot] commented 1 day ago

[!TIP] For best results, initiate chat on the files or code changes.

@kimseungbin Here is a proposed layout for label-config.ts:

// label-config.ts

// Define an interface for the label configuration
export interface LabelConfig {
  name: string;
  color: string;
  description?: string;
}

// Export an array of label configurations
export const labelConfigs: LabelConfig[] = [
  {
    name: 'bug',
    color: '#d73a4a',
    description: 'An unexpected problem or unintended behavior',
  },
  {
    name: 'documentation',
    color: '#0075ca',
    description: 'Improvements or additions to documentation',
  },
  {
    name: 'enhancement',
    color: '#a2eeef',
    description: 'New feature or request',
  },
  // Add more label configurations as needed
];

This layout includes:

This structure allows for:

Let me know if you need any adjustments or additional features included in this layout.