(mergeRequest: GitLabMergeRequest)
| 963 | } |
| 964 | |
| 965 | async closeMergeRequest(mergeRequest: GitLabMergeRequest) { |
| 966 | await this.requestJSON({ |
| 967 | method: 'PUT', |
| 968 | url: `${this.repoURL}/merge_requests/${mergeRequest.iid}`, |
| 969 | params: { |
| 970 | state_event: 'close', |
| 971 | }, |
| 972 | }); |
| 973 | } |
| 974 | |
| 975 | async getDefaultBranch() { |
| 976 | const branch: GitLabBranch = await this.getBranch(this.branch); |
no outgoing calls
no test coverage detected