In issue comments, put issue participants also in completion list when hitting @ (#12433)

Previous behaviour was only to have completion for project members
This commit is contained in:
Andreas Shimokawa 2020-08-06 01:18:21 +02:00 committed by GitHub
parent 28a7708d69
commit e5c5080f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,12 +78,16 @@
EventSourceUpdateTime: {{NotificationSettings.EventSourceUpdateTime}}, EventSourceUpdateTime: {{NotificationSettings.EventSourceUpdateTime}},
}, },
{{if .RequireTribute}} {{if .RequireTribute}}
tributeValues: [ tributeValues: Array.from(new Map([
{{ range .Assignees }} {{ range .Participants }}
{key: '{{.Name}} {{.FullName}}', value: '{{.Name}}', ['{{.Name}}', {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}',
name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'}, name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'}],
{{ end }} {{ end }}
], {{ range .Assignees }}
['{{.Name}}', {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}',
name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'}],
{{ end }}
]).values()),
{{end}} {{end}}
}; };
</script> </script>