Note
This section can be applied to repos/<file>.yml or suborgs/<file>.yml. It will most commonly appear in the individual repos though. Defaults will be taken from settings.yml.
# These settings are synced to GitHub by https://github.com/github/safe-settings
repository:
auto_init: true
gitignore_template: node
license_template: mit
description: This is my repository description
homepage: https://www.example.com
private: true
visibility: internal
topics: [github, probot, new-topic, another-topic, topic-12]
security_and_analysis:
advanced_security:
status: enabled
secret_scanning:
status: enabled
secret_scanning_push_protection:
status: enabled
has_issues: true
has_projects: false
has_wiki: false
is_template: false
default_branch: main
allow_squash_merge: true
allow_merge_commit: true
allow_rebase_merge: true
allow_auto_merge: true
delete_branch_on_merge: true
allow_update_branch: true
squash_merge_commit_title: PR_TITLE
squash_merge_commit_message: COMMIT_MESSAGES
merge_commit_title: PR_TITLE
merge_commit_message: PR_TITLE
archived: false
allow_forking: false
web_commit_signoff_required: false
security:
enableVulnerabilityAlerts: true
enableAutomatedSecurityFixes: trueTip
GitHub's API documentation defines these inputs and types:
|
This is the name of the repository |
Example:
repository:
- name: super-repo
... |
|
A short description of this repository |
Example:
repository:
- description: This repo is so awesome, we named it super-repo
... |
|
A URL with more information about the repository. |
Example:
repository:
- homepage: https://awesomeness.super-repo.com
... |
|
Either true to make the repository private or false to make it public. Default: Default: |
Example:
repository:
- private: true
... |
|
The visibility of the repository. It is recommended to set your defaults to Can be one of: |
Example:
repository:
- private: true
visibility: internal
... |
|
Specify which security and analysis features to enable or disable for the repository. To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "Managing security managers in your organization." Properties of
|
repository:
security_and_analysis:
advanced_security:
status: enabled
secret_scanning:
status: enabled
secret_scanning_push_protection:
status: enabled
... |
|
Either true to enable issues for this repository or Default: |
repository:
- has_issues: false
... |
|
Either Default: |
repository:
- has_projects: false
... |
|
Either Default: |
repository:
- has_wiki: false
... |
|
Either Default: |
repository:
- is_template: false
... |
|
Updates the default branch for this repository. |
repository:
- default_branch: main
... |
|
Either Default: |
repository:
- allow_squash_merge: false
... |
|
Either Default: |
repository:
- allow_merge_commit: false
... |
|
Either Default: |
repository:
- allow_rebase_merge: false
... |
|
Either Default: |
repository:
- allow_auto_merge: true
... |
|
Either Default: |
repository:
- delete_branch_on_merge: true
... |
|
Either Default: |
repository:
- allow_update_branch: true
... |
|
The default value for a squash merge commit title: • Can be one of: |
repository:
- squash_merge_commit_title: PR_TITLE
... |
|
The default value for a squash merge commit title: • Can be one of: |
repository:
- squash_merge_commit_message: PR_BODY
... |
|
The default value for a squash merge commit title: • Can be one of: |
repository:
- merge_commit_title: PR_TITLE
... |
|
The default value for a squash merge commit title: • Can be one of: |
repository:
- merge_commit_message: PR_BODY
... |
|
Whether to archive this repository. Default: |
repository:
- archived: true
... |
|
Either Default: |
repository:
- allow_forking: false
... |
|
Either Default: |
repository:
- web_commit_signoff_required: false
... |