-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc more opts #480
doc more opts #480
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,18 @@ repository: | |
# vulnerability alerts. | ||
enable_vulnerability_alerts: true | ||
|
||
# Either `true` to make this repo available as a template repository or `false` to prevent it. | ||
is_template: false | ||
# template_repository: false | ||
|
||
# Note: You cannot unarchive repositories through the API. `true` to archive this repository. | ||
archived: false | ||
|
||
# Can be `public`, `private` or `internal` | ||
electriquo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
visibility: public | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this conflict with the existing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. they are different and it depends whether you are github enterprise user and what is the organization (within the enterprise) policy. e.g. the organization set the default repository visibility to private, even if one will use here are some references for clarity (i don't want to copy and paste): There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i guess what i'm getting at is that i think we should clarify what happens when both
i think this is the other piece that should be mentioned here since
|
||
|
||
|
||
|
||
# Labels: define labels for Issues and Pull Requests | ||
labels: | ||
- name: bug | ||
|
@@ -146,6 +158,8 @@ branches: | |
strict: true | ||
# Required. The list of status checks to require in order to merge into this branch | ||
contexts: [] | ||
# Commits pushed to matching branches must have verified signatures. Set to false to disable. | ||
electriquo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
required_signatures: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i dont find this attribute mentioned in the docs at https://docs.github.com/en/rest/reference/repos#update-branch-protection did you find details about this one somewhere else? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. found it on https://docs.github.com/en/rest/reference/repos#create-commit-signature-protection and although i am writing it in this comment, all new addition have been tested. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can also find earlier confirmation of @foolioo's statement in this comment |
||
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable. | ||
enforce_admins: true | ||
# Prevent merge commits from being pushed to matching branches | ||
|
@@ -155,6 +169,12 @@ branches: | |
apps: [] | ||
users: [] | ||
teams: [] | ||
# Permits force pushes for all users with push access. Set to null to disable. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i dont think "disable" makes sense for this one There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to which world would you like to change it? |
||
allow_force_pushes: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no value is provided here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no value is considered |
||
# Allows users with push access to delete matching branches. Set to false to disable. | ||
electriquo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
allow_deletions: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. disable doesnt really make sense for this one either There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i only kept the same terminology. although there are many places when https://github.com/foolioo/settings/blob/4250d82870301f6df716780ddc90a50a0540e98f/README.md#L36 |
||
# Ensure all review conversations are seen and addressed prior to merging | ||
required_conversation_resolution: true | ||
``` | ||
|
||
### Notes | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see
is_template
listed on https://docs.github.com/en/rest/reference/repos#update-a-repository, but i dont findtemplate_repository
mentioned there. were both intentionally included here?also, is there a reason that this one is commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can see it on https://docs.github.com/en/rest/reference/repos#list-organization-repositories