mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix: git
This commit is contained in:
parent
c6b19c943a
commit
4737130f14
2 changed files with 3 additions and 3 deletions
|
|
@ -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)}>\``,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue