Hey, thank you if you're reading this, we welcome your contribution!
Please help us save time when reviewing your PR by following this simple process:
-
Is your PR a simple typo fix? Read no further, click that green "Create pull request" button!
-
For more complex PRs that involve behavior changes or new APIs, please consider opening an issue describing the problem you're trying to solve if there's not one already.
A PR is often one specific solution to a problem and sometimes talking about the problem unfolds new possible solutions. Remember we will be responsible for maintaining the changes later.
-
Fixing a bug and changing a behavior? Please add automated tests to prevent future regression.
-
Practice writing good commit messages. We have commit guidelines.
-
We have guidelines for PR submitters. A short summary:
- Good PR descriptions are very helpful and most of the time they include why something is done and why done in this particular way. Also list other possible solutions that were considered and discarded.
- Be your own first reviewer. Make sure your code compiles and passes the existing tests.
Please also read through our SDK Development docs. It contains information about SDK features, expected payloads and best practices for contributing to Sentry SDKs.
The public-facing channels for support and development of Sentry SDKs can be found on Discord.
$ go test
Use: https://github.com/cespare/reflex
$ reflex -g '*.go' -d "none" -- sh -c 'printf "\n"; go test'
$ go test -race
$ go test -race -coverprofile=coverage.txt -covermode=atomic && go tool cover -html coverage.txt
Lint with golangci-lint
:
$ golangci-lint run
-
Update
CHANGELOG.md
with new version invX.X.X
format title and list of changes.The command below can be used to get a list of changes since the last tag, with the format used in
CHANGELOG.md
:$ git log --no-merges --format=%s $(git describe --abbrev=0).. | sed 's/^/- /'
-
Commit with
misc: vX.X.X changelog
commit message and push tomaster
. -
Let
craft
do the rest:$ craft prepare X.X.X $ craft publish X.X.X