Skip to content

Commit b6facee

Browse files
authored
Merge pull request #9 from ft-circleci-orbs/fix-github-settings
Update GitHub settings
2 parents cbbfcb2 + ced5d8f commit b6facee

File tree

1 file changed

+124
-18
lines changed

1 file changed

+124
-18
lines changed

.github/settings.yml

Lines changed: 124 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,139 @@
11
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
22

33
repository:
4+
# See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings.
5+
6+
# The name of the repository. Changing this will rename the repository
7+
# name: repo-name
8+
9+
# A short description of the repository that will show up on GitHub
10+
# description: description of repo
11+
12+
# A URL with more information about the repository
13+
# homepage: https://example.github.io/
14+
15+
# A comma-separated list of topics to set on the repository
16+
topics: github, probot, code-management
17+
18+
# Either `true` to make the repository private, or `false` to make it public.
19+
# private: false
20+
21+
# Either `true` to enable issues for this repository, `false` to disable them.
22+
# has_issues: true
23+
24+
# Either `true` to enable projects for this repository, or `false` to disable them.
25+
# If projects are disabled for the organization, passing `true` will cause an API error.
26+
has_projects: true
27+
28+
# Either `true` to enable the wiki for this repository, `false` to disable it.
29+
# has_wiki: true
30+
31+
# Either `true` to enable downloads for this repository, `false` to disable them.
32+
# has_downloads: true
33+
34+
# Updates the default branch for this repository.
435
default_branch: main
36+
37+
# Either `true` to allow squash-merging pull requests, or `false` to prevent
38+
# squash-merging.
39+
# allow_squash_merge: true
40+
41+
# Either `true` to allow merging pull requests with a merge commit, or `false`
42+
# to prevent merging pull requests with merge commits.
43+
# allow_merge_commit: true
44+
45+
# Either `true` to allow rebase-merging pull requests, or `false` to prevent
46+
# rebase-merging.
47+
# allow_rebase_merge: true
48+
49+
# Either `true` to enable automatic deletion of branches on merge, or `false` to disable
550
delete_branch_on_merge: true
6-
topics: code-management
751

52+
# Either `true` to enable automated security fixes, or `false` to disable
53+
# automated security fixes.
54+
# enable_automated_security_fixes: true
55+
56+
# Either `true` to enable vulnerability alerts, or `false` to disable
57+
# vulnerability alerts.
58+
# enable_vulnerability_alerts: true
59+
60+
# Labels: define labels for Issues and Pull Requests
61+
# labels:
62+
# - name: bug
63+
# color: CC0000
64+
# description: An issue with the system 🐛.
65+
66+
# - name: feature
67+
# # If including a `#`, make sure to wrap it with quotes!
68+
# color: '#336699'
69+
# description: New functionality.
70+
71+
# - name: Help Wanted
72+
# # Provide a new name to rename an existing label
73+
# new_name: first-timers-only
74+
75+
# Milestones: define milestones for Issues and Pull Requests
76+
# milestones:
77+
# - title: milestone-title
78+
# description: milestone-description
79+
# # The state of the milestone. Either `open` or `closed`
80+
# state: open
81+
82+
# Collaborators: give specific users access to this repository.
83+
# See https://docs.github.com/en/rest/reference/repos#add-a-repository-collaborator for available options
84+
# collaborators:
85+
# - username: bkeepers
86+
# permission: push
87+
# - username: hubot
88+
# permission: pull
89+
90+
# Note: `permission` is only valid on organization-owned repositories.
91+
# The permission to grant the collaborator. Can be one of:
92+
# * `pull` - can pull, but not push to or administer this repository.
93+
# * `push` - can pull and push, but not administer this repository.
94+
# * `admin` - can pull, push and administer this repository.
95+
# * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
96+
# * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
97+
98+
# See https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions for available options
899
teams:
9100
- name: code-management
101+
# The permission to grant the team. Can be one of:
102+
# * `pull` - can pull, but not push to or administer this repository.
103+
# * `push` - can pull and push, but not administer this repository.
104+
# * `admin` - can pull, push and administer this repository.
105+
# * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
106+
# * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
10107
permission: admin
108+
# - name: docs
109+
# permission: push
11110

12111
branches:
13112
- name: main
113+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
114+
# Branch Protection settings. Set to null to disable
14115
protection:
15-
required_pull_request_reviews: # Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
16-
required_approving_review_count: 1 # The number of approvals required. (1-6)
17-
dismiss_stale_reviews: false # Dismiss approved reviews automatically when a new commit is pushed.
18-
require_code_owner_reviews: true # Blocks merge until code owners have reviewed.
19-
dismissal_restrictions: # Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
116+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
117+
required_pull_request_reviews:
118+
# The number of approvals required. (1-6)
119+
required_approving_review_count: 1
120+
# Dismiss approved reviews automatically when a new commit is pushed.
121+
dismiss_stale_reviews: false
122+
# Blocks merge until code owners have reviewed.
123+
require_code_owner_reviews: true
124+
# Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
125+
dismissal_restrictions:
20126
users: []
21127
teams: []
22-
23-
required_status_checks: # Required. Require status checks to pass before merging. Set to null to disable
24-
strict: true # Required. Require branches to be up to date before merging.
25-
contexts: [] # Required. The list of status checks to require in order to merge into this branch
26-
# checks: [] # Don't list any checks that must pass by default.
27-
28-
enforce_admins: true # Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
29-
restrictions: null # Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
30-
31-
# Rules to explicitly disallow force pushes and branch deletions
32-
# allow_force_pushes: false
33-
# allow_deletions: false
128+
# Required. Require status checks to pass before merging. Set to null to disable
129+
required_status_checks:
130+
# Required. Require branches to be up to date before merging.
131+
strict: true
132+
# Required. The list of status checks to require in order to merge into this branch
133+
contexts: []
134+
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
135+
enforce_admins: true
136+
# Prevent merge commits from being pushed to matching branches
137+
required_linear_history: true
138+
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
139+
restrictions: null

0 commit comments

Comments
 (0)