Skip to content

Commit c94200d

Browse files
committed
Uppercase orderBy and direction as well
1 parent 8f1eb1d commit c94200d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/github/issues.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,8 +1467,8 @@ func ListIssues(getGQLClient GetGQLClientFn, t translations.TranslationHelperFun
14671467
"owner": githubv4.String(owner),
14681468
"repo": githubv4.String(repo),
14691469
"states": states,
1470-
"orderBy": githubv4.IssueOrderField(orderBy),
1471-
"direction": githubv4.OrderDirection(direction),
1470+
"orderBy": githubv4.IssueOrderField(strings.ToUpper(orderBy)),
1471+
"direction": githubv4.OrderDirection(strings.ToUpper(direction)),
14721472
"first": githubv4.Int(*paginationParams.First),
14731473
}
14741474

0 commit comments

Comments
 (0)