Browse Source

Attempt to fix gitlog

pull/18/head
Abheek D 3 years ago
committed by GitHub
parent
commit
39bc8a56f5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      index.js

6
index.js

@ -442,12 +442,10 @@ async function about(action, interaction) {
interaction.reply({ embeds: [contributorEmbed] }); interaction.reply({ embeds: [contributorEmbed] });
} else if (action === "changelog") { } else if (action === "changelog") {
let parentFolder = __dirname.split("/"); const gitRepoLocation = __dirname;
parentFolder.pop();
parentFolder = parentFolder.join("/");
const commits = gitlog({ const commits = gitlog({
repo: parentFolder, repo: gitRepoLocation,
number: 5, number: 5,
fields: ["hash", "abbrevHash", "subject", "authorName", "authorDateRel"], fields: ["hash", "abbrevHash", "subject", "authorName", "authorDateRel"],
}); });

Loading…
Cancel
Save