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

Function markNotificationThreadAsRead

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

Source from the content-addressed store, hash-verified

95 * Endpoint documentation: https://docs.github.com/en/rest/activity/notifications#mark-a-thread-as-read
96 */
97export 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

Callers 2

client.test.tsFile · 0.90
useNotificationsFunction · 0.90

Calls 1

createOctokitClientFunction · 0.90

Tested by

no test coverage detected