-
Notifications
You must be signed in to change notification settings - Fork 5
example PR for showcasing comments #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
AI AnalysisPurpose of the changes:Refactor the content.js file to streamline functionality by removing unused regex patterns, counters, and badge helper functions that are no longer necessary.
|
function getBadgeColor(type) { | ||
// Find the label object | ||
const label = LABELS.find(l => l.label === type); | ||
// Return the color if found, otherwise default to gray | ||
return label ? label.color.substring(1) : '6B7280'; // Remove # from hex color for shields.io | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function createBadgeMarkdown(type, decoration) { | ||
// Get the label color (without #) | ||
const labelColor = getBadgeColor(type); | ||
let label = type; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.