import { RepositoryRep } from "@launchdarkly/mcp-server/models/components";
let value: RepositoryRep = {
name: "LaunchDarkly-Docs",
sourceLink: "https://github.com/launchdarkly/LaunchDarkly-Docs",
commitUrlTemplate:
"https://github.com/launchdarkly/LaunchDarkly-Docs/commit/${sha}",
hunkUrlTemplate:
"https://github.com/launchdarkly/LaunchDarkly-Docs/blob/${sha}/${filePath}#L${lineNumber}",
type: "github",
defaultBranch: "main",
enabled: true,
version: 3,
branches: [
{
name: "main",
head: "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
updateSequenceId: 25,
syncTime: 342640,
references: [
{
path: "/main/index.js",
hint: "javascript",
hunks: [],
},
],
links: {
"key": "<value>",
},
},
],
links: {
"key": "<value>",
"key1": "<value>",
"key2": "<value>",
},
access: {
denied: [],
allowed: [],
},
};| Field | Type | Required | Description | Example |
|---|---|---|---|---|
name |
string | ✔️ | The repository name | LaunchDarkly-Docs |
sourceLink |
string | ➖ | A URL to access the repository | https://github.com/launchdarkly/LaunchDarkly-Docs |
commitUrlTemplate |
string | ➖ | A template for constructing a valid URL to view the commit | https://github.com/launchdarkly/LaunchDarkly-Docs/commit/${sha} |
hunkUrlTemplate |
string | ➖ | A template for constructing a valid URL to view the hunk | https://github.com/launchdarkly/LaunchDarkly-Docs/blob/${sha}/${filePath}#L${lineNumber} |
type |
components.RepositoryRepType | ✔️ | The type of repository | github |
defaultBranch |
string | ✔️ | The repository's default branch | main |
enabled |
boolean | ✔️ | Whether or not a repository is enabled for code reference scanning | true |
version |
number | ✔️ | The version of the repository's saved information | 3 |
branches |
components.BranchRep[] | ➖ | An array of the repository's branches that have been scanned for code references | |
links |
Record<string, any> | ✔️ | N/A | |
access |
components.Access | ➖ | N/A |