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

Function ignoreNotificationThreadSubscription

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

Source from the content-addressed store, hash-verified

134 * Endpoint documentation: https://docs.github.com/en/rest/activity/notifications#delete-a-thread-subscription
135 */
136export 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.

Callers 2

client.test.tsFile · 0.90
useNotificationsFunction · 0.90

Calls 1

createOctokitClientFunction · 0.90

Tested by

no test coverage detected