(ref: string)
| 112 | } |
| 113 | |
| 114 | export const invalidGitRef = (ref: string): ServiceError => { |
| 115 | return { |
| 116 | statusCode: StatusCodes.BAD_REQUEST, |
| 117 | errorCode: ErrorCode.INVALID_GIT_REF, |
| 118 | message: `Invalid git reference: "${ref}". Git refs cannot start with '-'.`, |
| 119 | }; |
| 120 | } |
| 121 | |
| 122 | export const unresolvedGitRef = (ref: string): ServiceError => { |
| 123 | return { |
no outgoing calls
no test coverage detected