Forgejo · Example Payload

Branch Example

Branch represents a repository branch

GitSource Code ManagementSelf-HostedDevOpsCI/CDOpen SourceForgeRepositoriesIssuesPull Requests

Branch Example is an example object payload from Forgejo, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

titledescriptionexample

Example Payload

Raw ↑
{
  "title": "Forgejo Branch Example",
  "description": "Branch represents a repository branch",
  "example": {
    "commit": {
      "added": [],
      "author": "<PayloadUser>",
      "committer": "<PayloadUser>",
      "id": "string",
      "message": "string",
      "modified": [],
      "removed": [],
      "timestamp": "2024-01-15T12:00:00Z",
      "url": "string",
      "verification": "<PayloadCommitVerification>"
    },
    "effective_branch_protection_name": "string",
    "enable_status_check": false,
    "name": "string",
    "protected": false,
    "required_approvals": 1,
    "status_check_contexts": [
      "string"
    ],
    "user_can_merge": false,
    "user_can_push": false
  }
}