-
Notifications
You must be signed in to change notification settings - Fork 76
Manage GitHub settings via Probot #654
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
base: master
Are you sure you want to change the base?
Changes from 7 commits
85cbed8
2cee4c2
e141442
ce9f1e3
d3a3171
b03dd16
87b74d2
aef8dea
9c738c3
e77e6f5
be28ac3
1336e19
0378109
78289bf
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 |
---|---|---|
@@ -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 | ||
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 | ||
|
@@ -35,6 +70,10 @@ | |
channels: | ||
- "chat.freenode.org#voxpupuli-notifications" | ||
user: puppet | ||
CODEOWNERS: | ||
permissions: | ||
'.github/settings.yml': '@voxpupuli/project-maintainers' | ||
'*': '@voxpupuli/collaborators' | ||
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. this will send an email to every collaborator, right? Is that maybe too noisy? 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. Right now I purposely unwatched a lot of repositories precisely because of it. 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. 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': | ||
|
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') %> |
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,5 @@ | ||||||||||||||||||
<% if @configs['permissions'] -%> | ||||||||||||||||||
<% @configs['permissions'].each do |key, value| -%> | ||||||||||||||||||
<%= key %> <%= value %> | ||||||||||||||||||
<% end -%> | ||||||||||||||||||
<% end -%> | ||||||||||||||||||
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. Untested, but I think this will result in the same:
Suggested change
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. It does. Honestly, how many Ruby books do you have hidden under your pillow? ;) 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. None, I still consider myself a novice Ruby developer tbh. Just look at a bunch of other devs and PR reviews. Copy that. That's how I learned the language constructs. This one is called the safe navigation operator and was introduced in Ruby 2.3. Also read the core data structures (Array, Hash, String and Integer) when you deal with them. The list of methods is useful. Once you have a decent understanding of what's possible, you can express yourself much more powerful. |
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.
Maybe out of scope for this specific PR, but has there been discussion of changing the default branch name to main?
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.
AFAIK there has not been any discussion on this.