Skip to content

Commit

Permalink
feat: format reason label
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Dec 8, 2024
1 parent 34cdc0f commit c303d49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/home/rendering/render-github-issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ function parseAndGenerateLabels(notification: GitHubAggregated) {

// Add reason label
if (notification.notification.reason) {
labels.push(`<label class="reason">${notification.notification.reason}</label>`);
const reason = notification.notification.reason.replace(/_/g, " ");
labels.push(`<label class="reason">${reason}</label>`);
}

// Add timestamp label
Expand Down

0 comments on commit c303d49

Please sign in to comment.