param name

Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
Meredith Lancaster
2025-12-09 11:39:12 -08:00
parent 3d01d7ed69
commit 539724611c
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ export type PackageRegistryOptions = {
token: string
// Optional parameters for the write operation.
// The number of times to retry the request.
customRetry?: number
retryAttempts?: number
// HTTP headers to include in request to Artifact Metadata API.
headers?: RequestHeaders
```
+3 -3
View File
@@ -37,7 +37,7 @@ export type PackageRegistryOptions = {
* @param artifactOptions - parameters for the storage record API request.
* @param packageRegistryOptions - parameters for the package registry API request.
* @param token - GitHub token used to authenticate the request.
* @param retry - The number of retries to attempt if the request fails.
* @param retryAttempts - The number of retries to attempt if the request fails.
* @param headers - Additional headers to include in the request.
*
* @returns The ID of the storage record.
@@ -47,10 +47,10 @@ export async function createStorageRecord(
artifactOptions: ArtifactOptions,
packageRegistryOptions: PackageRegistryOptions,
token: string,
customRetry?: number,
retryAttempts?: number,
headers?: RequestHeaders
): Promise<number[]> {
const retries = customRetry ?? DEFAULT_RETRY_COUNT
const retries = retryAttempts ?? DEFAULT_RETRY_COUNT
const octokit = github.getOctokit(token, {retry: {retries}}, retry)
try {
const response = await octokit.request(CREATE_STORAGE_RECORD_REQUEST, {