Show correct icon & color for GitHub draft PR

This commit is contained in:
hmacr committed 2025-04-26 00:40:43 +05:30
1 parent e503225f04
commit 1206e2cf77
6 files changed
+26 -43

No files matched your search

+2 -2
View File
@@ -45,10 +45,10 @@ export class GitHubUtils {
return `${this.url}?install_request=true`;
}
public static getColorForStatus(status: string) {
public static getColorForStatus(status: string, isDraftPR: boolean = false) {
switch (status) {
case "open":
return "#238636";
return isDraftPR ? "#848d97" : "#238636";
case "done":
return "#a371f7";
case "closed":