(
key: IntegrationTaskKey,
params: {
owner: string;
repo: string;
ref: string;
}
)
| 201 | } |
| 202 | |
| 203 | getRef( |
| 204 | key: IntegrationTaskKey, |
| 205 | params: { |
| 206 | owner: string; |
| 207 | repo: string; |
| 208 | ref: string; |
| 209 | } |
| 210 | ): GitHubReturnType<Octokit["rest"]["git"]["getRef"]> { |
| 211 | return this.runTask( |
| 212 | key, |
| 213 | async (client, task) => { |
| 214 | const result = await client.rest.git.getRef(params); |
| 215 | return result.data; |
| 216 | }, |
| 217 | { |
| 218 | name: "Get Reference", |
| 219 | params, |
| 220 | properties: [ |
| 221 | ...repoProperties(params), |
| 222 | { |
| 223 | label: "Ref", |
| 224 | text: params.ref, |
| 225 | }, |
| 226 | ], |
| 227 | }, |
| 228 | onError |
| 229 | ); |
| 230 | } |
| 231 | |
| 232 | createRef( |
| 233 | key: IntegrationTaskKey, |
nothing calls this directly
no test coverage detected