Skip to content

Commit e5c5080

Browse files
authored
In issue comments, put issue participants also in completion list when hitting @ (#12433)
Previous behaviour was only to have completion for project members
1 parent 28a7708 commit e5c5080

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

templates/base/head.tmpl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,16 @@
7878
EventSourceUpdateTime: {{NotificationSettings.EventSourceUpdateTime}},
7979
},
8080
{{if .RequireTribute}}
81-
tributeValues: [
81+
tributeValues: Array.from(new Map([
82+
{{ range .Participants }}
83+
['{{.Name}}', {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}',
84+
name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'}],
85+
{{ end }}
8286
{{ range .Assignees }}
83-
{key: '{{.Name}} {{.FullName}}', value: '{{.Name}}',
84-
name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'},
87+
['{{.Name}}', {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}',
88+
name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'}],
8589
{{ end }}
86-
],
90+
]).values()),
8791
{{end}}
8892
};
8993
</script>

0 commit comments

Comments
 (0)