This commit is contained in:
Saahil 2024-12-16 23:23:01 -05:00
parent c6b19c943a
commit 4737130f14
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ export function handleGitRequest(body: GitBody, app: App) {
app.client.chat.postMessage({
channel: session.channel,
thread_ts: session.message_ts!,
text: `<https://github.com/NeonGamerBot-QK/${body.repo_name}/commit/${body.commit_id}|${body.commit_id.slice(0, 7)}>`,
text: `\`<https://github.com/NeonGamerBot-QK/${body.repo_name}/commit/${body.commit_id}|${body.commit_id.slice(0, 7)}>\``,
});
}

View file

@ -12,11 +12,11 @@ export default function (app: any) {
console.log(response);
app.client.chat.postMessage({
channel: `D07LBMXD9FF`,
text: `*${commitMessage.trim()}*\`\`\`\n${response.slice(0, 4000)}\`\`\``,
text: `*${commitMessage.trim().split("\n").join("*\n*")}*\`\`\`\n${response.slice(0, 4000)}\`\`\``,
});
app.client.chat.postMessage({
channel: `C07LEEB50KD`,
text: `*${commitMessage.trim()}*\`\`\`\n${response.slice(0, 4000)}\`\`\``,
text: `*${commitMessage.trim().split("\n").join("*\n*")}*\`\`\`\n${response.slice(0, 4000)}\`\`\``,
});
console.debug(commitMessage);