Skip to main content
Version: Next

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

Parameter

Type

Description

config

GithubIntegrationConfig

The relevant provider config

credentials

GithubCredentials

**Returns:**

{ headers: Record<string, string>; }