Creates an SCM provider for the specified repository.
Token resolution is automatic — checks env vars and CLI auth. Currently supports GitHub (gh CLI). GitLab/Gitea planned.
Provider configuration
SCM provider instance or error
const result = await createScmProvider({ repo: 'owner/repo' });if (!result.ok) { console.error(result.error); return; }const issues = await result.value.listIssues(); Copy
const result = await createScmProvider({ repo: 'owner/repo' });if (!result.ok) { console.error(result.error); return; }const issues = await result.value.listIssues();
Creates an SCM provider for the specified repository.
Token resolution is automatic — checks env vars and CLI auth. Currently supports GitHub (gh CLI). GitLab/Gitea planned.