Skip to content

Commit

Permalink
Adding Jira Closed state support (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-tatu authored Dec 4, 2024
1 parent ee4cffc commit 924976f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function processThreadMessagesForGratitude(client, event) {
if (await hasCheckmarkReaction({ client, channel: event.channel, timestamp: event.thread_ts })) return;

const text = event.text.toLowerCase();
if (text === "solved" || text.endsWith(" has been updated to `done`.")) {
if (text === "solved" || text.endsWith(" has been updated to `done`.") || text.endsWith(" has been updated to `closed`.")) {
await addCheckmarkReaction({ client, channel: event.channel, timestamp: event.thread_ts });
} else if (/thank|^ty|solved/.test(text)) {
const reminderMessage = "Mark this thread as solved by clicking the button or replying `solved`.";
Expand Down

0 comments on commit 924976f

Please sign in to comment.