(appId: string, issueId: string, pageSize = 20)
| 65 | * @return A list of notes |
| 66 | */ |
| 67 | export 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 | } |
no test coverage detected
searching dependent graphs…