Skip to content

PR landing tool#6

Open
JuliaGerasymenko wants to merge 15 commits intomasterfrom
pr-landing-tool
Open

PR landing tool#6
JuliaGerasymenko wants to merge 15 commits intomasterfrom
pr-landing-tool

Conversation

@JuliaGerasymenko
Copy link
Member

No description provided.

Copy link
Member

@SemenchenkoVitaliy SemenchenkoVitaliy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add basic --help option.

@JuliaGerasymenko JuliaGerasymenko force-pushed the pr-landing-tool branch 2 times, most recently from f0c401c to a56cca9 Compare June 13, 2019 15:14
@JuliaGerasymenko JuliaGerasymenko force-pushed the pr-landing-tool branch 2 times, most recently from 20d9106 to 1c4f395 Compare June 14, 2019 13:12
@JuliaGerasymenko JuliaGerasymenko force-pushed the pr-landing-tool branch 5 times, most recently from 5c0e1de to 2ec3867 Compare June 19, 2019 11:04
git = await exec(`git log -${count} --pretty=format:%h`);
} catch (error) {
console.error(error);
process.exit(1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I'd prefer to handle these errors (here and in differCommits, currentBranch, getRepoName) at the calling site to avoid duplicate code (i.e. console.error(error); process.exit(1)).

bin/land.js Outdated
async function getRepoName() {
let git,
name = 'origin';
args.forEach(value => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for (const value of args) {
  if (value.startsWith('--remote-name')) {
    name = value.split('=')[1];
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants