MCPcopy Create free account
hub / github.com/firebase/firebase-tools / listNotes

Function listNotes

src/crashlytics/notes.ts:67–84  ·  view source on GitHub ↗
(appId: string, issueId: string, pageSize = 20)

Source from the content-addressed store, hash-verified

65 * @return A list of notes
66 */
67export async function listNotes(appId: string, issueId: string, pageSize = 20): Promise<Note[]> {
68 const requestProjectNumber = parseProjectNumber(appId);
69 const queryParams = new URLSearchParams();
70 queryParams.set("page_size", `${pageSize}`);
71 logger.debug(
72 `[crashlytics] listNotes called with appId: ${appId}, issueId: ${issueId}, pageSize: ${pageSize}`,
73 );
74 const response = await CRASHLYTICS_API_CLIENT.request<void, { notes: Note[] }>({
75 method: "GET",
76 headers: {
77 "Content-Type": "application/json",
78 },
79 path: `/projects/${requestProjectNumber}/apps/${appId}/issues/${issueId}/notes`,
80 queryParams: queryParams,
81 timeout: TIMEOUT,
82 });
83 return response.body.notes || [];
84}

Callers 2

notes.spec.tsFile · 0.90
notes.tsFile · 0.90

Calls 2

parseProjectNumberFunction · 0.90
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…