( account: Account, threadId: string, )
| 134 | * Endpoint documentation: https://docs.github.com/en/rest/activity/notifications#delete-a-thread-subscription |
| 135 | */ |
| 136 | export async function ignoreNotificationThreadSubscription( |
| 137 | account: Account, |
| 138 | threadId: string, |
| 139 | ): Promise<IgnoreNotificationThreadSubscriptionResponse> { |
| 140 | const octokit = await createOctokitClient(account, 'rest'); |
| 141 | |
| 142 | const response = await octokit.rest.activity.setThreadSubscription({ |
| 143 | thread_id: Number(threadId), |
| 144 | ignored: true, |
| 145 | }); |
| 146 | |
| 147 | return response.data; |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Returns the contents of a single commit reference. |
no test coverage detected