Create GitHub Repository Feed
User Intent
Operation
Code Example (TypeScript)
import { Graphlit } from 'graphlit-client';
import { FeedTypes, FeedServiceTypes } from 'graphlit-client/dist/generated/graphql-types';
const graphlit = new Graphlit();
const feed = await graphlit.createFeed({
name: 'GraphQL Docs',
type: FeedTypes.Site,
site: {
type: FeedServiceTypes.GitHub,
github: {
repositoryOwner: 'graphql',
repositoryName: 'graphql-spec',
personalAccessToken: process.env.GITHUB_TOKEN!,
},
allowedPaths: ['spec/**', 'README.md'],
readLimit: 1000,
},
// Optional: add workflow for content processing
// workflow: { id: workflow.createWorkflow.id }
});
console.log(`Created GitHub repo feed: ${feed.createFeed.id}`);Configuration
Path Filtering
What Gets Synced
How Updates Work
Cost and Scope Controls
Use Cases
Private vs Public Repos
Related
Last updated