Skip to main content
Version: Next

getOctokitOptions()

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

Helper for generating octokit configuration options. 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;
host: string;
owner?: string;
repo?: string;
}): Promise<OctokitOptions>;

Parameters

Parameter

Type

Description

options

{ integrations: ScmIntegrationRegistry; credentialsProvider?: GithubCredentialsProvider; token?: string; host: string; owner?: string; repo?: string; }

**Returns:**

Promise<OctokitOptions>