Skip to content

Commit

Permalink
Fix repo reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla authored Nov 6, 2024
1 parent d7b5ade commit 68207f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generate_changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require("path");
const { stderr } = require("process");

async function main() {
const repo = process.argv[2];
const repoName = process.argv[2];
const commitFrom = process.argv[3];
const commitTo = process.argv[4];

Expand Down Expand Up @@ -66,7 +66,7 @@ async function main() {

var generatedMarkdown = "# Changelog\n\n";

generatedMarkdown += `Commit range: [${commitFrom}..${commitTo}](https://github.com/${repo}/compare/${commitFrom}...${commitTo})\n\n`;
generatedMarkdown += `Commit range: [${commitFrom}..${commitTo}](https://github.com/${repoName}/compare/${commitFrom}...${commitTo})\n\n`;

for (let change of graph) {
if (change.type == "merge") {
Expand All @@ -90,7 +90,7 @@ async function main() {

function formatCommit(change, isChild) {
let replaceWithSpaces = isChild ? "\n " : "\n ";
const linkSha = `[${change.sha.slice(0, 8)}](https://github.com/${repo}/commit/${change.sha})`
const linkSha = `[${change.sha.slice(0, 8)}](https://github.com/${repoName}/commit/${change.sha})`
return "- " + linkSha + " " + change.message.trim().split("\n").join(replaceWithSpaces) + "\n";
}

Expand Down

0 comments on commit 68207f3

Please sign in to comment.