Skip to main content

getGitHubRequestOptions()

Home > @backstage/integration > getGitHubRequestOptions

Warning: This API is now obsolete.

This function is no longer used internally

Gets the request options necessary to make requests to a given provider.

Signature:

function getGitHubRequestOptions(config: GithubIntegrationConfig, credentials: GithubCredentials): {
headers: Record<string, string>;
};

Parameters

ParameterTypeDescription
configGithubIntegrationConfigThe relevant provider config
credentialsGithubCredentials

Returns:

{ headers: Record<string, string>; }