Skip to content

Commit 96bd6b3

Browse files
authored
Launch cleanup (2/n) (#83)
* Fix Apache 2.0 license copy * golangci-lint: Add timeout * .github: Add repo configuration settings Signed-off-by: Stephen Augustus <[email protected]>
1 parent b9e87d4 commit 96bd6b3

File tree

3 files changed

+89
-12
lines changed

3 files changed

+89
-12
lines changed

.github/settings.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
repository:
2+
# See https://developer.github.com/v3/repos/#edit for all available settings.
3+
4+
# The name of the repository. Changing this will rename the repository
5+
name: flame
6+
7+
# A short description of the repository that will show up on GitHub
8+
description: flame is a federated learning system for edge with flexibility and scalability at the core of its design.
9+
10+
# A URL with more information about the repository
11+
homepage: https://www.portshift.io/blog/kubernetes-runtime-vulnerabilities-scanner-launch/
12+
13+
# Updates the default branch for this repository.
14+
default_branch: main
15+
16+
# Either `true` to enable automated security fixes, or `false` to disable
17+
# automated security fixes.
18+
enable_automated_security_fixes: true
19+
20+
# Either `true` to enable vulnerability alerts, or `false` to disable
21+
# vulnerability alerts.
22+
enable_vulnerability_alerts: true
23+
24+
# See https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions for available options
25+
teams:
26+
- name: flame-admins
27+
# The permission to grant the team. Can be one of:
28+
# * `pull` - can pull, but not push to or administer this repository.
29+
# * `push` - can pull and push, but not administer this repository.
30+
# * `admin` - can pull, push and administer this repository.
31+
# * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
32+
permission: admin
33+
34+
- name: flame-maintainers
35+
permission: maintain
36+
37+
- name: flame
38+
permission: triage
39+
40+
# Collaborators: give specific users access to this repository.
41+
# See https://docs.github.com/en/rest/reference/collaborators for available options
42+
collaborators: []
43+
44+
branches:
45+
- name: main
46+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
47+
# Branch Protection settings. Set to null to disable
48+
protection:
49+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
50+
required_pull_request_reviews:
51+
# The number of approvals required. (1-6)
52+
required_approving_review_count: 1
53+
# Dismiss approved reviews automatically when a new commit is pushed.
54+
dismiss_stale_reviews: true
55+
# Blocks merge until code owners have reviewed.
56+
require_code_owner_reviews: true
57+
# 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.
58+
dismissal_restrictions:
59+
users: []
60+
teams: []
61+
# Required. Require status checks to pass before merging. Set to null to disable
62+
required_status_checks:
63+
# Required. Require branches to be up to date before merging.
64+
strict: true
65+
# Required. The list of status checks to require in order to merge into this branch
66+
contexts: []
67+
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
68+
enforce_admins: true
69+
# Prevent merge commits from being pushed to matching branches
70+
required_linear_history: true
71+
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
72+
restrictions:
73+
apps: []
74+
users: []
75+
teams: []

.golangci.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
---
2+
run:
3+
concurrency: 6
4+
deadline: 5m
5+
skip-dirs:
6+
- test/testdata_etc
7+
- internal/cache
8+
- internal/renameio
9+
- internal/robustio
10+
skip-files:
11+
- ".*\\_test\\.go$"
12+
- pkg/openapi/helpers.go
13+
114
linters-settings:
215
depguard:
316
list-type: blacklist
@@ -123,17 +136,6 @@ issues:
123136
- gocritic
124137
text: "unnecessaryDefer:"
125138

126-
run:
127-
skip-dirs:
128-
- test/testdata_etc
129-
- internal/cache
130-
- internal/renameio
131-
- internal/robustio
132-
133-
skip-files:
134-
- ".*\\_test\\.go$"
135-
- pkg/openapi/helpers.go
136-
137139
# golangci.com configuration
138140
# https://github.com/golangci/golangci/wiki/Configuration
139141
service:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2020 Portshift
189+
Copyright [yyyy] [name of copyright owner]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)