Method
isShaExistsInBranch
(branch: string, sha: string)
Source from the content-addressed store, hash-verified
| 988 | } |
| 989 | |
| 990 | async isShaExistsInBranch(branch: string, sha: string) { |
| 991 | const refs: GitLabCommitRef[] = await this.requestJSON({ |
| 992 | url: `${this.repoURL}/repository/commits/${sha}/refs`, |
| 993 | params: { |
| 994 | type: 'branch', |
| 995 | }, |
| 996 | }); |
| 997 | return refs.some(r => r.name === branch); |
| 998 | } |
| 999 | |
| 1000 | async deleteBranch(branch: string) { |
| 1001 | await this.request({ |
Callers
nothing calls this directly
Tested by
no test coverage detected