chore: fix Warning: (ae-forgotten-export)

Signed-off-by: Jan Michael Ong <adobejmong@gmail.com>
This commit is contained in:
Jan Michael Ong
2026-04-22 12:01:06 -07:00
parent a50f4ec818
commit e72787948c
2 changed files with 20 additions and 2 deletions
@@ -8,6 +8,7 @@ import { CatalogService } from '@backstage/plugin-catalog-node';
import { Config } from '@backstage/config';
import { createPullRequest } from 'octokit-plugin-create-pull-request';
import { GithubCredentialsProvider } from '@backstage/integration';
import { LoggerService } from '@backstage/backend-plugin-api';
import { Octokit } from 'octokit';
import { OctokitOptions } from '@octokit/core/dist-types/types';
import { ScmIntegrationRegistry } from '@backstage/integration';
@@ -253,8 +254,8 @@ export function createGithubRepoCreateAction(options: {
access: string;
}
| {
team: string;
access: string;
team: string;
}
)[]
| undefined;
@@ -444,8 +445,8 @@ export function createPublishGithubAction(options: {
access: string;
}
| {
team: string;
access: string;
team: string;
}
)[]
| undefined;
@@ -509,6 +510,13 @@ export const createPublishGithubPullRequestAction: (
'v2'
>;
// @public
export function getOctokitClient(
octokitOptions: OctokitOptions,
logger: LoggerService,
retryOptions?: RetryOptions,
): Octokit;
// @public
export function getOctokitOptions(options: {
integrations: ScmIntegrationRegistry;
@@ -530,4 +538,10 @@ export function getOctokitOptions(options: {
// @public
const githubModule: BackendFeature;
export default githubModule;
// @public
export type RetryOptions = {
retries?: number;
retryAfter?: number;
};
```
@@ -33,6 +33,10 @@ const DEFAULT_TIMEOUT_MS = 60_000;
const DEFAULT_RETRY_ATTEMPTS = 3;
const DEFAULT_RETRY_DELAY_MS = 1_000;
/**
* Options used to override the default retry behavior of @octokit/plugin-retry.
* @public
*/
export type RetryOptions = {
// The number of retry attempts for failed requests
retries?: number;