Skip to content

Commit

Permalink
App
Browse files Browse the repository at this point in the history
- Include issue's title when  a comment is added
  • Loading branch information
deavmi committed Jul 9, 2023
1 parent 6d1ef81 commit 4799001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void issueHandler(HTTPServerRequest request, HTTPServerResponse response)
string username = userBlock["username"].str();

//TODO: Add IRC error handling
string ircMessage = bold("["~repositoryName~"]")~" "~setForeground(SimpleColor.GREEN)~"New comment"~resetForegroundBackground()~" '"~italics(commentBody)~"' by "~italics(username)~" on issue "~bold("#"~to!(string)(issueID))~" ["~underline(issueURL)~"]";
string ircMessage = bold("["~repositoryName~"]")~" "~setForeground(SimpleColor.GREEN)~"New comment"~resetForegroundBackground()~" '"~italics(commentBody)~"' by "~italics(username)~" on issue "~bold("#"~to!(string)(issueID))~" "~issueTitle~" ["~underline(issueURL)~"]";
ircBot.channelMessage(ircMessage, toChannel);

/* Send message to NTFY server */
Expand Down

0 comments on commit 4799001

Please sign in to comment.