@@ -198,7 +198,7 @@ func IssueStatus(client *Client, repo ghrepo.Interface, currentUsername string)
198198 return & payload , nil
199199}
200200
201- func IssueList (client * Client , repo ghrepo.Interface , state string , labels []string , assigneeString string , limit int , authorString string , mentionedString string ) (* IssuesAndTotalCount , error ) {
201+ func IssueList (client * Client , repo ghrepo.Interface , state string , labels []string , assigneeString string , limit int , authorString string , mentionedString string , milestoneString string ) (* IssuesAndTotalCount , error ) {
202202 var states []string
203203 switch state {
204204 case "open" , "" :
@@ -215,7 +215,7 @@ func IssueList(client *Client, repo ghrepo.Interface, state string, labels []str
215215 query($owner: String!, $repo: String!, $limit: Int, $endCursor: String, $states: [IssueState!] = OPEN, $labels: [String!], $assignee: String, $author: String) {
216216 repository(owner: $owner, name: $repo) {
217217 hasIssuesEnabled
218- issues(first: $limit, after: $endCursor, orderBy: {field: CREATED_AT, direction: DESC}, states: $states, labels: $labels, filterBy: {assignee: $assignee, createdBy: $author, mentioned: $mentioned}) {
218+ issues(first: $limit, after: $endCursor, orderBy: {field: CREATED_AT, direction: DESC}, states: $states, labels: $labels, filterBy: {assignee: $assignee, createdBy: $author, mentioned: $mentioned, milestone: $milestone }) {
219219 totalCount
220220 nodes {
221221 ...issue
@@ -246,6 +246,9 @@ func IssueList(client *Client, repo ghrepo.Interface, state string, labels []str
246246 if mentionedString != "" {
247247 variables ["mentioned" ] = mentionedString
248248 }
249+ if milestoneString != "" {
250+ variables ["milestone" ] = milestoneString
251+ }
249252
250253 var response struct {
251254 Repository struct {
0 commit comments