( account: Account, threadId: string, )
| 116 | * Endpoint documentation: https://docs.github.com/en/rest/activity/notifications#mark-a-thread-as-done |
| 117 | */ |
| 118 | export async function markNotificationThreadAsDone( |
| 119 | account: Account, |
| 120 | threadId: string, |
| 121 | ): Promise<MarkNotificationThreadAsDoneResponse> { |
| 122 | const octokit = await createOctokitClient(account, 'rest'); |
| 123 | |
| 124 | const response = await octokit.rest.activity.markThreadAsDone({ |
| 125 | thread_id: Number(threadId), |
| 126 | }); |
| 127 | |
| 128 | return response.data; |
| 129 | } |
| 130 | |
| 131 | /** |
| 132 | * Ignore future notifications for threads until you comment on the thread or get a `@mention`. |
no test coverage detected