You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -189,9 +123,13 @@ export async function handleProjectStatusChange(
189
123
consttitle=content?.title||'未知標題';
190
124
consturl=content?.url||'';
191
125
126
+
conststatusChangeText=oldStatus==='未知狀態'
127
+
? `status set to ${newEmoji}${newStatus}`
128
+
: `status changed from ${oldEmoji}${oldStatus} to ${newEmoji}${newStatus}`;
129
+
192
130
constmessage: MattermostMessage={
193
131
channel,
194
-
text: `Issue [${title}](${url}) status changed from ${oldEmoji}${oldStatus} to ${newEmoji}${newStatus} by [${typedPayload.sender.login}](${typedPayload.sender.html_url}) \n`
132
+
text: `Issue [${title}](${url}) ${statusChangeText} by [${typedPayload.sender.login}](${typedPayload.sender.html_url}) \n`
0 commit comments