( account: Account, threadId: string, )
| 95 | * Endpoint documentation: https://docs.github.com/en/rest/activity/notifications#mark-a-thread-as-read |
| 96 | */ |
| 97 | export async function markNotificationThreadAsRead( |
| 98 | account: Account, |
| 99 | threadId: string, |
| 100 | ): Promise<MarkNotificationThreadAsReadResponse> { |
| 101 | const octokit = await createOctokitClient(account, 'rest'); |
| 102 | |
| 103 | const response = await octokit.rest.activity.markThreadAsRead({ |
| 104 | thread_id: Number(threadId), |
| 105 | }); |
| 106 | |
| 107 | return response.data; |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Marks a thread as "done." Marking a thread as "done" is equivalent to marking a |
no test coverage detected