hunk.code_window:       let details = axiosError.response?.data.details;
         const { creds = {} } = options;
         // If no credentials were provided alter error from git to indicate repository is not found or is private
         if (
           !(creds.username && creds.password) &&
           details ===
             'authentication failed, please ensure that the git credentials are correct'
         ) {
           details =
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:         (!(creds.username && creds.password) || !creds.gitCredentialId) &&
  
hunk.file_path: app/react/portainer/gitops/queries/useCheckRepo.ts
hunk.type: replace
file: package validate
  
  import (
  	"github.com/go-playground/validator/v10"
  )
  
  func registerValidationMethods(v *validator.Validate) {
  	v.RegisterValidation("validate_bool", ValidateBool)
  }
  
  /**
   * Validation methods below are being used for custom validation
   */
  func ValidateBool(fl validator.FieldLevel) bool {
  	_, ok := fl.Field().Interface().(bool)
  	return ok
  }
  