fix(servers): put correct url in embed title

This commit is contained in:
matt1432 2023-12-24 16:28:26 -05:00
parent 594a9fd715
commit ba42cfa88a
2 changed files with 6 additions and 7 deletions
common/pkgs/discommit

View file

@ -15,13 +15,13 @@ const commit = JSON.stringify({
embeds: [{
title: 'New commit containing changes to server configs:',
description: commitInfo.commit.message,
url: commitInfo.url,
url: commitInfo.html_url,
author: {
name: commitInfo.author.username,
icon_url: commitInfo.author.avatar_url,
},
}],
// Diff: await (await fetch(`${last['url']}.diff`)).text()
// Diff: await (await fetch(`${commitInfo.url}.diff`)).text()
});
const post = await fetch(`${DATA.webhook}?wait=true`, {