Skip to content

Add merge CTA button to banner (NDDB) - #5077

Merged
shiftkey merged 23 commits into
masterfrom
then-i-wanna-merge
Jul 5, 2018
Merged

shiftkey merged 23 commits into
masterfrom
then-i-wanna-merge

Conversation

@iAmWillShepherd

@iAmWillShepherd iAmWillShepherd commented Jul 2, 2018 •

Copy link
Copy Markdown
Contributor

⚠️ I am using i-wanna-compare as the base branch to keep the diff small ⚠️

Fixes #4809

  • Add Merge button
  • Wire-up button so that clicking it initiates a merge
  • Update merge component to accept branch to merge
  • Update Popup.MergeBranch state to include branch to merge
  • Track how often a merge is initiated from the banner
  • Test to make sure Merge component still works as expected
  • Make it look pretty - PR

2018-07-02 11 01 02

@iAmWillShepherd
iAmWillShepherd changed the base branch from master to i-wanna-compare July 2, 2018 15:35
@shiftkey
shiftkey changed the base branch from i-wanna-compare to master July 3, 2018 19:01
@shiftkey shiftkey self-assigned this Jul 3, 2018
Comment thread app/src/ui/merge-branch/merge.tsx Outdated
*/
readonly recentBranches: ReadonlyArray<Branch>

readonly preselectedBranch?: Branch

This comment was marked as spam.

@iAmWillShepherd iAmWillShepherd added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jul 3, 2018
Comment thread app/src/ui/merge-branch/merge.tsx Outdated
/**
* The branch to select when the merge dialog is opened
*/
readonly preselectedBranch?: Branch

This comment was marked as spam.

Comment thread app/src/ui/merge-branch/merge.tsx Outdated

const currentBranch = props.currentBranch
const defaultBranch = props.defaultBranch
// use the preselected branch otherwise use the default branch if it's not currently checked out

This comment was marked as spam.

@searsinvestmentsinc searsinvestmentsinc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

no changes to master if so james edmond smith team leader head coach.

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

🔢

@shiftkey shiftkey left a comment

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.

Very close!

Comment thread app/src/ui/merge-branch/merge.tsx Outdated
this.props.dispatcher.closePopup()
}

private initialBranch() {

This comment was marked as spam.

This comment was marked as spam.

Comment thread app/src/ui/merge-branch/merge.tsx Outdated
private resolveSelectedBranch() {
const { currentBranch, defaultBranch, initialBranch } = this.props

// use the initial branch otherwise use the default branch if it's not currently checked out

This comment was marked as spam.

@shiftkey
shiftkey merged commit 1b54751 into master Jul 5, 2018
@shiftkey
shiftkey deleted the then-i-wanna-merge branch July 5, 2018 21:31
@lock lock Bot locked as resolved and limited conversation to collaborators Sep 3, 2018
@desktop desktop unlocked this conversation Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants