vikunja-api/vendor/github.com/getsentry/sentry-go/CONTRIBUTING.md
konrad d02d413c5e Sentry integration (#591)
Use sentry echo integration to send errors

Only capture errors not already handled by echo

Add sentry panic handler

Add sentry library

Add sentry init

Add sentry config

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/591
2020-06-19 18:47:15 +00:00

1.1 KiB

Community

The public-facing channels for support and development of Sentry SDKs can be found on Discord.

Testing

$ go test

Watch mode

Use: https://github.com/cespare/reflex

$ reflex -g '*.go' -d "none" -- sh -c 'printf "\n"; go test'

With data race detection

$ go test -race

Coverage

$ go test -race -coverprofile=coverage.txt -covermode=atomic && go tool cover -html coverage.txt

Linting

$ golangci-lint run

Release

  1. Update CHANGELOG.md with new version in vX.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/^/- /'
    
  2. Commit with misc: vX.X.X changelog commit message and push to master.

  3. Let craft do the rest:

    $ craft prepare X.X.X
    $ craft publish X.X.X