mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Stick the issue number in earlier
This commit is contained in:
parent
68028680a4
commit
0f04c668e5
@ -20,11 +20,11 @@ export class NotificationProcessor {
|
||||
private static formatNotification(notif: UserNotification, diff: IssueDiff|null, newComment: boolean) {
|
||||
let plain = `${this.getEmojiForNotifType(notif)} [${notif.subject.title}](${notif.subject.url_data.html_url})`;
|
||||
const issueNumber = notif.subject.url_data?.number;
|
||||
if (issueNumber) {
|
||||
plain += ` #${issueNumber}`;
|
||||
}
|
||||
if (notif.repository) {
|
||||
plain += ` for **[${notif.repository.full_name}](${notif.repository.html_url})`;
|
||||
if (issueNumber) {
|
||||
plain += `#${issueNumber}`;
|
||||
}
|
||||
}
|
||||
if (diff) {
|
||||
if (diff.state) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user