Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Make repository configurable in changelog script #33130

Merged
merged 2 commits into from
Jun 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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