Skip to content

Commit 2cb7d3b

Browse files
authored
Merge pull request #10 from ft-circleci-orbs/test-github-settings
Add instructions to settings.yml
2 parents b6facee + d0889b6 commit 2cb7d3b

File tree

2 files changed

+148
-1
lines changed

2 files changed

+148
-1
lines changed

.github/settings.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# 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.
3+
# The app must be re-installed for new Organizations.
24

35
repository:
46
# See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings.
@@ -136,4 +138,7 @@ branches:
136138
# Prevent merge commits from being pushed to matching branches
137139
required_linear_history: true
138140
# 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
141+
restrictions:
142+
apps: []
143+
users: []
144+
teams: []

.github/settings_copy.yml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
3+
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: cloudsmith-circleci-orb
8+
9+
# A short description of the repository that will show up on GitHub
10+
description: A CircleCI orb to assist with downloading from and publishing packages to Cloudsmith.
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
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.
35+
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
50+
delete_branch_on_merge: true
51+
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
99+
teams:
100+
- name: core
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.
107+
permission: admin
108+
- name: docs
109+
permission: push
110+
111+
branches:
112+
- name: main
113+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
114+
# Branch Protection settings. Set to null to disable
115+
protection:
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: true
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:
126+
users: []
127+
teams: []
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:
140+
apps: []
141+
users: []
142+
teams: []

0 commit comments

Comments
 (0)