We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6d877d commit 98aed7aCopy full SHA for 98aed7a
templates/shared/issueicon.tmpl
@@ -1,3 +1,4 @@
1
+{{/* the logic should be kept the same as getIssueIcon/getIssueColor in JS code */}}
2
{{- if .IsPull -}}
3
{{- if not .PullRequest -}}
4
No PullRequest
web_src/js/features/issue.ts
@@ -1,5 +1,7 @@
import type {Issue} from '../types.ts';
+// the getIssueIcon/getIssueColor logic should be kept the same as "templates/shared/issueicon.tmpl"
+
5
export function getIssueIcon(issue: Issue) {
6
if (issue.pull_request) {
7
if (issue.state === 'open') {
0 commit comments