feat(git): add multi-remote push with remote selection and fork-aware PR creation (#365)
* fix: Usage drop down should be scrollable * fix: When there are multiple remotes, provide the user with an option of which branch to push to * feat(gitview): add remote-push selection and auto checkout on create * feat: enable selecting remote when creating PR * fix: show PR icon in create button when not creating * fix(pullrequest): drop remote picker and use explicit remote * feat: add remote selection for PR status and creation * fix: improve PR creation with selected remote and fork head * chore(ui): simplify PR remote link UI * fix(web): handle cross-repo PRs and branch validation * feat: add remote selection for commit and push * feat(git): delegate PR head source resolution to server * chore(web): remove noisy PR creation logs
This commit is contained in:
@@ -701,6 +701,10 @@ export type GitHubPullRequestCreateInput = {
|
||||
base: string;
|
||||
body?: string;
|
||||
draft?: boolean;
|
||||
/** Remote to create the PR against (target repo, e.g., 'upstream' for forks) */
|
||||
remote?: string;
|
||||
/** Remote where the head branch lives (source repo, e.g., 'origin' for forks) */
|
||||
headRemote?: string;
|
||||
};
|
||||
|
||||
export type GitHubPullRequestUpdateInput = {
|
||||
@@ -816,7 +820,7 @@ export interface GitHubAPI {
|
||||
authActivate(accountId: string): Promise<GitHubAuthStatus>;
|
||||
me?(): Promise<GitHubUserSummary>;
|
||||
|
||||
prStatus(directory: string, branch: string): Promise<GitHubPullRequestStatus>;
|
||||
prStatus(directory: string, branch: string, remote?: string): Promise<GitHubPullRequestStatus>;
|
||||
prCreate(payload: GitHubPullRequestCreateInput): Promise<GitHubPullRequest>;
|
||||
prUpdate(payload: GitHubPullRequestUpdateInput): Promise<GitHubPullRequest>;
|
||||
prMerge(payload: GitHubPullRequestMergeInput): Promise<GitHubPullRequestMergeResult>;
|
||||
|
||||
Reference in New Issue
Block a user