C# Class GitHub.Services.PullRequestService

Inheritance: IPullRequestService
Mostrar archivo Open project: github/VisualStudio Class Usage Examples

Public Methods

Method Description
CalculateHistoryDivergence ( ILocalRepositoryModel repository, int pullRequestNumber ) : IObservable
Checkout ( ILocalRepositoryModel repository, IPullRequestModel pullRequest, string localBranchName ) : IObservable
CreatePullRequest ( IRepositoryHost host, ILocalRepositoryModel sourceRepository, IRepositoryModel targetRepository, IBranch sourceBranch, IBranch targetBranch, string title, string body ) : IObservable
ExtractDiffFiles ( ILocalRepositoryModel repository, IModelService modelService, IPullRequestModel pullRequest, string fileName, string fileSha ) : string>>.IObservable
ExtractDiffFiles ( ILocalRepositoryModel repository, IPullRequestModel pullRequest, string fileName ) : string>>.IObservable
ExtractFile ( ILocalRepositoryModel repository, IModelService modelService, string commitSha, string fileName, string fileSha ) : IObservable
ExtractFile ( ILocalRepositoryModel repository, string commitSha, string fileName ) : IObservable
GetDefaultLocalBranchName ( ILocalRepositoryModel repository, int pullRequestNumber, string pullRequestTitle ) : IObservable
GetLocalBranches ( ILocalRepositoryModel repository, IPullRequestModel pullRequest ) : IObservable
GetPullRequestTemplate ( ILocalRepositoryModel repository ) : IObservable
GetTreeChanges ( ILocalRepositoryModel repository, IPullRequestModel pullRequest ) : IObservable
IsPullRequestFromFork ( ILocalRepositoryModel repository, IPullRequestModel pullRequest ) : bool
IsWorkingDirectoryClean ( ILocalRepositoryModel repository ) : IObservable
Pull ( ILocalRepositoryModel repository ) : IObservable
Push ( ILocalRepositoryModel repository ) : IObservable
RemoteUnusedRemotes ( ILocalRepositoryModel repository ) : IObservable
RemoveUnusedRemotes ( ILocalRepositoryModel repository ) : IObservable
SwitchToBranch ( ILocalRepositoryModel repository, IPullRequestModel pullRequest ) : IObservable
UnmarkLocalBranch ( ILocalRepositoryModel repository ) : IObservable

Private Methods

Method Description
CreateRemote ( IRepository repo, UriString cloneUri ) : Task
CreateUniqueRemoteName ( IRepository repo, string name ) : string
GetFileFromRepositoryOrApi ( ILocalRepositoryModel repository, IRepository repo, IModelService modelService, string commitSha, string fileName, string fileSha ) : Task
GetLocalBranchesInternal ( ILocalRepositoryModel localRepository, IRepository repository, IPullRequestModel pullRequest ) : IEnumerable
GetSafeBranchName ( string name ) : string
PullRequestService ( IGitClient gitClient, IGitService gitService, IOperatingSystem os, IUsageTracker usageTracker ) : System
PushAndCreatePR ( IRepositoryHost host, ILocalRepositoryModel sourceRepository, IRepositoryModel targetRepository, IBranch sourceBranch, IBranch targetBranch, string title, string body ) : Task

Method Details

CalculateHistoryDivergence() public method

public CalculateHistoryDivergence ( ILocalRepositoryModel repository, int pullRequestNumber ) : IObservable
repository ILocalRepositoryModel
pullRequestNumber int
return IObservable

Checkout() public method

public Checkout ( ILocalRepositoryModel repository, IPullRequestModel pullRequest, string localBranchName ) : IObservable
repository ILocalRepositoryModel
pullRequest IPullRequestModel
localBranchName string
return IObservable

CreatePullRequest() public method

public CreatePullRequest ( IRepositoryHost host, ILocalRepositoryModel sourceRepository, IRepositoryModel targetRepository, IBranch sourceBranch, IBranch targetBranch, string title, string body ) : IObservable
host IRepositoryHost
sourceRepository ILocalRepositoryModel
targetRepository IRepositoryModel
sourceBranch IBranch
targetBranch IBranch
title string
body string
return IObservable

ExtractDiffFiles() public method

public ExtractDiffFiles ( ILocalRepositoryModel repository, IModelService modelService, IPullRequestModel pullRequest, string fileName, string fileSha ) : string>>.IObservable
repository ILocalRepositoryModel
modelService IModelService
pullRequest IPullRequestModel
fileName string
fileSha string
return string>>.IObservable

ExtractDiffFiles() public method

public ExtractDiffFiles ( ILocalRepositoryModel repository, IPullRequestModel pullRequest, string fileName ) : string>>.IObservable
repository ILocalRepositoryModel
pullRequest IPullRequestModel
fileName string
return string>>.IObservable

ExtractFile() public method

public ExtractFile ( ILocalRepositoryModel repository, IModelService modelService, string commitSha, string fileName, string fileSha ) : IObservable
repository ILocalRepositoryModel
modelService IModelService
commitSha string
fileName string
fileSha string
return IObservable

ExtractFile() public method

public ExtractFile ( ILocalRepositoryModel repository, string commitSha, string fileName ) : IObservable
repository ILocalRepositoryModel
commitSha string
fileName string
return IObservable

GetDefaultLocalBranchName() public method

public GetDefaultLocalBranchName ( ILocalRepositoryModel repository, int pullRequestNumber, string pullRequestTitle ) : IObservable
repository ILocalRepositoryModel
pullRequestNumber int
pullRequestTitle string
return IObservable

GetLocalBranches() public method

public GetLocalBranches ( ILocalRepositoryModel repository, IPullRequestModel pullRequest ) : IObservable
repository ILocalRepositoryModel
pullRequest IPullRequestModel
return IObservable

GetPullRequestTemplate() public method

public GetPullRequestTemplate ( ILocalRepositoryModel repository ) : IObservable
repository ILocalRepositoryModel
return IObservable

GetTreeChanges() public method

public GetTreeChanges ( ILocalRepositoryModel repository, IPullRequestModel pullRequest ) : IObservable
repository ILocalRepositoryModel
pullRequest IPullRequestModel
return IObservable

IsPullRequestFromFork() public method

public IsPullRequestFromFork ( ILocalRepositoryModel repository, IPullRequestModel pullRequest ) : bool
repository ILocalRepositoryModel
pullRequest IPullRequestModel
return bool

IsWorkingDirectoryClean() public method

public IsWorkingDirectoryClean ( ILocalRepositoryModel repository ) : IObservable
repository ILocalRepositoryModel
return IObservable

Pull() public method

public Pull ( ILocalRepositoryModel repository ) : IObservable
repository ILocalRepositoryModel
return IObservable

Push() public method

public Push ( ILocalRepositoryModel repository ) : IObservable
repository ILocalRepositoryModel
return IObservable

RemoteUnusedRemotes() public method

public RemoteUnusedRemotes ( ILocalRepositoryModel repository ) : IObservable
repository ILocalRepositoryModel
return IObservable

RemoveUnusedRemotes() public method

public RemoveUnusedRemotes ( ILocalRepositoryModel repository ) : IObservable
repository ILocalRepositoryModel
return IObservable

SwitchToBranch() public method

public SwitchToBranch ( ILocalRepositoryModel repository, IPullRequestModel pullRequest ) : IObservable
repository ILocalRepositoryModel
pullRequest IPullRequestModel
return IObservable

UnmarkLocalBranch() public method

public UnmarkLocalBranch ( ILocalRepositoryModel repository ) : IObservable
repository ILocalRepositoryModel
return IObservable