Method
getMergeRequestStatues
(mergeRequest: GitLabMergeRequest, branch: string)
Source from the content-addressed store, hash-verified
| 1003 | } |
| 1004 | |
| 1005 | async getMergeRequestStatues(mergeRequest: GitLabMergeRequest, branch: string) { |
| 1006 | const statuses: GitLabCommitStatus[] = await this.requestJSON({ |
| 1007 | url: `${this.repoURL}/repository/commits/${mergeRequest.sha}/statuses`, |
| 1008 | params: { |
| 1009 | ref: branch, |
| 1010 | }, |
| 1011 | }); |
| 1012 | return statuses; |
| 1013 | } |
| 1014 | |
| 1015 | async getStatuses(collectionName: string, slug: string) { |
| 1016 | const contentKey = generateContentKey(collectionName, slug); |
Tested by
no test coverage detected