code: func (Pipe) Default(ctx *context.Context) error {
  	if ctx.Config.Release.NameTemplate == "" {
  		ctx.Config.Release.NameTemplate = "{{.Tag}}"
  	}
  	if ctx.Config.Release.GitHub.Name == "" {
  		repo, err := remoteRepo()
  		if err != nil && !ctx.Snapshot {
  			return err
  		}
  		ctx.Config.Release.GitHub = repo
  	}
  
  	// Check if we have to check the git tag for an indicator to mark as pre release
  	switch ctx.Config.Release.Prerelease {
  	case "auto":
  		if ctx.Semver.Prerelease != "" {
  			ctx.PreRelease = true
  		}
  		log.Debugf("pre-release was detected for tag %s: %v", ctx.Git.CurrentTag, ctx.PreRelease)
  	case "true":
  		ctx.PreRelease = true
  	}
  	log.Debugf("pre-release for tag %s set to %v", ctx.Git.CurrentTag, ctx.PreRelease)
  
  	return nil
  }
docs: // Default sets the pipe defaults