Skip to main content

getOctokitOptions()

Home > @backstage/plugin-scaffolder-backend-module-github > getOctokitOptions

Helper for generating octokit configuration options for given repoUrl. If no token is provided, it will attempt to get a token from the credentials provider.

Signature:

function getOctokitOptions(options: {
integrations: ScmIntegrationRegistry;
credentialsProvider?: GithubCredentialsProvider;
token?: string;
repoUrl: string;
}): Promise<OctokitOptions>;

Parameters

ParameterTypeDescription
options{ integrations: ScmIntegrationRegistry; credentialsProvider?: GithubCredentialsProvider; token?: string; repoUrl: string; }

Returns:

Promise<OctokitOptions>