|
1 | 1 | # These settings are synced to GitHub by https://probot.github.io/apps/settings/ |
2 | | -# Once installed, the app is accessible to all repositories within a GitHub Organization, but must be re-installed for new Organizations. |
3 | 2 |
|
4 | 3 | repository: |
5 | | - # See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings. |
6 | | - |
7 | | - # The name of the repository. Changing this will rename the repository |
8 | | - # name: repo-name |
9 | | - |
10 | | - # A short description of the repository that will show up on GitHub |
11 | | - # description: description of repo |
12 | | - |
13 | | - # A URL with more information about the repository |
14 | | - # homepage: https://example.github.io/ |
15 | | - |
16 | | - # A comma-separated list of topics to set on the repository |
17 | | - topics: code-management |
18 | | - |
19 | | - # Either `true` to make the repository private, or `false` to make it public. |
20 | | - # private: false |
21 | | - |
22 | | - # Either `true` to enable issues for this repository, `false` to disable them. |
23 | | - # has_issues: true |
24 | | - |
25 | | - # Either `true` to enable projects for this repository, or `false` to disable them. |
26 | | - # If projects are disabled for the organization, passing `true` will cause an API error. |
27 | | - has_projects: true |
28 | | - |
29 | | - # Either `true` to enable the wiki for this repository, `false` to disable it. |
30 | | - # has_wiki: true |
31 | | - |
32 | | - # Either `true` to enable downloads for this repository, `false` to disable them. |
33 | | - # has_downloads: true |
34 | | - |
35 | | - # Updates the default branch for this repository. |
36 | 4 | default_branch: main |
37 | | - |
38 | | - # Either `true` to allow squash-merging pull requests, or `false` to prevent |
39 | | - # squash-merging. |
40 | | - # allow_squash_merge: true |
41 | | - |
42 | | - # Either `true` to allow merging pull requests with a merge commit, or `false` |
43 | | - # to prevent merging pull requests with merge commits. |
44 | | - # allow_merge_commit: true |
45 | | - |
46 | | - # Either `true` to allow rebase-merging pull requests, or `false` to prevent |
47 | | - # rebase-merging. |
48 | | - # allow_rebase_merge: true |
49 | | - |
50 | | - # Either `true` to enable automatic deletion of branches on merge, or `false` to disable |
51 | 5 | delete_branch_on_merge: true |
| 6 | + topics: code-management |
52 | 7 |
|
53 | | - # Either `true` to enable automated security fixes, or `false` to disable |
54 | | - # automated security fixes. |
55 | | - # enable_automated_security_fixes: true |
56 | | - |
57 | | - # Either `true` to enable vulnerability alerts, or `false` to disable |
58 | | - # vulnerability alerts. |
59 | | - # enable_vulnerability_alerts: true |
60 | | - |
61 | | -# Labels: define labels for Issues and Pull Requests |
62 | | -# labels: |
63 | | -# - name: bug |
64 | | -# color: CC0000 |
65 | | -# description: An issue with the system 🐛. |
66 | | - |
67 | | -# - name: feature |
68 | | -# # If including a `#`, make sure to wrap it with quotes! |
69 | | -# color: '#336699' |
70 | | -# description: New functionality. |
71 | | - |
72 | | -# - name: Help Wanted |
73 | | -# # Provide a new name to rename an existing label |
74 | | -# new_name: first-timers-only |
75 | | - |
76 | | -# Milestones: define milestones for Issues and Pull Requests |
77 | | -# milestones: |
78 | | -# - title: milestone-title |
79 | | -# description: milestone-description |
80 | | -# # The state of the milestone. Either `open` or `closed` |
81 | | -# state: open |
82 | | - |
83 | | -# Collaborators: give specific users access to this repository. |
84 | | -# See https://docs.github.com/en/rest/reference/repos#add-a-repository-collaborator for available options |
85 | | -# collaborators: |
86 | | - # - username: bkeepers |
87 | | - # permission: push |
88 | | - # - username: hubot |
89 | | - # permission: pull |
90 | | - |
91 | | - # Note: `permission` is only valid on organization-owned repositories. |
92 | | - # The permission to grant the collaborator. Can be one of: |
93 | | - # * `pull` - can pull, but not push to or administer this repository. |
94 | | - # * `push` - can pull and push, but not administer this repository. |
95 | | - # * `admin` - can pull, push and administer this repository. |
96 | | - # * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions. |
97 | | - # * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access. |
98 | | - |
99 | | -# See https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions for available options |
100 | 8 | teams: |
101 | 9 | - name: code-management |
102 | | - # The permission to grant the team. Can be one of: |
103 | | - # * `pull` - can pull, but not push to or administer this repository. |
104 | | - # * `push` - can pull and push, but not administer this repository. |
105 | | - # * `admin` - can pull, push and administer this repository. |
106 | | - # * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions. |
107 | | - # * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access. |
108 | 10 | permission: admin |
109 | | - # - name: docs |
110 | | - # permission: push |
111 | 11 |
|
112 | 12 | branches: |
113 | 13 | - name: main |
114 | | - # https://docs.github.com/en/rest/reference/repos#update-branch-protection |
115 | | - # Branch Protection settings. Set to null to disable |
116 | 14 | protection: |
117 | | - # Required. Require at least one approving review on a pull request, before merging. Set to null to disable. |
118 | | - required_pull_request_reviews: |
119 | | - # The number of approvals required. (1-6) |
120 | | - required_approving_review_count: 1 |
121 | | - # Dismiss approved reviews automatically when a new commit is pushed. |
122 | | - dismiss_stale_reviews: false |
123 | | - # Blocks merge until code owners have reviewed. |
124 | | - require_code_owner_reviews: true |
125 | | - # 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. |
126 | | - dismissal_restrictions: |
| 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. |
127 | 20 | users: [] |
128 | 21 | teams: [] |
129 | | - # Required. Require status checks to pass before merging. Set to null to disable |
130 | | - required_status_checks: |
131 | | - # Required. Require branches to be up to date before merging. |
132 | | - strict: true |
133 | | - # Required. The list of status checks to require in order to merge into this branch |
134 | | - contexts: [] |
135 | | - # Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable. |
136 | | - enforce_admins: true |
137 | | - # Prevent merge commits from being pushed to matching branches |
138 | | - required_linear_history: true |
139 | | - # Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable. |
140 | | - restrictions: |
141 | | - apps: [] |
142 | | - users: [] |
143 | | - 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 | + |
| 27 | + 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. |
| 28 | + 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. |
0 commit comments