mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
issueID function
combines project blob and issue number to create a clear issue identifier
This commit is contained in:
@@ -4,3 +4,7 @@ import { twMerge } from "tailwind-merge";
|
|||||||
export function cn(...inputs: ClassValue[]) {
|
export function cn(...inputs: ClassValue[]) {
|
||||||
return twMerge(clsx(inputs));
|
return twMerge(clsx(inputs));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function issueID(blob: string, num: number) {
|
||||||
|
return `${blob}-${num.toString().padStart(3, "0")}`;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user