(
key: IntegrationTaskKey,
params: {
owner: string;
repo: string;
commitSHA: string;
}
)
| 139 | } |
| 140 | |
| 141 | getCommit( |
| 142 | key: IntegrationTaskKey, |
| 143 | params: { |
| 144 | owner: string; |
| 145 | repo: string; |
| 146 | commitSHA: string; |
| 147 | } |
| 148 | ): GitHubReturnType<Octokit["rest"]["git"]["getCommit"]> { |
| 149 | return this.runTask( |
| 150 | key, |
| 151 | async (client, task) => { |
| 152 | const result = await client.rest.git.getCommit({ |
| 153 | owner: params.owner, |
| 154 | repo: params.repo, |
| 155 | commit_sha: params.commitSHA, |
| 156 | }); |
| 157 | return result.data; |
| 158 | }, |
| 159 | { |
| 160 | name: "Get Commit", |
| 161 | params, |
| 162 | properties: [ |
| 163 | ...repoProperties(params), |
| 164 | { |
| 165 | label: "Commit SHA", |
| 166 | text: params.commitSHA, |
| 167 | }, |
| 168 | ], |
| 169 | }, |
| 170 | onError |
| 171 | ); |
| 172 | } |
| 173 | |
| 174 | listMatchingRefs( |
| 175 | key: IntegrationTaskKey, |
no test coverage detected