You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo_branch.go 715B

1234567891011121314151617
  1. // Copyright 2016 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. // Branch represents a repository branch
  6. type Branch struct {
  7. Name string `json:"name"`
  8. Commit *PayloadCommit `json:"commit"`
  9. Protected bool `json:"protected"`
  10. RequiredApprovals int64 `json:"required_approvals"`
  11. EnableStatusCheck bool `json:"enable_status_check"`
  12. StatusCheckContexts []string `json:"status_check_contexts"`
  13. UserCanPush bool `json:"user_can_push"`
  14. UserCanMerge bool `json:"user_can_merge"`
  15. }