code: func getWorkspaceBranch(ctx *app.CreateCodebaseContext) string {
  	branch := "master"
  	if ctx.Payload != nil && ctx.Payload.Data != nil && ctx.Payload.Data.Attributes != nil && ctx.Payload.Data.Attributes.Branch != nil && *ctx.Payload.Data.Attributes.Branch != "" {
  		branch = *ctx.Payload.Data.Attributes.Branch
  	}
  	return branch
  }
docs: // getWorkspaceBranch returns the branch defined in the request payload ('master' is used by default)