MCPcopy Index your code
hub / github.com/gitify-app/gitify / followUrl

Function followUrl

src/renderer/utils/api/client.ts:199–211  ·  view source on GitHub ↗

* Follow GitHub Response URL

(
  account: Account,
  url: Link,
)

Source from the content-addressed store, hash-verified

197 * Follow GitHub Response URL
198 */
199async function followUrl<TResult>(
200 account: Account,
201 url: Link,
202): Promise<TResult> {
203 const octokit = await createOctokitClient(account, 'rest');
204
205 // Perform a generic GET request using Octokit's request method and cast the response type
206 const response = await octokit.request('GET {+url}', {
207 url: url,
208 });
209
210 return response.data as TResult;
211}
212
213/**
214 * Fetch GitHub Discussion by Discussion Number.

Callers 4

getCommitFunction · 0.85
getCommitCommentFunction · 0.85
getReleaseFunction · 0.85
getHtmlUrlFunction · 0.85

Calls 1

createOctokitClientFunction · 0.90

Tested by

no test coverage detected