(mergeRequest: GitLabMergeRequest)
| 973 | } |
| 974 | |
| 975 | async closeMergeRequest(mergeRequest: GitLabMergeRequest) { |
| 976 | await this.requestJSON({ |
| 977 | method: 'PUT', |
| 978 | url: `${this.repoURL}/merge_requests/${mergeRequest.iid}`, |
| 979 | params: { |
| 980 | state_event: 'close', |
| 981 | }, |
| 982 | }); |
| 983 | } |
| 984 | |
| 985 | async getDefaultBranch() { |
| 986 | const branch: GitLabBranch = await this.getBranch(this.branch); |
no outgoing calls
no test coverage detected