MCPcopy
hub / github.com/gitify-app/gitify / fetchIssueByNumber

Function fetchIssueByNumber

src/renderer/utils/api/client.ts:241–257  ·  view source on GitHub ↗
(
  notification: GitifyNotification,
)

Source from the content-addressed store, hash-verified

239 * Fetch GitHub Issue by Issue Number.
240 */
241export 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.

Callers 2

enrichMethod · 0.90
client.test.tsFile · 0.90

Calls 2

getNumberFromUrlFunction · 0.90
performGraphQLRequestFunction · 0.90

Tested by

no test coverage detected