-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CodeStream as a PR provider for GitLens
- Loading branch information
Brian Canzanella
committed
Jan 5, 2021
1 parent
b96f70f
commit 236b484
Showing
10 changed files
with
197 additions
and
8 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
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
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,42 @@ | ||
import { Disposable } from "vscode"; | ||
|
||
export { Disposable } from "vscode"; | ||
|
||
export interface CreatePullRequestActionContext { | ||
readonly type: "createPullRequest"; | ||
readonly branch: { | ||
readonly name: string; | ||
readonly remote?: { | ||
readonly name: string; | ||
readonly provider?: string; | ||
readonly url?: string; | ||
}; | ||
readonly repoPath: string; | ||
}; | ||
} | ||
|
||
export interface OpenPullRequestActionContext { | ||
readonly type: "openPullRequest"; | ||
readonly pullRequest: { | ||
readonly id: string; | ||
readonly provider: string; | ||
readonly repoPath: string; | ||
readonly url: string; | ||
}; | ||
} | ||
|
||
export type ActionContext = CreatePullRequestActionContext | OpenPullRequestActionContext; | ||
export type Action<T extends ActionContext> = T["type"]; | ||
|
||
export interface ActionRunner { | ||
readonly label: string; | ||
|
||
run(context: ActionContext): void | Promise<void>; | ||
} | ||
|
||
export interface GitLensApi { | ||
registerActionRunner<T extends ActionContext>( | ||
action: Action<T>, | ||
runner: ActionRunner | ||
): Disposable; | ||
} |
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