Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/development'
- Loading branch information
Showing
150 changed files
with
7,535 additions
and
5,110 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
runtime = electron | ||
disturl = https://atom.io/download/electron | ||
target = 5.0.6 | ||
target = 7.1.8 | ||
arch = x64 |
Large diffs are not rendered by default.
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Branch, BranchType } from '../models/branch' | ||
import { UpstreamRemoteName } from './stores' | ||
|
||
/** | ||
* Finds the remote branch for a branch in the upstream repository | ||
* | ||
* For example: | ||
* If official/funnel has the branch `development`, then running | ||
* this on the branches from the fork outofambit/funnel with | ||
* `development` as the specified branch name will find the | ||
* branch `remotes/upstream/development` | ||
* | ||
* @param branchName short name of the branch in the upstream repo | ||
* @param branches all the branches in the local repo | ||
*/ | ||
export function findUpstreamRemoteBranch( | ||
branchName: string, | ||
branches: ReadonlyArray<Branch> | ||
) { | ||
return branches.find( | ||
b => | ||
b.type === BranchType.Remote && | ||
b.name === `${UpstreamRemoteName}/${branchName}` | ||
) | ||
} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as URL from 'url' | ||
import { Account } from '../models/account' | ||
import { getDotComAPIEndpoint } from './api' | ||
|
||
/** | ||
* Generate a human-friendly description of the Account endpoint. | ||
* | ||
* Accounts on GitHub.com will return the string 'GitHub.com' | ||
* whereas GitHub Enterprise Server accounts will return the | ||
* hostname without the protocol and/or path. | ||
*/ | ||
export function friendlyEndpointName(account: Account) { | ||
return account.endpoint === getDotComAPIEndpoint() | ||
? 'GitHub.com' | ||
: URL.parse(account.endpoint).hostname || account.endpoint | ||
} |
Oops, something went wrong.