mirror of https://github.com/actions/toolkit
clean up comments for better autogen docs
parent
e3764a56e8
commit
0db2ef8ead
|
@ -18,7 +18,6 @@
|
||||||
- [ArtifactClient](interfaces/ArtifactClient.md)
|
- [ArtifactClient](interfaces/ArtifactClient.md)
|
||||||
- [DownloadArtifactOptions](interfaces/DownloadArtifactOptions.md)
|
- [DownloadArtifactOptions](interfaces/DownloadArtifactOptions.md)
|
||||||
- [DownloadArtifactResponse](interfaces/DownloadArtifactResponse.md)
|
- [DownloadArtifactResponse](interfaces/DownloadArtifactResponse.md)
|
||||||
- [FindBy](interfaces/FindBy.md)
|
|
||||||
- [FindOptions](interfaces/FindOptions.md)
|
- [FindOptions](interfaces/FindOptions.md)
|
||||||
- [GetArtifactResponse](interfaces/GetArtifactResponse.md)
|
- [GetArtifactResponse](interfaces/GetArtifactResponse.md)
|
||||||
- [ListArtifactsOptions](interfaces/ListArtifactsOptions.md)
|
- [ListArtifactsOptions](interfaces/ListArtifactsOptions.md)
|
||||||
|
@ -38,4 +37,4 @@
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/artifact.ts:7](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/artifact.ts#L7)
|
[src/artifact.ts:7](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/artifact.ts#L7)
|
||||||
|
|
|
@ -48,7 +48,7 @@ Error.constructor
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/errors.ts:24](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/errors.ts#L24)
|
[src/internal/shared/errors.ts:24](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/errors.ts#L24)
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ single DownloadArtifactResponse object
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/client.ts:119](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/client.ts#L119)
|
[src/internal/client.ts:119](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/client.ts#L119)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ If there are multiple artifacts with the same name in the same workflow run this
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/client.ts:193](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/client.ts#L193)
|
[src/internal/client.ts:193](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/client.ts#L193)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ ListArtifactResponse object
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/client.ts:157](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/client.ts#L157)
|
[src/internal/client.ts:157](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/client.ts#L157)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -158,4 +158,4 @@ single UploadArtifactResponse object
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/client.ts:94](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/client.ts#L94)
|
[src/internal/client.ts:94](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/client.ts#L94)
|
||||||
|
|
|
@ -49,7 +49,7 @@ Error.constructor
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/errors.ts:4](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/errors.ts#L4)
|
[src/internal/shared/errors.ts:4](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/errors.ts#L4)
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ Error.constructor
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/errors.ts:2](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/errors.ts#L2)
|
[src/internal/shared/errors.ts:2](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/errors.ts#L2)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ Error.constructor
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/errors.ts:31](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/errors.ts#L31)
|
[src/internal/shared/errors.ts:31](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/errors.ts#L31)
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ Error.constructor
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/errors.ts:17](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/errors.ts#L17)
|
[src/internal/shared/errors.ts:17](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/errors.ts#L17)
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ The time when the artifact was created
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:123](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L123)
|
[src/internal/shared/interfaces.ts:123](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L123)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ The ID of the artifact
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:113](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L113)
|
[src/internal/shared/interfaces.ts:113](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L113)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ The name of the artifact
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:108](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L108)
|
[src/internal/shared/interfaces.ts:108](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L108)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -59,4 +59,4 @@ The size of the artifact in bytes
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:118](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L118)
|
[src/internal/shared/interfaces.ts:118](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L118)
|
||||||
|
|
|
@ -42,7 +42,7 @@ single DownloadArtifactResponse object
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/client.ts:84](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/client.ts#L84)
|
[src/internal/client.ts:84](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/client.ts#L84)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ If there are multiple artifacts with the same name in the same workflow run this
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/client.ts:70](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/client.ts#L70)
|
[src/internal/client.ts:70](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/client.ts#L70)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ ListArtifactResponse object
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/client.ts:52](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/client.ts#L52)
|
[src/internal/client.ts:52](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/client.ts#L52)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -128,4 +128,4 @@ single UploadArtifactResponse object
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/client.ts:35](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/client.ts#L35)
|
[src/internal/client.ts:35](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/client.ts#L35)
|
||||||
|
|
|
@ -20,4 +20,4 @@ Denotes where the artifact will be downloaded to. If not specified then the arti
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:98](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L98)
|
[src/internal/shared/interfaces.ts:98](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L98)
|
||||||
|
|
|
@ -20,4 +20,4 @@ The path where the artifact was downloaded to
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:88](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L88)
|
[src/internal/shared/interfaces.ts:88](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L88)
|
||||||
|
|
|
@ -1,52 +0,0 @@
|
||||||
[@actions/artifact](../README.md) / FindBy
|
|
||||||
|
|
||||||
# Interface: FindBy
|
|
||||||
|
|
||||||
## Table of contents
|
|
||||||
|
|
||||||
### Properties
|
|
||||||
|
|
||||||
- [repositoryName](FindBy.md#repositoryname)
|
|
||||||
- [repositoryOwner](FindBy.md#repositoryowner)
|
|
||||||
- [token](FindBy.md#token)
|
|
||||||
- [workflowRunId](FindBy.md#workflowrunid)
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### repositoryName
|
|
||||||
|
|
||||||
• **repositoryName**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:140](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L140)
|
|
||||||
|
|
||||||
___
|
|
||||||
|
|
||||||
### repositoryOwner
|
|
||||||
|
|
||||||
• **repositoryOwner**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:138](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L138)
|
|
||||||
|
|
||||||
___
|
|
||||||
|
|
||||||
### token
|
|
||||||
|
|
||||||
• **token**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:134](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L134)
|
|
||||||
|
|
||||||
___
|
|
||||||
|
|
||||||
### workflowRunId
|
|
||||||
|
|
||||||
• **workflowRunId**: `number`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:136](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L136)
|
|
|
@ -12,8 +12,19 @@
|
||||||
|
|
||||||
### findBy
|
### findBy
|
||||||
|
|
||||||
• `Optional` **findBy**: [`FindBy`](FindBy.md)
|
• `Optional` **findBy**: `Object`
|
||||||
|
|
||||||
|
The criteria for finding Artifact(s) out of the scope of the current run.
|
||||||
|
|
||||||
|
#### Type declaration
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| :------ | :------ | :------ |
|
||||||
|
| `repositoryName` | `string` | Repository owner (eg. 'toolkit') |
|
||||||
|
| `repositoryOwner` | `string` | Repository owner (eg. 'actions') |
|
||||||
|
| `token` | `string` | Token with actions:read permissions |
|
||||||
|
| `workflowRunId` | `number` | WorkflowRun of the artifact(s) to lookup |
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:128](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L128)
|
[src/internal/shared/interfaces.ts:131](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L131)
|
||||||
|
|
|
@ -20,4 +20,4 @@ Metadata about the artifact that was found
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:57](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L57)
|
[src/internal/shared/interfaces.ts:57](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L57)
|
||||||
|
|
|
@ -21,4 +21,4 @@ In the case of reruns, this can be useful to avoid duplicates
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:68](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L68)
|
[src/internal/shared/interfaces.ts:68](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L68)
|
||||||
|
|
|
@ -20,4 +20,4 @@ A list of artifacts that were found
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:78](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L78)
|
[src/internal/shared/interfaces.ts:78](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L78)
|
||||||
|
|
|
@ -28,7 +28,7 @@ For large files that are not easily compressed, a value of 0 is recommended for
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:47](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L47)
|
[src/internal/shared/interfaces.ts:47](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L47)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -52,4 +52,4 @@ input of 0 assumes default retention setting.
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:36](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L36)
|
[src/internal/shared/interfaces.ts:36](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L36)
|
||||||
|
|
|
@ -22,7 +22,7 @@ This ID can be used as input to other APIs to download, delete or get more infor
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:14](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L14)
|
[src/internal/shared/interfaces.ts:14](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L14)
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
@ -34,4 +34,4 @@ Total size of the artifact in bytes. Not provided if no artifact was uploaded
|
||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[src/internal/shared/interfaces.ts:8](https://github.com/actions/toolkit/blob/207747e/packages/artifact/src/internal/shared/interfaces.ts#L8)
|
[src/internal/shared/interfaces.ts:8](https://github.com/actions/toolkit/blob/e3764a5/packages/artifact/src/internal/shared/interfaces.ts#L8)
|
||||||
|
|
|
@ -125,17 +125,25 @@ export interface Artifact {
|
||||||
|
|
||||||
// FindOptions are for fetching Artifact(s) out of the scope of the current run.
|
// FindOptions are for fetching Artifact(s) out of the scope of the current run.
|
||||||
export interface FindOptions {
|
export interface FindOptions {
|
||||||
findBy?: FindBy
|
/**
|
||||||
}
|
* The criteria for finding Artifact(s) out of the scope of the current run.
|
||||||
|
*/
|
||||||
// FindBy are the criteria for finding Artifact(s) out of the scope of the current run.
|
findBy?: {
|
||||||
export interface FindBy {
|
/**
|
||||||
// Token with actions:read permissions
|
* Token with actions:read permissions
|
||||||
|
*/
|
||||||
token: string
|
token: string
|
||||||
// WorkflowRun of the artifact(s) to lookup
|
/**
|
||||||
|
* WorkflowRun of the artifact(s) to lookup
|
||||||
|
*/
|
||||||
workflowRunId: number
|
workflowRunId: number
|
||||||
// Repository owner
|
/**
|
||||||
|
* Repository owner (eg. 'actions')
|
||||||
|
*/
|
||||||
repositoryOwner: string
|
repositoryOwner: string
|
||||||
// Repository name
|
/**
|
||||||
|
* Repository owner (eg. 'toolkit')
|
||||||
|
*/
|
||||||
repositoryName: string
|
repositoryName: string
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue