GitHub repository branch
github.branch MQL resource for querying GitHub infrastructure with cnquery and cnspec.
GitHubPrivate Resource
GitHub repository branch
Min version: 6.4.0Defaults:
nameRelationships
6 resources · 18 relationships·Click to select, expand fields to see properties.
Fields (8)
| Field | Type | Description |
|---|---|---|
headCommit | github.commit | Repository branch HEAD commit |
headCommitSharequired | string | Repository branch HEAD commit SHA sum |
isDefaultrequired | int | Whether the branch is the default branch |
isProtectedrequired | int | Whether branch protection is enabled |
namerequired | string | Repository branch name |
ownerrequired | github.user | Repository branch owner |
protectionRules | github.branchprotection | Repository branch protection rules |
repoNamerequired | string | Repository branch repository name |