getTokenForRepo
getTokenForRepo(
repoUrl):string|undefined
Defined in: packages/agentic-control/src/core/tokens.ts:243
Get the token for a repository URL Automatically extracts the organization and returns the appropriate token
Parameters
Section titled “Parameters”repoUrl
Section titled “repoUrl”string
Repository URL or owner/repo format
Returns
Section titled “Returns”string | undefined
Token value or undefined if not set
Example
Section titled “Example”// If configured: addOrganization({ name: "myorg", tokenEnvVar: "MYORG_TOKEN" })getTokenForRepo("https://github.com/myorg/my-repo")// Returns value of MYORG_TOKEN