-
Notifications
You must be signed in to change notification settings - Fork 5
Update repo to work as a real GitHub Template Repository #11
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,26 @@ | ||
| linters-settings: | ||
| gocyclo: | ||
| min-complexity: 25 | ||
| govet: | ||
| check-shadowing: false | ||
| misspell: | ||
| locale: "US" | ||
|
|
||
| version: "2" | ||
| linters: | ||
| enable-all: true | ||
| default: all | ||
| disable: | ||
| - stylecheck | ||
| - gosec | ||
| - dupl | ||
| - depguard | ||
| - lll | ||
| - prealloc | ||
| - gocritic | ||
| - gochecknoinits | ||
| - gochecknoglobals | ||
| - err113 | ||
| - exhaustruct | ||
| - testpackage | ||
| - paralleltest | ||
| - nlreturn | ||
| - funlen | ||
| - lll | ||
| - musttag | ||
| - perfsprint | ||
| # These are deprecated | ||
| - execinquery | ||
| - exportloopref | ||
| - gomnd | ||
| - testpackage | ||
| - varnamelen | ||
| - wsl | ||
| - wsl_v5 | ||
| settings: | ||
| misspell: | ||
| locale: US | ||
| exclusions: | ||
| presets: | ||
| - std-error-handling | ||
| formatters: | ||
| enable: | ||
| - gofmt | ||
| - gofumpt | ||
| - goimports |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,41 @@ | ||
| # gorepotemplate | ||
|
|
||
| [](https://github.com/letsencrypt/gorepotemplate/actions/workflows/test.yml?query=branch%3Amain) | ||
|
|
||
| A short description of the project goes here. | ||
| This repository serves as a template for other small go projects started by the | ||
| Let's Encrypt team. You should replace this title and description with one | ||
| appropriate to your project. | ||
|
|
||
| ## Usage | ||
|
|
||
| How to use the project, whether in source or binary form. | ||
| This section should describe how to use your project. Here's how to use this | ||
| template repo: | ||
|
|
||
| 1. Navigate to https://github.com/letsencrypt/gorepotemplate | ||
| 2. Click "Use this template" and select "Create a new repository" | ||
| 3. Select "letsencrypt" as the Owner of the repo, give it a good name, and | ||
| create it | ||
| 5. Set up the correct [general settings](settings): | ||
| - Under Features, only select "Issues" and "Preserve this repository" | ||
| - Under Pull Requests, only select "Allow squash merging", and set the commit | ||
| message to "Pull request title and description" | ||
| - Select "Automatically delete head branches" | ||
| 6. Set up the correct [team access](settings/teams): | ||
| - Grant both the Boulder Developers and Ops teams "write" permission | ||
| 7. Set up the correct [rulesets](settings/rules): | ||
| - Create a "New branch ruleset" | ||
| - Name it "Protect main", and set the target branches to "Include default | ||
| branch" | ||
| - Restrict creation, restrict deletion, require linear history, and block | ||
| force pushes | ||
| - Require a pull request before merging, with 1 required approval, dismissing | ||
| stale approvals, requiring review from Code Owners, and requiring approval | ||
| of the most recent reviewable push | ||
| - Only allow the Squash merge method | ||
| - Require status checks to pass, and add the "test" job as a required check. | ||
| 8. Create a PR updating this README file, and you're done! | ||
| - Optionally: also update the CODEOWNERS file to represent what team will own | ||
| this code. | ||
|
|
||
| ## Contributing | ||
|
|
||
| How to set up a development environment, make changes, and run tests. | ||
| This section should describe how to set up a development environment, make | ||
| changes, and run tests. |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| module github.com/letsencrypt/gorepotemplate | ||
|
|
||
| go 1.23 | ||
| go 1.24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Oh that’s neat