MCPcopy
hub / github.com/gitify-app/gitify / markNotificationThreadAsDone

Function markNotificationThreadAsDone

src/renderer/utils/api/client.ts:118–129  ·  view source on GitHub ↗
(
  account: Account,
  threadId: string,
)

Source from the content-addressed store, hash-verified

116 * Endpoint documentation: https://docs.github.com/en/rest/activity/notifications#mark-a-thread-as-done
117 */
118export 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`.

Callers 2

client.test.tsFile · 0.90
useNotificationsFunction · 0.90

Calls 1

createOctokitClientFunction · 0.90

Tested by

no test coverage detected