Skip to content

Commit 98aed7a

Browse files
committed
add comment
1 parent a6d877d commit 98aed7a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

templates/shared/issueicon.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{/* the logic should be kept the same as getIssueIcon/getIssueColor in JS code */}}
12
{{- if .IsPull -}}
23
{{- if not .PullRequest -}}
34
No PullRequest

web_src/js/features/issue.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type {Issue} from '../types.ts';
22

3+
// the getIssueIcon/getIssueColor logic should be kept the same as "templates/shared/issueicon.tmpl"
4+
35
export function getIssueIcon(issue: Issue) {
46
if (issue.pull_request) {
57
if (issue.state === 'open') {

0 commit comments

Comments
 (0)