fix linter issues

Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
Meredith Lancaster
2025-12-09 11:40:40 -08:00
parent 539724611c
commit 701191f50e
2 changed files with 12 additions and 4 deletions
@@ -48,7 +48,15 @@ describe('createStorageRecord', () => {
})
it('persists the storage record', async () => {
await expect(createStorageRecord(artifactOptions, packageRegistryOptions, token, undefined, headers)).resolves.toEqual([123, 456])
await expect(
createStorageRecord(
artifactOptions,
packageRegistryOptions,
token,
undefined,
headers
)
).resolves.toEqual([123, 456])
})
})
+3 -3
View File
@@ -20,7 +20,7 @@ export type ArtifactOptions = {
// The status of the artifact
status?: string
}
// Includes details about the package registry the artifact was published to
// Includes details about the package registry the artifact was published to
export type PackageRegistryOptions = {
// The URL of the package registry
registryUrl: string
@@ -39,7 +39,7 @@ export type PackageRegistryOptions = {
* @param token - GitHub token used to authenticate the request.
* @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.
* @throws Error if the storage record fails to persist.
*/
@@ -55,7 +55,7 @@ export async function createStorageRecord(
try {
const response = await octokit.request(CREATE_STORAGE_RECORD_REQUEST, {
owner: github.context.repo.owner,
headers: headers,
headers,
...buildRequestParams(artifactOptions, packageRegistryOptions)
})