(
key: IntegrationTaskKey,
params: {
owner: string;
repo: string;
ref: string;
}
)
| 172 | } |
| 173 | |
| 174 | listMatchingRefs( |
| 175 | key: IntegrationTaskKey, |
| 176 | params: { |
| 177 | owner: string; |
| 178 | repo: string; |
| 179 | ref: string; |
| 180 | } |
| 181 | ): GitHubReturnType<Octokit["rest"]["git"]["listMatchingRefs"]> { |
| 182 | return this.runTask( |
| 183 | key, |
| 184 | async (client, task) => { |
| 185 | const result = await client.rest.git.listMatchingRefs(params); |
| 186 | return result.data; |
| 187 | }, |
| 188 | { |
| 189 | name: "List Matching References", |
| 190 | params, |
| 191 | properties: [ |
| 192 | ...repoProperties(params), |
| 193 | { |
| 194 | label: "Ref", |
| 195 | text: params.ref, |
| 196 | }, |
| 197 | ], |
| 198 | }, |
| 199 | onError |
| 200 | ); |
| 201 | } |
| 202 | |
| 203 | getRef( |
| 204 | key: IntegrationTaskKey, |
nothing calls this directly
no test coverage detected