MCPcopy Index your code
hub / github.com/TanStack/ai / githubHeaders

Function githubHeaders

examples/ts-react-chat/src/triage-tools.ts:23–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21import { z } from 'zod'
22
23function githubHeaders(): Record<string, string> {
24 const headers: Record<string, string> = {
25 Accept: 'application/vnd.github+json',
26 'User-Agent': 'tanstack-ai-sandbox-triage',
27 }
28 if (process.env.GITHUB_TOKEN) {
29 headers.Authorization = `Bearer ${process.env.GITHUB_TOKEN}`
30 }
31 return headers
32}
33
34/**
35 * Build the bridged tools + code-mode setup + system mandate for one triage run.

Callers 1

createTriageToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected