Skip to content

git-node: message to do rebase/am before final - #286

Merged
priyank-p merged 2 commits into
nodejs:masterfrom
trivikr:not-ready-to-final-msg
Oct 5, 2018
Merged

priyank-p merged 2 commits into
nodejs:masterfrom
trivikr:not-ready-to-final-msg

Conversation

@trivikr

@trivikr trivikr commented Oct 3, 2018

Copy link
Copy Markdown
Member

The command final fails if am/rebase is in progress:

readyToFinal() {
if (this.amInProgress()) {
return false; // git am/rebase in progress
}
return this.session.state === AMENDING;
}

This PR adds a message to inform the user to complete exiting am/rebase before running final

@codecov

codecov Bot commented Oct 3, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #286 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #286   +/-   ##
=======================================
  Coverage   74.03%   74.03%           
=======================================
  Files          22       22           
  Lines        1406     1406           
=======================================
  Hits         1041     1041           
  Misses        365      365

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c848152...408ed19. Read the comment docs.

Comment thread lib/landing_session.js Outdated
if (!this.readyToFinal()) { // check git rebase/am has been done
cli.warn('Not yet ready to final');
cli.log('A git rebase/am is in progress.' +
' Please complete it before running final');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/running final/running git node land --final/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Changed in 408ed19

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants