@@ -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 ) (* IssuesAndTotalCount , error ) {
201+ func IssueList (client * Client , repo ghrepo.Interface , state string , labels []string , assigneeString string , limit int , authorString string , mentionString string , milestoneString string ) (* IssuesAndTotalCount , error ) {
202202 var states []string
203203 switch state {
204204 case "open" , "" :
@@ -212,10 +212,10 @@ func IssueList(client *Client, repo ghrepo.Interface, state string, labels []str
212212 }
213213
214214 query := fragments + `
215- query($owner: String!, $repo: String!, $limit: Int, $endCursor: String, $states: [IssueState!] = OPEN, $labels: [String!], $assignee: String, $author: String) {
215+ query($owner: String!, $repo: String!, $limit: Int, $endCursor: String, $states: [IssueState!] = OPEN, $labels: [String!], $assignee: String, $author: String, $mention: String, $milestone: 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}) {
218+ issues(first: $limit, after: $endCursor, orderBy: {field: CREATED_AT, direction: DESC}, states: $states, labels: $labels, filterBy: {assignee: $assignee, createdBy: $author, mentioned: $mention, milestone: $milestone }) {
219219 totalCount
220220 nodes {
221221 ...issue
@@ -243,6 +243,12 @@ func IssueList(client *Client, repo ghrepo.Interface, state string, labels []str
243243 if authorString != "" {
244244 variables ["author" ] = authorString
245245 }
246+ if mentionString != "" {
247+ variables ["mention" ] = mentionString
248+ }
249+ if milestoneString != "" {
250+ variables ["milestone" ] = milestoneString
251+ }
246252
247253 var response struct {
248254 Repository struct {
0 commit comments