Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
refactor(repo): set typescript interface properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Garant committed Oct 2, 2019
1 parent e5cbcaf commit 367cb62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmds/repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,13 @@ function deleteLabel(options, user): Promise<Octokit.Response<Octokit.IssuesDele
* If user has a custom git_host defined we will use that (helpful for custom ssh rules).
* Otherwise pluck it from the previously set up github_host.
*/
interface ICloneOptions {
interface CloneOptions {
repo: string
user: string
protocol?: string
github_host?: string
}
type GetCloneUrl = (ICloneOptions, customSshHost?: string) => string
type GetCloneUrl = (options: CloneOptions, customSshHost?: string) => string
export const getCloneUrl: GetCloneUrl = ({ repo, user, protocol, github_host }, customSshHost) => {
const hostWithoutProtocol = github_host.split('://')[1]
let repoUrl = `git@${customSshHost || hostWithoutProtocol}:${user}/${repo}.git`
Expand Down

0 comments on commit 367cb62

Please sign in to comment.