Repository navigation
Conversation
|
@joshaber should we show a popup letting the user know that they have commits that need to be pushed or a branch that must be publish and allow them to continue? I would prefer this way instead of us automatically doing it. Also, what do you feel is a good short-cut for this? @donokuda do you have any thoughts? |
That's a good point. Maybe a dialog along the lines of: The only thing I'm not sure of at the moment is that I feel like we should have 2 buttons here (in addition to the cancel):
However, I'm not sure if we'll be able to fit 3 buttons nicely in the dialog (especially given how wordy the push commits action is.) For for an unpublished branch we should only have one main action:
|
|
I feel like we should require commits be pushed here. It's a bit opinionated, but I think it's best for most users. Those who are more advanced still have access to the web UI. I will cede my opinion to you on this however. |
👍 Totally fair and alleviates my concern! 😄 |
Create Pull Request menu itemThis reverts commit 290ff82.
|
💯 |
| ) { | ||
| if (selectedState.repository.gitHubRepository) { | ||
| menuStateBuilder.enable('view-repository-on-github') | ||
| menuStateBuilder.enable('create-pull-request') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| <DialogContent> | ||
| <p> | ||
| Your branch must be published before opening a pull request. Would | ||
| you like to publish <b>{this.props.branch.name}</b> and oepn a pull |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| <ButtonGroup> | ||
| <Button type="submit">Cancel</Button> | ||
| <Button onClick={this.push}> | ||
| Publish branch and open pull request |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| <DialogContent> | ||
| <p> | ||
| {`Would you like to push ${numberOfCommits} ${this.createCommitString()} to `} | ||
| <b>{this.props.branch.name}</b> and oepn a pull request? |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| <ButtonGroup> | ||
| <Button type="submit">Cancel</Button> | ||
| <Button onClick={this.push}> | ||
| Push commits and open pull request |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| readonly onDismissed: () => void | ||
| } | ||
|
|
||
| export class PublishBranch extends React.Component<IPublishBranchProps> { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| <DialogFooter> | ||
| <ButtonGroup> | ||
| <Button type="submit">Cancel</Button> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Yeah, I could see that as part of the "saving face" thing. We can roll with it and see how it goes. |
|
@iAmWillShepherd Thanks for putting this together man!!! |
|
@joshaber are we gonna move forward with |
|
💯 |
joshaber
left a comment
There was a problem hiding this comment.
🌂
Just a couple things left.
| * @type {boolean} | ||
| * @memberof IPushBranchCommitsProps | ||
| */ | ||
| readonly publish?: boolean |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| readonly unPushedCommits?: number | ||
| } | ||
|
|
||
| export class PushBranchCommits extends React.Component< |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
💯 |
This PR fixes #2135.
Open PR view on GitHub and attempt to pre-fill as much info as possibleUpdated UI
Menu Item
Unpublished Branch
Branch Ahead