diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..302cfc4 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_size = 4 +indent_style = tab + +[*.{md,yml,yaml}] +indent_size = 2 +indent_style = space diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..ceb3c63 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,29 @@ +changelog: + exclude: + labels: + - skip changelog + categories: + - title: ๐Ÿ’ฃ Breaking Changes + labels: + - change + - title: ๐Ÿš€ Features + labels: + - enhancement + - title: ๐Ÿ› Bug Fixes + labels: + - bug + - title: ๐Ÿงช Tests + labels: + - tests + - title: ๐Ÿ”จ Maintenance + labels: + - chore + - title: ๐Ÿ“ Documentation + labels: + - documentation + - title: โฌ†๏ธ Dependencies + labels: + - dependencies + - title: Other Changes + labels: + - "*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41ea01a..a48996a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,8 @@ on: push: branches: - master + tags: + - "v[0-9]+.[0-9]+.[0-9]+*" pull_request: branches: - master @@ -31,3 +33,16 @@ jobs: - name: Run Unit Tests run: go test ./... -race -shuffle=on -v + + draft-release: + runs-on: ubuntu-24.04 + if: github.event_name != 'pull_request' + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - uses: lucacome/draft-release@v1.1.1 + with: + minor-label: "enhancement" + major-label: "change" + collapse-after: 20 diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..ae6ccc7 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,26 @@ +name: Pull Request Labeler +on: + - pull_request_target + +permissions: + contents: read + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: | + labeler.yml + sparse-checkout-cone-mode: false + repository: opentracing-contrib/common + + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true + configuration-path: labeler.yml diff --git a/README.md b/README.md index b7b5e1e..b6981f1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # OpenTracing support for gRPC in Go +[![CI](https://github.com/opentracing-contrib/go-grpc/actions/workflows/ci.yml/badge.svg)](https://github.com/opentracing-contrib/go-grpc/actions/workflows/ci.yml) +[![Go Report Card](https://goreportcard.com/badge/github.com/opentracing-contrib/go-grpc)](https://goreportcard.com/report/github.com/opentracing-contrib/go-grpc) +![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/opentracing-contrib/go-grpc) +[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/opentracing-contrib/go-grpc?logo=github&sort=semver)](https://github.com/opentracing-contrib/go-grpc/releases/latest) + The `otgrpc` package makes it easy to add OpenTracing support to gRPC-based systems in Go. diff --git a/renovate.json b/renovate.json index 8f399db..3219571 100644 --- a/renovate.json +++ b/renovate.json @@ -1,21 +1,7 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "automerge": true, - "automergeStrategy": "squash", - "commitBodyTable": true, - "configMigration": true, - "extends": [ - "config:recommended", - ":gitSignOff", - ":disableRateLimiting", - ":semanticCommitsDisabled" - ], - "labels": [ - "dependencies" - ], - "postUpdateOptions": [ - "gomodTidy", - "gomodUpdateImportPaths" - ], - "rebaseWhen": "behind-base-branch" + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "github>opentracing-contrib/common", + "schedule:daily" + ] }