Skip to content

Commit 2cb1897

Browse files
Update repo.yaml
1 parent 55f150d commit 2cb1897

1 file changed

Lines changed: 159 additions & 6 deletions

File tree

safe-settings/repos/repo.yaml

Lines changed: 159 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,163 @@
1-
# This settings file can be used to create repo-level settings
2-
1+
# This settings can be used to create repo level settings
32
repository:
4-
name: devopscaptain1
3+
# Name of the repo
4+
name: devocp
55
organization: devopscaptain
6-
# Create the repo if doesn't exist
6+
# Create the repo if it is not existing
77
force_create: true
88

9-
# Use a template when creating the rep
10-
# Every other property is the same as the org level settings and can be overridden here
9+
# Use a template when creating the repo
10+
# template: template_repo
11+
12+
# This is the settings that need to be applied to all repositories in the org
13+
# See https://developer.github.com/v3/repos/#edit for all available settings for a repository
14+
# A short description of the repository that will show up on GitHub
15+
description: description of the repo
16+
17+
# A URL with more information about the repository
18+
homepage: https://example.github.io/
19+
20+
# Keep this as true for most cases
21+
# A lot of the policies below cannot be implemented on bare repos
22+
# Pass true to create an initial commit with empty README.
23+
auto_init: true
24+
25+
# A comma-separated list of topics to set on the repository
26+
topics:
27+
- github
28+
- safe-settings
29+
- new-topic
30+
- another-topic
31+
- topic-12
32+
33+
# Settings for Code security and analysis
34+
# Dependabot Alerts
35+
security:
36+
enableVulnerabilityAlerts: true
37+
enableAutomatedSecurityFixes: true
38+
39+
40+
# Either `true` to enable issues for this repository, `false` to disable them.
41+
has_issues: true
42+
43+
# Either `true` to enable projects for this repository, or `false` to disable them.
44+
# If projects are disabled for the organization, passing `true` will cause an API error.
45+
has_projects: true
46+
47+
# Either `true` to enable the wiki for this repository, `false` to disable it.
48+
has_wiki: true
49+
50+
# The default branch for this repository.
51+
default_branch: main
52+
53+
# Desired language or platform [.gitignore template](https://github.com/github/gitignore)
54+
# to apply. Use the name of the template without the extension.
55+
# For example, "Haskell".
56+
#gitignore_template: node
57+
58+
# Choose an [open source license template](https://choosealicense.com/)
59+
# that best suits your needs, and then use the
60+
# [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type)
61+
# as the `license_template` string. For example, "mit" or "mpl-2.0".
62+
license_template: mit
63+
64+
# Either `true` to allow squash-merging pull requests, or `false` to prevent
65+
# squash-merging.
66+
allow_squash_merge: true
67+
68+
# Either `true` to allow merging pull requests with a merge commit, or `false`
69+
# to prevent merging pull requests with merge commits.
70+
allow_merge_commit: true
71+
72+
# Either `true` to allow rebase-merging pull requests, or `false` to prevent
73+
# rebase-merging.
74+
allow_rebase_merge: true
75+
76+
# Either `true` to allow auto-merge on pull requests,
77+
# or `false` to disallow auto-merge.
78+
# Default: `false`
79+
allow_auto_merge: false
80+
81+
# Either `true` to allow automatically deleting head branches
82+
# when pull requests are merged, or `false` to prevent automatic deletion.
83+
# Default: `false`
84+
delete_branch_on_merge: false
85+
86+
# The following attributes are applied to any repo within the org
87+
# So if a repo is not listed above is created or edited
88+
# The app will apply the following settings to it
89+
labels:
90+
# Labels: define labels for Issues and Pull Requests
91+
- name: bug
92+
color: CC0000
93+
description: An issue with the system
94+
95+
- name: feature
96+
# If including a `#`, make sure to wrap it with quotes!
97+
color: '#336699'
98+
description: New functionality.
99+
100+
- name: first-timers-only
101+
# include the old name to rename an existing label
102+
oldname: Help Wanted
103+
color: '#326699'
104+
105+
- name: new-label
106+
# include the old name to rename an existing label
107+
oldname: Help Wanted
108+
color: '#326699'
109+
110+
111+
# You can include a list of repos for this collaborator and only those repos would have this collaborator
112+
113+
# See https://developer.github.com/v3/teams/#add-or-update-team-repository for available options
114+
# The permission to grant the team. Can be one of:
115+
# * `pull` - can pull, but not push to or administer this repository.
116+
# * `push` - can pull and push, but not administer this repository.
117+
# * `admin` - can pull, push and administer this repository.
118+
119+
# You can exclude a list of repos for this collaborator and all repos except these repos would have this collaborator
120+
121+
122+
branches:
123+
# If the name of the branch value is specified as `default`, then the app will create a branch protection rule to apply against the default branch in the repo
124+
- name: default
125+
# https://developer.github.com/v3/repos/branches/#update-branch-protection
126+
# Branch Protection settings. Set to null to disable
127+
protection:
128+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
129+
required_pull_request_reviews:
130+
# The number of approvals required. (1-6)
131+
required_approving_review_count: 1
132+
# Dismiss approved reviews automatically when a new commit is pushed.
133+
dismiss_stale_reviews: true
134+
# Blocks merge until code owners have reviewed.
135+
require_code_owner_reviews: true
136+
# Whether the most recent reviewable push must be approved by someone other than the person who pushed it.
137+
require_last_push_approval: true
138+
# Allow specific users, teams, or apps to bypass pull request requirements. Set to null to disable.
139+
bypass_pull_request_allowances:
140+
apps: []
141+
users: []
142+
teams: []
143+
# 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.
144+
dismissal_restrictions:
145+
users: []
146+
teams: []
147+
# Required. Require status checks to pass before merging. Set to null to disable
148+
required_status_checks:
149+
# Required. Require branches to be up to date before merging.
150+
strict: true
151+
# Required. The list of status checks to require in order to merge into this branch
152+
contexts: []
153+
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
154+
enforce_admins: true
155+
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
156+
restrictions:
157+
apps: []
158+
users: []
159+
teams: []
160+
161+
validator:
162+
pattern: '[a-zA-Z0-9_-]+_[a-zA-Z0-9_-]+.*'
163+

0 commit comments

Comments
 (0)