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

PR landing tool #6

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

PR landing tool #6

wants to merge 15 commits into from

Conversation

JuliaGerasymenko
Copy link
Member

No description provided.

bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
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.

bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
@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
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
@JuliaGerasymenko JuliaGerasymenko force-pushed the pr-landing-tool branch 5 times, most recently from 5c0e1de to 2ec3867 Compare June 19, 2019 11:04
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
bin/land.js Show resolved Hide resolved
bin/land.js Show resolved Hide resolved
bin/land.js Show resolved Hide resolved
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 Show resolved Hide resolved
bin/land.js Show resolved Hide resolved
bin/land.js Outdated Show resolved Hide resolved
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