Method
getMergeRequestStatues
(mergeRequest: GitLabMergeRequest, branch: string)
Source from the content-addressed store, hash-verified
| 1012 | } |
| 1013 | |
| 1014 | async getMergeRequestStatues(mergeRequest: GitLabMergeRequest, branch: string) { |
| 1015 | const statuses: GitLabCommitStatus[] = await this.requestJSON({ |
| 1016 | url: `${this.repoURL}/repository/commits/${mergeRequest.sha}/statuses`, |
| 1017 | params: { |
| 1018 | ref: branch, |
| 1019 | }, |
| 1020 | }); |
| 1021 | return statuses; |
| 1022 | } |
| 1023 | |
| 1024 | async getStatuses(collectionName: string, slug: string) { |
| 1025 | const contentKey = generateContentKey(collectionName, slug); |
Tested by
no test coverage detected