{{define "width"}}wide{{end}} {{define "title"}}settings · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}} {{define "content"}} {{$base := printf "/%s/%s/settings" .Repo.OwnerName .Repo.Name}}

Settings

{{if .Notice}}{{if .Saved}}

{{.Notice}}

{{else}}{{end}}{{end}}

Identity

Comma separated, lower case.

{{if .Branches}}
{{end}}

Access

Visibility

Public repositories only.

Who can reach this repository

{{if .Access}}
{{range .Access}}{{end}}
userroleviaactions
{{.User}} {{.Role}} {{.Source}} {{if eq .Source "direct"}}
{{end}}
{{else}}

Nobody else can reach it.

{{end}}

An account name and a role. A grant adds to what an organization or team already gives.

Webhooks

{{if .Hooks}}
    {{range .Hooks}}
  • #{{.ID}} {{.URL}} {{.Events}}{{if .Secret}}, signed{{end}}
  • {{end}}
{{else}}

No webhooks.

{{end}}

Comma separated, or * for all.

Optional. Signs each delivery; it is not shown again.

Recent deliveries

{{if .Deliveries}}
{{range .Deliveries}}{{end}}
ideventurlstateactions
{{.ID}} {{.Event}} {{.URL}} {{.Status}} ({{.Attempts}} attempts){{if .LastError}}
{{.LastError}}{{end}}
{{else}}

Nothing delivered yet.

{{end}}

Merge gates

Checked before a merge, in this order: checks, approvals, resolved threads, signatures.

Requires CI to succeed.{{with .Repo.Settings.RequiredContexts}} Also waits for {{range $i, $c := .}}{{if $i}}, {{end}}{{$c}}{{end}} until they report{{if not $.Repo.Settings.RequireChecks}}, once this is on{{end}}.{{end}}

Statuses the checks gate waits for until they report, separated by spaces. Saving any turns required checks on; saving none leaves it as it is.

Approvals from anyone with write access. Zero means none required.

Every thread on the diff must be resolved before merging.

Code owners must approve.

Every commit in the request must carry a verified signature. Squash and merge strategies are refused, since both mint an unsigned commit.

{{if or .ScanAvailable .Security.Enabled}}

Code scanning

Runs the instance's code scanner over {{.Repo.DefaultBranch}} on its schedule, on a runner attached to this repository, and keeps an issue of what it finds.

{{if .ScanAvailable}}

Daily, weekly on Sunday, or monthly on the 1st, at {{printf "%02d:00" .ScanHour}} UTC.

{{end}} {{if .Security.Enabled}}

Next scan {{.Security.NextRun}} · last results {{if .Security.LastResults}}{{when .Security.LastResults}}{{else}}never{{end}}{{if .Security.IssueNumber}} · #{{.Security.IssueNumber}}{{end}}

{{with .Security.Aside}}{{if .Any}}

Set aside by the last scan:{{if .Ignored}} {{.Ignored}} under the paths or rules below, or marked vendored or generated in .gitattributes.{{end}}{{range $lib, $n := .Unused}} {{$n}} from {{$lib}} rules, which no manifest names.{{end}}{{if .Quoted}} {{.Quoted}} unquoted-attribute hits on attributes the template quotes.{{end}}

{{end}}{{end}} {{if .Security.Findings}}
{{range .Security.Findings}} {{end}}
locationruleleveldismiss
{{.Path}}:{{.Line}} {{.Rule}} {{.Level}}
{{else if .Security.LastResults}}

The last scan found nothing open.

{{end}} {{if .Security.Dismissed}}

Dismissed

{{range .Security.Dismissed}} {{end}}
locationrulereasonreopen
{{.Path}}:{{.Line}} {{.Rule}} {{.Reason}}{{if .DismissedBy}} by {{.DismissedBy}}{{end}}
{{end}} {{end}}

