Skip to content

Commit

Permalink
Fix repo reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla authored and github-actions[bot] committed Dec 1, 2024
1 parent d7b5ade commit a6e284e
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 a6e284e

Please sign in to comment.