Skip to content

Commit 7b0d45c

Browse files
committed
feat: add message priority
1 parent 49f7456 commit 7b0d45c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/github.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ async function main() {
7373
channel: channel,
7474
text: "COSCUP 今天會議提醒:", // Add the requested prefix
7575
attachments: eventAttachments,
76+
priority: {
77+
priority: 'important',
78+
},
7679
};
7780

7881
await mattermostClient.sendMessage(combinedMessage);

src/utils/mattermost.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export interface MattermostMessage {
66
attachments?: MattermostAttachment[]; // Add attachments property
77
username?: string; // Keep other potential fields optional
88
icon_url?: string;
9+
priority?: {
10+
priority: 'important' | 'urgent';
11+
};
912
}
1013

1114
export class MattermostClient {

0 commit comments

Comments
 (0)