Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions config_defaults.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
---
.github/settings.yml:
repository:
private: false
has_issues: true
has_projects: false
has_wiki: false
has_downloads: true
default_branch: master
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe out of scope for this specific PR, but has there been discussion of changing the default branch name to main?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK there has not been any discussion on this.

allow_squash_merge: true
allow_merge_commit: true
allow_rebase_merge: true
delete_branch_on_merge: true
archived: false
branches:
- name: master
protection:
required_pull_request_reviews:
required_approving_review_count: 1
dismiss_stale_reviews: true
require_code_owner_reviews: true
required_status_checks:
strict: true
contexts: []
enforce_admins: undef
restrictions: undef
required_signatures: true
- name: modulesync
protection:
required_pull_request_reviews: undef
required_status_checks:
strict: true
contexts: []
enforce_admins: undef
restrictions: undef
required_signatures: true
.travis.yml:
before_install:
- yes | gem update --system
Expand Down Expand Up @@ -35,6 +70,10 @@
channels:
- "chat.freenode.org#voxpupuli-notifications"
user: puppet
CODEOWNERS:
permissions:
'.github/settings.yml': '@voxpupuli/project-maintainers'
'*': '@voxpupuli/collaborators'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will send an email to every collaborator, right? Is that maybe too noisy?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now I purposely unwatched a lot of repositories precisely because of it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn. This was supposed to be a failsafe, according to the docs of Probot. I will drop the last line, but the first one is necessary:

Gemfile:
required:
':test':
Expand Down
1 change: 1 addition & 0 deletions moduleroot/.github/settings.yml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= @configs.slice('repository', 'labels', 'milestones', 'collaborators', 'teams', 'branches').to_yaml.gsub(/undef/, 'null') %>
3 changes: 3 additions & 0 deletions moduleroot/CODEOWNERS.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<% @configs['permissions']&.each do |key, value| -%>
<%= key %> <%= value %>
<% end -%>