{{ define "title" }}{{ .Tab }} settings · {{ .RepoInfo.FullName }}{{ end }} {{ define "repoContent" }}
{{ template "repo/settings/fragments/sidebar" . }}
{{ template "branchSettings" . }} {{ template "defaultLabelSettings" . }} {{ template "customLabelSettings" . }} {{ template "deleteRepo" . }}
{{ end }} {{ define "branchSettings" }}

Default Branch

The default branch is considered the “base” branch in your repository, against which all pull requests and code commits are automatically made, unless you specify a different branch.

{{ end }} {{ define "defaultLabelSettings" }}

Default Labels

Manage your issues and pulls by creating labels to categorize them. Only repository owners may configure labels. You may choose to subscribe to default labels, or create entirely custom labels.

{{ range .DefaultLabels }}
{{ template "repo/settings/fragments/labelListing" (list $ .) }} {{ $action := "subscribe" }} {{ $icon := "plus" }} {{ if mapContains $.SubscribedLabels .AtUri.String }} {{ $action = "unsubscribe" }} {{ $icon = "minus" }} {{ end }}
{{ else }}
no labels added yet
{{ end }}
{{ end }} {{ define "customLabelSettings" }}

Custom Labels

{{ template "repo/settings/fragments/addLabelDefModal" . }}
{{ range .Labels }}
{{ template "repo/settings/fragments/labelListing" (list $ .) }} {{ if $.RepoInfo.Roles.IsOwner }} {{ end }}
{{ else }}
no labels added yet
{{ end }}
{{ end }} {{ define "deleteRepo" }} {{ if .RepoInfo.Roles.RepoDeleteAllowed }}

Delete Repository

Deleting a repository is irreversible and permanent. Be certain before deleting a repository.

{{ end }} {{ end }}