Findings under these paths are set aside from the next scan. Path globs separated by spaces: testdata/**, web/templates/*.html. Paths .gitattributes marks linguist-vendored or linguist-generated are set aside without being listed.

Findings from these rules are set aside from the next scan. A rule id or a family of them, separated by spaces: swift.lang.crypto.insecure-random, javascript.browser.

{{end}}

Secret scan

Each push's new files are checked for credentials in known formats. Warn accepts the push and tells the pusher where; block refuses it. Only the path, line and kind of credential are reported, never the value.

Findings under these paths are ignored, for test fixtures. Path globs separated by spaces: testdata/**, *_test.go.

Protected branches

{{if .Repo.Settings.ProtectedBranches}}
    {{$mr := .Repo.Settings.RequireMR}}{{range .Repo.Settings.ProtectedBranches}}
  • {{.}}{{if $mr}} Direct pushes refused, merge requests only.{{end}}
  • {{end}}
{{else}}

No protected branches. A protected branch refuses deletion and force-pushes.

{{end}}

Every protected branch changes through a merge request. A direct push is refused in pre-receive.

Protected tags

{{if .Repo.Settings.ProtectedTags}}
    {{range .Repo.Settings.ProtectedTags}}
  • {{.}}
  • {{end}}
{{else}}

No protected tags. A tag matching a protected glob is created once and refuses moves and deletion. A tag a release is anchored to refuses both regardless.

{{end}}

Dependencies

Evaluates the manifests and lockfiles on {{.Repo.DefaultBranch}} against the registries and OSV, and opens an issue for each. Updates for Go, NPM, Crates, and PyPI; advisories for those and SwiftPM.

{{if .DepsEnabled}}

Last checked {{if .Deps.LastCheck}}{{when .Deps.LastCheck}}{{else}}never{{end}}{{if .Deps.IssueNumber}} · #{{.Deps.IssueNumber}}{{end}}{{if .Deps.AdvisoryIssueNumber}} · advisories #{{.Deps.AdvisoryIssueNumber}}{{end}}

{{if .Deps.LastError}}{{end}} {{if .Deps.Behind}}
{{range .Deps.Behind}} {{end}}
dependencypinnedlatest
{{.Ecosystem}} {{.Name}} {{.Current}} {{.Latest}}
{{else}}

Nothing behind{{if not .Deps.LastCheck}} — the first check has not run yet{{end}}.

{{end}} {{if .Deps.Advisories}}
{{range .Deps.Advisories}} {{end}}
dependencyversionadvisoryfixed indismiss
{{.Ecosystem}} {{.Name}} {{.Version}} {{.ID}} {{.Fixed}}
{{else if .Deps.LastCheck}}

No open advisories.

{{end}} {{if .Deps.NotImported}}

Not imported by any Go file here, so not reported:{{range .Deps.NotImported}} {{.ID}} ({{.Name}}){{end}}. Imports through another module are not seen.

{{end}} {{if .Deps.Dismissed}}

Dismissed advisories

{{range .Deps.Dismissed}} {{end}}
dependencyadvisoryreasonreopen
{{.Ecosystem}} {{.Name}} {{.ID}} {{.Reason}}{{if .By}} by {{.By}}{{end}}
{{end}} {{end}}

Runners

{{if .Runners}}
    {{range .Runners}}
  • {{.Fingerprint}} {{.Username}}{{if .LastSeen}}, last poll {{when .LastSeen}}{{else}}, never polled{{end}}{{if .BuildNumber}}, running {{.BuildRepo}} #{{.BuildNumber}} {{.BuildJob}}{{end}}{{if .Jobs}}, only {{join .Jobs ", "}}{{end}}
  • {{end}}
{{else}}

No runners attached. Builds for this repository run on the runners attached here; a repository with none queues builds nothing claims.

{{end}}

Install gitbay-runner, run gitbay-runner init, and paste the key it prints. The runner builds your commits with the repository's secrets; merge requests from forks wait unless it runs with -untrusted.

Leave empty for every job. Name jobs, comma-separated, to have this runner claim only those here, for instance gitbay-security on a runner with the code scanning image.

Lifecycle

Read-only for everyone. Issues and requests close to new activity. Reversible.

Clone URLs change. The old path stops resolving.

{{$path := printf "%s/%s" .Repo.OwnerName .Repo.Name}}

Move it to your own account or an organization you administer. Clone URLs change.

{{template "confirmfield" $path}}

Delete

Removes the repository, its issues and merge requests. Cannot be undone.

{{template "confirmfield" $path}}

{{end}}