(
key: IntegrationTaskKey,
params: {
owner: string;
repo: string;
ref: string;
sha: string;
force?: boolean;
}
)
| 264 | } |
| 265 | |
| 266 | updateRef( |
| 267 | key: IntegrationTaskKey, |
| 268 | params: { |
| 269 | owner: string; |
| 270 | repo: string; |
| 271 | ref: string; |
| 272 | sha: string; |
| 273 | force?: boolean; |
| 274 | } |
| 275 | ): GitHubReturnType<Octokit["rest"]["git"]["updateRef"]> { |
| 276 | return this.runTask( |
| 277 | key, |
| 278 | async (client, task) => { |
| 279 | const result = await client.rest.git.updateRef(params); |
| 280 | return result.data; |
| 281 | }, |
| 282 | { |
| 283 | name: "Update Reference", |
| 284 | params, |
| 285 | properties: [ |
| 286 | ...repoProperties(params), |
| 287 | { |
| 288 | label: "Ref", |
| 289 | text: params.ref, |
| 290 | }, |
| 291 | { |
| 292 | label: "SHA", |
| 293 | text: params.ref, |
| 294 | }, |
| 295 | ], |
| 296 | }, |
| 297 | onError |
| 298 | ); |
| 299 | } |
| 300 | |
| 301 | deleteRef( |
| 302 | key: IntegrationTaskKey, |
nothing calls this directly
no test coverage detected