| 114 | 114 | | | **Details** | Its website and topics, shown on its page, in [search and Explore](/guides/search/). Its description is its project's, on **General**. | |
| 115 | 115 | | | **Branches** | The default branch, renaming a branch, and a link to **Branches and merging**: [branch protection](/guides/git/#protected-branches), [required status checks](/guides/pull-requests/#required-status-checks), required approvals, and the [merge queue](/guides/merge-queue/). What a sandbox may reach is under **Guardrails**; see [guardrails](/guides/guardrails/). | |
| 116 | 116 | | | **Artifacts** | How many days the files workflow runs upload are kept, 1 to 90 (14 unless changed). See [artifacts](/guides/actions/#artifacts). | |
| 117 | | − | | **Features** | Whether it has issues. A [fork](/concepts/forks/) starts with them off. | |
| 117 | + | | **Features** | Whether it has issues (a [fork](/concepts/forks/) starts with them off), and whether merges and commits close issues. See [issues](#issues). | |
| 118 | + | | **Commits** | Sign-off on commits made on g1t, and comments on commits. See [commits](#commits). | |
| 119 | + | | **Pushes** | How many branches and tags one push may update. See [pushes](#pushes). | |
| 120 | + | | **Archives** | Whether downloads hold Git LFS objects. Coming soon. | |
| 118 | 121 | | | **Forking** | For a private repository, whether people who can read it may [fork it](/guides/forking-repositories/#allow-forking-a-private-repository). Public repositories can always be forked. | |
| 119 | 122 | | | **Danger zone** | Change visibility, archive, [transfer](/guides/transferring-repositories/), [detach a fork](/guides/forking-repositories/#detach-a-fork) and delete. Shown to people with the Admin role. | |
| 120 | 123 | | |
| ⋯ |
| 131 | 134 | | [`PATCH /repos/{owner}/{name}`](/reference/api/repositories/update-repo/)'s. |
| 132 | 135 | | Fields you leave out stay as they are. Changing them needs the Maintain |
| 133 | 136 | | [role](/guides/access-and-roles/) or higher; `max_ref_updates` needs Admin. |
| 137 | + | The pull request settings are on the repository's **Settings → Branches |
| 138 | + | and merging** page; the rest are on **Settings → Repository**, in the |
| 139 | + | sections named below. |
| 134 | 140 | | |
| 135 | 141 | | ### Pull requests |
| 136 | 142 | | |
| 143 | + | On **Settings → Branches and merging**, under **Merge methods**, |
| 144 | + | **Updating branches**, **Auto-merge** and **After merging**. Merge commits |
| 145 | + | and squash merging, the two methods that write a commit message, each have |
| 146 | + | a **Default commit message** and, with **Custom template**, a **Template**, |
| 147 | + | with a preview of the message it makes. |
| 148 | + | |
| 137 | 149 | | | Setting | Field | Default | What it does | |
| 138 | 150 | | | --- | --- | --- | --- | |
| 139 | 151 | | | Allow merge commits | `allow_merge_commit` | On | Pull requests may merge with a merge commit (`merge`). | |
| ⋯ |
| 141 | 153 | | | Allow rebase merging | `allow_rebase_merge` | On | They may merge by making each commit again on the base (`rebase`). | |
| 142 | 154 | | | Allow fast-forward merging | `allow_fast_forward` | Off | They may merge by moving the base to their head, with no new commit (`fast_forward`). | |
| 143 | 155 | | | Default merge method | `default_merge_method` | `merge` | The method the merge button offers first, and the one a merge that names none uses. It must be allowed. | |
| 144 | | − | | Default merge commit message | `merge_commit_message` | `default` | What a merge commit says unless its merger writes it: `default`, `pull_title`, `pull_title_and_description` or `custom`. | |
| 145 | | − | | Default squash commit message | `squash_commit_message` | `default` | What a squash commit says: the same, and `pull_title_and_commits`. | |
| 146 | | − | | Merge and squash commit templates | `merge_commit_template`, `squash_commit_template` | None | The message used with `custom`, with [placeholders](/guides/pull-requests/#commit-messages). An empty string clears it. | |
| 147 | | − | | Always suggest updating branches | `suggest_updating_branches` | On | Offer to update a pull request's branch whenever its base has new commits, not only when it must be up to date. | |
| 156 | + | | Default commit message, under Allow merge commits | `merge_commit_message` | `default` | What a merge commit says unless its merger writes it: **Default message** (`default`), **Pull request title** (`pull_title`), **Pull request title and description** (`pull_title_and_description`) or **Custom template** (`custom`). | |
| 157 | + | | Default commit message, under Allow squash merging | `squash_commit_message` | `default` | What a squash commit says: the same, and **Pull request title and commit details** (`pull_title_and_commits`). | |
| 158 | + | | Template | `merge_commit_template`, `squash_commit_template` | None | The message used with `custom`, with [placeholders](/guides/pull-requests/#commit-messages). An empty string clears it. | |
| 159 | + | | Always suggest updating pull request branches | `suggest_updating_branches` | On | Offer to update a pull request's branch whenever its base has new commits, not only when it must be up to date. | |
| 148 | 160 | | | Allow auto-merge | `allow_auto_merge` | On | People may turn on [auto-merge](/guides/pull-requests/#auto-merge) for a pull request. | |
| 149 | | − | | Delete branches when they merge | `delete_branch_on_merge` | Off | A pull request's branch is deleted once it merges. It can be [restored](/guides/pull-requests/#deleting-the-branch) from the pull request. | |
| 161 | + | | Automatically delete head branches | `delete_branch_on_merge` | Off | A pull request's branch is deleted once it merges. It can be [restored](/guides/pull-requests/#deleting-the-branch) from the pull request. | |
| 150 | 162 | | |
| 151 | 163 | | At least one method stays allowed. [Rules](/guides/rules/#pull-requests-and-checks) |
| 152 | 164 | | can narrow the methods for a branch, with `allowed_merge_methods` and |
| ⋯ |
| 154 | 166 | | |
| 155 | 167 | | ### Commits |
| 156 | 168 | | |
| 169 | + | On **Settings → Repository**, under **Commits**. |
| 170 | + | |
| 157 | 171 | | | Setting | Field | Default | What it does | |
| 158 | 172 | | | --- | --- | --- | --- | |
| 159 | | − | | Require sign-off on web commits | `require_web_commit_sign_off` | Off | Commits made on g1t (web edits, merge and squash commits) end with a `Signed-off-by:` trailer for whoever made them, agreeing to the repository's terms, commonly the Developer Certificate of Origin. | |
| 160 | | − | | Allow comments on commits | `allow_commit_comments` | On | Anyone who can read the repository may [comment on its commits](/guides/pull-requests/#commit-comments). Off keeps existing comments readable and refuses new ones. | |
| 173 | + | | Require contributors to sign off on web-based commits | `require_web_commit_sign_off` | Off | Commits made on g1t (web edits, merge and squash commits) end with a `Signed-off-by:` trailer for whoever made them, agreeing to the repository's terms, commonly the Developer Certificate of Origin. | |
| 174 | + | | Allow comments on individual commits | `allow_commit_comments` | On | Anyone who can read the repository may [comment on its commits](/guides/pull-requests/#commit-comments). Off keeps existing comments readable and refuses new ones. | |
| 161 | 175 | | |
| 162 | 176 | | ### Pushes |
| 163 | 177 | | |
| 178 | + | On **Settings → Repository**, under **Pushes**. Turned on, it asks for |
| 179 | + | **Most branches and tags per push**. |
| 180 | + | |
| 164 | 181 | | | Setting | Field | Default | What it does | |
| 165 | 182 | | | --- | --- | --- | --- | |
| 166 | | − | | Limit how many branches and tags a push can update | `max_ref_updates` | No limit | The most branches and tags one push may create, move or delete, 1 to 1,000. A push that would change more is declined whole, so nothing of it lands: "This push changes N branches and tags; owner/name takes at most M at a time. Push fewer at once." `0` removes the limit. | |
| 183 | + | | Limit how many branches and tags can be updated in a single push | `max_ref_updates` | No limit | The most branches and tags one push may create, move or delete, 1 to 1,000. A push that would change more is declined whole, so nothing of it lands: "This push changes N branches and tags; owner/name takes at most M at a time. Push fewer at once." `0` removes the limit. | |
| 167 | 184 | | |
| 168 | 185 | | ### Archives |
| 169 | 186 | | |
| 187 | + | On **Settings → Repository**, under **Archives**. |
| 188 | + | |
| 170 | 189 | | | Setting | Field | Default | What it does | |
| 171 | 190 | | | --- | --- | --- | --- | |
| 172 | 191 | | | Include Git LFS objects in archives | None yet | Off | Coming soon. g1t does not store Git LFS files yet (see [limitations](/about/limitations/)), so archives hold what git stores; the setting is shown, turned off, until it does. | |
| 173 | 192 | | |
| 174 | 193 | | ### Issues |
| 175 | 194 | | |
| 195 | + | On **Settings → Repository**, under **Features**. |
| 196 | + | |
| 176 | 197 | | | Setting | Field | Default | What it does | |
| 177 | 198 | | | --- | --- | --- | --- | |
| 178 | 199 | | | Issues | `has_issues` | On; off for a [fork](/concepts/forks/) | Whether issues can be opened. Off keeps existing issues readable. `null` goes back to the default. `issues_enabled` says whether they can be opened now. | |
| 179 | | − | | Close issues when pull requests merge | `auto_close_issues` | On | A pull request that merges into the default branch closes its issue and those it names after a [closing keyword](/guides/pull-requests/#closing-issues), and so does a commit pushed to the default branch whose message names them. | |
| 200 | + | | Auto-close issues with merged linked pull requests | `auto_close_issues` | On | A pull request that merges into the default branch closes its issue and those it names after a [closing keyword](/guides/pull-requests/#closing-issues), and so does a commit pushed to the default branch whose message names them. | |
| 180 | 201 | | |
| 181 | 202 | | ```sh |
| 182 | 203 | | curl -X PATCH https://api.g1t.sh/repos/acme/rocket/settings \ |