Skip to content

Commit

Permalink
[core] Make repository configurable in changelog script (#33130)
Browse files Browse the repository at this point in the history
Make repo configurable in changelog script
  • Loading branch information
Janpot committed Jun 13, 2022
1 parent 91905ce commit 01f656b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/releaseChangelog.js
Expand Up @@ -54,7 +54,7 @@ async function findLatestTaggedVersion() {
}

async function main(argv) {
const { githubToken, lastRelease: lastReleaseInput, release } = argv;
const { githubToken, lastRelease: lastReleaseInput, release, repo } = argv;

if (!githubToken) {
throw new TypeError(
Expand All @@ -79,7 +79,7 @@ async function main(argv) {
const timeline = octokit.paginate.iterator(
octokit.repos.compareCommits.endpoint.merge({
owner: 'mui',
repo: 'material-ui',
repo,
base: lastRelease,
head: release,
}),
Expand Down Expand Up @@ -178,6 +178,11 @@ yargs
default: 'master',
describe: 'Ref which we want to release',
type: 'string',
})
.option('repo', {
default: 'material-ui',
describe: 'Repository to generate a changelog for',
type: 'string',
});
},
handler: main,
Expand Down

0 comments on commit 01f656b

Please sign in to comment.