(
key: IntegrationTaskKey,
params: {
owner: string;
repo: string;
ref: string;
sha: string;
}
)
| 230 | } |
| 231 | |
| 232 | createRef( |
| 233 | key: IntegrationTaskKey, |
| 234 | params: { |
| 235 | owner: string; |
| 236 | repo: string; |
| 237 | ref: string; |
| 238 | sha: string; |
| 239 | } |
| 240 | ): GitHubReturnType<Octokit["rest"]["git"]["createRef"]> { |
| 241 | return this.runTask( |
| 242 | key, |
| 243 | async (client, task) => { |
| 244 | const result = await client.rest.git.createRef(params); |
| 245 | return result.data; |
| 246 | }, |
| 247 | { |
| 248 | name: "Create Reference", |
| 249 | params, |
| 250 | properties: [ |
| 251 | ...repoProperties(params), |
| 252 | { |
| 253 | label: "Ref", |
| 254 | text: params.ref, |
| 255 | }, |
| 256 | { |
| 257 | label: "SHA", |
| 258 | text: params.ref, |
| 259 | }, |
| 260 | ], |
| 261 | }, |
| 262 | onError |
| 263 | ); |
| 264 | } |
| 265 | |
| 266 | updateRef( |
| 267 | key: IntegrationTaskKey, |
nothing calls this directly
no test coverage detected