Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
22 changes: 22 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,28 @@ file.
[monitored by codecov.io]: https://codecov.io/gh/google/go-github
[REVIEWERS]: ./REVIEWERS

### Windows users

Use Git Bash as a terminal or WSL instead of PowerShell.

To avoid [issues][] with a few linters and formatters within golangci-lint,
make sure you check out files only with LF endings:

```sh
git config core.autocrlf false
git config core.eol lf
```

To convert an existing cloned repo from CRLF to LF, use the following commands:

```sh
git config core.autocrlf false
git rm --cached -r .
git reset --hard HEAD
```

[issues]: https://github.com/golangci/golangci-lint/discussions/5840

## Tips

Although we have not (yet) banned AI-driven contributions to this repo (as many
Expand Down
2 changes: 1 addition & 1 deletion github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

//go:generate go run gen-accessors.go
//go:generate go run gen-stringify-test.go
//go:generate ../script/metadata.sh update-go
//go:generate sh ../script/metadata.sh update-go

package github

Expand Down
Loading