This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Create pull request #1376
Merged
Merged
Create pull request #1376
Changes from 69 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
2aa2d11
Begin a test for the PrSelectionByBranch component
smashwilson 6fa3d48
Turns out we need more props than that
smashwilson bf0501f
Tests for an unpublished branch
smashwilson 58acc56
Render "create pull request" controls
smashwilson daffe22
Wire up the "search again" link
smashwilson 7bdd34e
Handle published branches with unpushed commits
smashwilson f02b163
Finally, published branches that are up to date
smashwilson 21a1f20
Unused @autobinds
smashwilson c9e3e15
Push to a manually specified Remote
smashwilson 9d7d532
Pass props through the PrInfoController
smashwilson 781d0ea
Pass props through RemotePrController
smashwilson 9ff87da
Implement create PR handler in RemotePrController
smashwilson 3dc74d8
aheadCount is null on branches without a remote tracking branch
smashwilson c1fbe3d
Collect aheadCount and isUnpublished from the repository
smashwilson 0321d5d
Branch pushing action in the GithubTabController
smashwilson 33d6421
Refactor and style New PR
simurai e29783d
Add space after link
simurai dadfc86
Consolidate into a single button
smashwilson 6131c21
Roll onPushBranch into onCreatePr
smashwilson a840f2a
Disable the button while a push is in progress
smashwilson cf3f134
Collect and propagate pushInProgress through components
smashwilson e0ee176
Show a special message on the repository's main branch
smashwilson 6b16dbf
Recompile Relay queries to fetch defaultBranchName
smashwilson 68ceccc
options parameter is... optional
smashwilson 367e1b4
:art: whitespace
smashwilson 694c837
Pass current and upstream Branch props as model objects
smashwilson 3bb1b03
Adjust PrSelectionByBranchContainer tests to use Real Model Objects :tm:
smashwilson 0f0eb7f
isUnpublished prop is redundant now
smashwilson 009f8d8
Retrieve more information from for-each-ref
smashwilson 9340685
Model remote tracking branches
smashwilson 6b96a51
Construct Branch models with more information about tracking refs
smashwilson 8fb40f6
Move getCurrentBranch into Repository
smashwilson 1bf8f9a
Add .getRefSha() backed by git show-ref
smashwilson 5e669a2
Cached .getRefSha() Repository method
smashwilson db21ca4
Pass Branches as model objects
smashwilson c23771a
Remove unused import
smashwilson 9e346a9
Construct Branches with `head` parameter
smashwilson d8c38ce
Track the head SHA of each branch as well
smashwilson 5908277
Model an indexed collection of Branches as a BranchSet
smashwilson ea31ecf
Return a BranchSet from Repository.getBranches()
smashwilson ac133c7
Accessor for Branch names
smashwilson b8b82d0
Expect BranchSets from the other call sites of .getBranches()
smashwilson a29b5ef
Index BranchSet branches by fetch and push remote name as well as ref
smashwilson 8c042a4
Query the BranchSet for our upstream status
smashwilson 58a307f
Return Symbols from non-applicable Branch getters
smashwilson ad778ce
Configure Branch fixture on main
smashwilson f75dccc
Custom message when HEAD matches the repository's default
smashwilson 2ba332e
Null objects :notes:
smashwilson f2c493e
Render a message for a detached HEAD
smashwilson c520d39
Configure BranchSet with a feature branch without an upstream
smashwilson 4410acb
Unit test for a detached HEAD message
smashwilson f775cc1
Unit test for a branch configured to push elsewhere
smashwilson f6a4cb9
Detect when the current branch has been pushed to a different remote
smashwilson b279f83
Missed a call to branches.map()
smashwilson caad5f9
:art: whitespace around `<strong>`
smashwilson f6b72b8
Pass the right props and proptypes
smashwilson de634d5
Patch up GitShellOutStrategy tests
smashwilson eea4cf9
Detached Branches are always the HEAD
smashwilson 90dd4ca
Use the .isDetached() method
smashwilson 17335d6
Missed a space
smashwilson fde667d
Show the new remote you're going to publish the branch
smashwilson 47fcc14
Merge branch 'master' of github.com:atom/github into aw/create-pr
smashwilson dc27e70
Turns out you should update the tests when the code is changed. Who knew
smashwilson 00e998e
:fire: unused getRefSha operation
smashwilson 36ef5de
GraphQL returns a prefix and name for refs
smashwilson 23627c4
prefix includes the /
smashwilson aa8818d
Don't die horribly when there is no defaultRef
smashwilson a2a8a59
Don't die horribly when the repository doesn't exist
smashwilson c808848
Merge branch 'master' into aw/create-pr
smashwilson 2737f67
nullBranch needs getSha() and isHead() methods
smashwilson fad8915
¯\_(ツ)_/¯
smashwilson b01c967
Return '' instead of unique Symbols
smashwilson bb9f4f0
Merge branch 'master' into aw/create-pr
smashwilson File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
lib/containers/__generated__/prSelectionByBranchContainer_repository.graphql.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 31 additions & 2 deletions
33
lib/controllers/__generated__/prInfoControllerByBranchQuery.graphql.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay, thank you for using
PropTypes.shape
!