( notification: GitifyNotification, )
| 239 | * Fetch GitHub Issue by Issue Number. |
| 240 | */ |
| 241 | export async function fetchIssueByNumber( |
| 242 | notification: GitifyNotification, |
| 243 | ): Promise<FetchIssueByNumberQuery> { |
| 244 | const number = getNumberFromUrl(notification.subject.url!); |
| 245 | |
| 246 | return performGraphQLRequest( |
| 247 | notification.account, |
| 248 | FetchIssueByNumberDocument, |
| 249 | { |
| 250 | owner: notification.repository.owner.login, |
| 251 | name: notification.repository.name, |
| 252 | number: number, |
| 253 | firstLabels: Constants.GRAPHQL_ARGS.FIRST_LABELS, |
| 254 | lastComments: Constants.GRAPHQL_ARGS.LAST_COMMENTS, |
| 255 | }, |
| 256 | ); |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * Fetch GitHub Pull Request by PR Number. |
no test coverage detected