enhancement(lint): Fix lint errors for src/modules/watch-git.ts

Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
zeon-neon[bot] 2024-09-25 19:11:24 +00:00 committed by GitHub
parent d368c8bcc5
commit 30598ca0ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@ export default function (app: any) {
if (!error) {
if (!response?.includes("Already up to date.")) {
const commitMessage = require("child_process")
.execSync("git log -1 --pretty=%B")
.execSync("git log -1 --pretty=%B")
.toString();
console.log(`New git stuff wowie`);
console.log(response);
@ -14,14 +14,14 @@ export default function (app: any) {
channel: `D07LBMXD9FF`,
text: `**${commitMessage}**\`\`\`\n${response.slice(0, 4000)}\`\`\``,
});
console.debug(commitMessage)
if (commitMessage.startsWith('feat')) {
console.debug(commitMessage);
if (commitMessage.startsWith("feat")) {
app.client.chat.postMessage({
channel: `C0P5NE354`,
text: `\`\`\`\n${response.slice(0, 4000)}\`\`\``,
});
}
}
setTimeout(() => {
process.exit();
}, 1000);