issue #2329: fix the linting issue
This commit is contained in:
parent
4386fcb4e5
commit
1832c1a767
4 changed files with 7 additions and 6 deletions
|
|
@ -88,7 +88,7 @@ func checkoutRun(opts *CheckoutOptions) error {
|
|||
Selector: opts.SelectorArg,
|
||||
Fields: []string{
|
||||
"number",
|
||||
"headRefName",
|
||||
"headRefName",
|
||||
"headRepository",
|
||||
"headRepositoryOwner",
|
||||
"isCrossRepository",
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/cli/cli/v2/pkg/httpmock"
|
||||
)
|
||||
|
||||
func Test_listPullRequests(t *testing.T) {
|
||||
func Test_ListPullRequests(t *testing.T) {
|
||||
type args struct {
|
||||
repo ghrepo.Interface
|
||||
filters prShared.FilterOptions
|
||||
|
|
@ -153,9 +153,9 @@ func Test_listPullRequests(t *testing.T) {
|
|||
}
|
||||
httpClient := &http.Client{Transport: reg}
|
||||
|
||||
_, err := listPullRequests(httpClient, tt.args.repo, tt.args.filters, tt.args.limit)
|
||||
_, err := ListPullRequests(httpClient, tt.args.repo, tt.args.filters, tt.args.limit)
|
||||
if (err != nil) != tt.wantErr {
|
||||
t.Errorf("listPullRequests() error = %v, wantErr %v", err, tt.wantErr)
|
||||
t.Errorf("ListPullRequests() error = %v, wantErr %v", err, tt.wantErr)
|
||||
return
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ func TestPRList_withProjectItems(t *testing.T) {
|
|||
}))
|
||||
|
||||
client := &http.Client{Transport: reg}
|
||||
prsAndTotalCount, err := listPullRequests(
|
||||
prsAndTotalCount, err := ListPullRequests(
|
||||
client,
|
||||
ghrepo.New("OWNER", "REPO"),
|
||||
prShared.FilterOptions{
|
||||
|
|
@ -437,7 +437,7 @@ func TestPRList_Search_withProjectItems(t *testing.T) {
|
|||
}))
|
||||
|
||||
client := &http.Client{Transport: reg}
|
||||
prsAndTotalCount, err := listPullRequests(
|
||||
prsAndTotalCount, err := ListPullRequests(
|
||||
client,
|
||||
ghrepo.New("OWNER", "REPO"),
|
||||
prShared.FilterOptions{
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ type InputType int
|
|||
type Prompter interface {
|
||||
Select(string, string, []string) (int, error)
|
||||
}
|
||||
|
||||
const (
|
||||
InputTypeEditor InputType = iota
|
||||
InputTypeInline
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue