diff --git a/commonhaus-bot/src/main/java/org/commonhaus/automation/github/actions/EmailAction.java b/commonhaus-bot/src/main/java/org/commonhaus/automation/github/actions/EmailAction.java index f50e522..e2725a8 100644 --- a/commonhaus-bot/src/main/java/org/commonhaus/automation/github/actions/EmailAction.java +++ b/commonhaus-bot/src/main/java/org/commonhaus/automation/github/actions/EmailAction.java @@ -74,9 +74,9 @@ public void apply(EventQueryContext qc) { ? payload.pullRequest : payload.issue; - title = String.format("%s%s#%s %s", + title = String.format("%s[%s] #%s %s", status, - payload.issue == null ? "PR " : "", + eventData.getRepoSlug(), item.number, item.title); yield Templates.itemEvent(title, @@ -91,9 +91,8 @@ public void apply(EventQueryContext qc) { : payload.issue; DataCommonComment comment = payload.comment; - title = String.format("← %s - %s#%s %s", - comment.author.login, - payload.issue == null ? "PR " : "", + title = String.format("Re: [%s] #%s %s", + eventData.getRepoSlug(), item.number, item.title); yield Templates.commentEvent(title, @@ -106,8 +105,9 @@ public void apply(EventQueryContext qc) { EventPayload.DiscussionPayload payload = eventData.getEventPayload(); DataDiscussion discussion = payload.discussion; - title = String.format("%s#%s %s", + title = String.format("%s[%s] #%s %s", status, + eventData.getRepoSlug(), discussion.number, discussion.title); yield Templates.itemEvent(title, @@ -120,8 +120,9 @@ public void apply(EventQueryContext qc) { DataDiscussion discussion = payload.discussion; DataDiscussionComment comment = payload.comment; - title = String.format("↵ %s - #%s %s", - comment.author.login, discussion.number, discussion.title); + title = String.format("Re: [%s] #%s %s", + eventData.getRepoSlug(), + discussion.number, discussion.title); yield Templates.commentEvent(title, toHtmlBody(comment.body), diff --git a/commonhaus-bot/src/main/resources/templates/EmailAction/commentEvent.html b/commonhaus-bot/src/main/resources/templates/EmailAction/commentEvent.html index 28575bc..3d21018 100644 --- a/commonhaus-bot/src/main/resources/templates/EmailAction/commentEvent.html +++ b/commonhaus-bot/src/main/resources/templates/EmailAction/commentEvent.html @@ -1,5 +1,4 @@ {#include includes/base} -{#repoSlug}{repoSlug}{/repoSlug} {#ghUrl}{comment.url}{/ghUrl} {#authorLogin}{comment.author.login}{/authorLogin} {#authorUrl}{comment.author.url}{/authorUrl} diff --git a/commonhaus-bot/src/main/resources/templates/EmailAction/commentEvent.txt b/commonhaus-bot/src/main/resources/templates/EmailAction/commentEvent.txt index fdaf844..bcfda8c 100644 --- a/commonhaus-bot/src/main/resources/templates/EmailAction/commentEvent.txt +++ b/commonhaus-bot/src/main/resources/templates/EmailAction/commentEvent.txt @@ -1,5 +1,4 @@ {#include includes/baseText} -{#repoSlug}{repoSlug}{/repoSlug} {#dateTime}- comment [2] created by {comment.author.login} [3] on {comment.createdAt} {/dateTime} diff --git a/commonhaus-bot/src/main/resources/templates/EmailAction/itemEvent.html b/commonhaus-bot/src/main/resources/templates/EmailAction/itemEvent.html index f62d554..3053b49 100644 --- a/commonhaus-bot/src/main/resources/templates/EmailAction/itemEvent.html +++ b/commonhaus-bot/src/main/resources/templates/EmailAction/itemEvent.html @@ -1,5 +1,4 @@ {#include includes/base} -{#repoSlug}{repoSlug}{/repoSlug} {#ghUrl}{item.url}{/ghUrl} {#authorLogin}{item.author.login}{/authorLogin} {#authorUrl}{item.author.url}{/authorUrl} diff --git a/commonhaus-bot/src/main/resources/templates/EmailAction/itemEvent.txt b/commonhaus-bot/src/main/resources/templates/EmailAction/itemEvent.txt index 067872d..7fafd0f 100644 --- a/commonhaus-bot/src/main/resources/templates/EmailAction/itemEvent.txt +++ b/commonhaus-bot/src/main/resources/templates/EmailAction/itemEvent.txt @@ -1,5 +1,4 @@ {#include includes/baseText} -{#repoSlug}{repoSlug}{/repoSlug} {#ghUrl} [1]: {item.url} {/ghUrl} diff --git a/commonhaus-bot/src/main/resources/templates/includes/base.html b/commonhaus-bot/src/main/resources/templates/includes/base.html index 263e2f2..8eb0b64 100644 --- a/commonhaus-bot/src/main/resources/templates/includes/base.html +++ b/commonhaus-bot/src/main/resources/templates/includes/base.html @@ -33,7 +33,6 @@