Remove branch examples referencing master. (#1694)

This commit is contained in:
Markus Thömmes 2020-09-09 19:45:50 +02:00 committed by GitHub
parent 34829c0aee
commit 69fcf75ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -209,7 +209,7 @@ func (fgc *FakeGithubClient) RemoveLabelForIssue(org, repo string, issueNumber i
}
// ListPullRequests lists pull requests within given repo, filters by head user and branch name if
// provided as "user:ref-name", and by base name if provided, i.e. "master"
// provided as "user:ref-name", and by base name if provided, i.e. "release-0.19"
func (fgc *FakeGithubClient) ListPullRequests(org, repo, head, base string) ([]*github.PullRequest, error) {
var res []*github.PullRequest
PRs, ok := fgc.PullRequests[repo]
@ -296,7 +296,7 @@ func (fgc *FakeGithubClient) EditPullRequest(org, repo string, ID int, title, bo
return PR, nil
}
// CreatePullRequest creates PullRequest, passing head user and branch name "user:ref-name", and base branch name like "master"
// CreatePullRequest creates PullRequest, passing head user and branch name "user:ref-name", and base branch name like "release-0.19"
func (fgc *FakeGithubClient) CreatePullRequest(org, repo, head, base, title, body string) (*github.PullRequest, error) {
PRNumber := fgc.getNextNumber()
stateStr := string(ghutil.PullRequestOpenState)

View File

@ -37,7 +37,7 @@ const (
type PullRequestState string
// ListPullRequests lists pull requests within given repo, filters by head user and branch name if
// provided as "user:ref-name", and by base name if provided, i.e. "master"
// provided as "user:ref-name", and by base name if provided, i.e. "release-0.19"
func (gc *GithubClient) ListPullRequests(org, repo, head, base string) ([]*github.PullRequest, error) {
PRsListOptions := github.PullRequestListOptions{
State: string(PullRequestAllState),
@ -184,7 +184,7 @@ func (gc *GithubClient) EditPullRequest(org, repo string, ID int, title, body st
return res, err
}
// CreatePullRequest creates PullRequest, passing head user and branch name "user:ref-name", and base branch name like "master"
// CreatePullRequest creates PullRequest, passing head user and branch name "user:ref-name", and base branch name like "release-0.19"
func (gc *GithubClient) CreatePullRequest(org, repo, head, base, title, body string) (*github.PullRequest, error) {
b := true
PR := &github.NewPullRequest{