Skip to content

Commit

Permalink
👷 tune release-plz
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <[email protected]>
  • Loading branch information
davidB committed Feb 24, 2024
1 parent c2b0eee commit 77c96bc
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [
"fake-opentelemetry-collector",
"init-tracing-opentelemetry",
"testing-tracing-opentelemetry",
# "tonic-tracing-opentelemetry",
"tonic-tracing-opentelemetry",
"tracing-opentelemetry-instrumentation-sdk",
]

Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,3 @@ Then :
## To release

Use the github workflow `release`.

<!--
```sh
#cargo ws publish --tag-prefix "" "prepatch" --all --no-individual-tags
just release "minor"
```
-->
2 changes: 1 addition & 1 deletion axum-tracing-opentelemetry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ categories = [
homepage = "https://github.com/davidB/tracing-opentelemetry-instrumentation-sdk/tree/main/axum-tracing-opentelemetry"
rust-version.workspace = true
edition.workspace = true
version.workspace = true
version = "0.17.0"
authors.workspace = true
repository.workspace = true
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion fake-opentelemetry-collector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ readme = "README.md"
keywords = ["tracing", "opentelemetry", "faker", "mock"]
categories = ["development-tools::testing"]
edition.workspace = true
version.workspace = true
version = "0.17.0"
authors.workspace = true
repository.workspace = true
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion init-tracing-opentelemetry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["tracing", "opentelemetry"]
categories = ["development-tools::debugging", "development-tools::profiling"]
homepage = "https://github.com/davidB/tracing-opentelemetry-instrumentation-sdk/tree/main/init-tracing-opentelemetry"
edition.workspace = true
version.workspace = true
version = "0.17.0"
authors.workspace = true
repository.workspace = true
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion testing-tracing-opentelemetry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ categories = ["development-tools::testing"]
homepage = "https://github.com/davidB/tracing-opentelemetry-instrumentation-sdk/tree/main/testing-tracing-opentelemetry"
publish = false
edition.workspace = true
version.workspace = true
version = "0.17.0"
authors.workspace = true
repository.workspace = true
license.workspace = true
Expand Down
12 changes: 5 additions & 7 deletions tonic-tracing-opentelemetry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,31 @@
name = "tonic-tracing-opentelemetry"
description = "Middlewares and tools to integrate tonic + tracing + opentelemetry."
readme = "README.md"
keywords = ["axum", "tracing", "opentelemetry"]
keywords = ["tonic", "tracing", "opentelemetry"]
categories = [
"development-tools::debugging",
"development-tools::profiling",
"web-programming",
]
homepage = "https://github.com/davidB/tracing-opentelemetry-instrumentation-sdk/tree/main/tonic-tracing-opentelemetry"
rust-version.workspace = true
edition.workspace = true
version.workspace = true
version = "0.15.4"
authors.workspace = true
repository.workspace = true
license.workspace = true


[dependencies]
futures-core = "0.3"
futures-util = { version = "0.3", default_features = false, features = [] }
http = { workspace = true }
http = "0.2"
http-body = "0.4"
hyper = "0.14"
pin-project-lite = "0.2"
tonic = { version = "0.10", default-features = false }
tonic = { version = "0.11", default-features = false }
tower = { version = "0.4", default-features = false }
tracing = { workspace = true }
tracing-opentelemetry = { workspace = true }
tracing-opentelemetry-instrumentation-sdk = { path = "../tracing-opentelemetry-instrumentation-sdk", features = [
tracing-opentelemetry-instrumentation-sdk = { features = [
"http",
], version = "0.15" }

Expand Down
2 changes: 1 addition & 1 deletion tracing-opentelemetry-instrumentation-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ categories = [
]
homepage = "https://github.com/davidB/tracing-opentelemetry-instrumentation-sdk/tree/main/tracing-opentelemetry-instrumentation-sdk"
edition.workspace = true
version.workspace = true
version = "0.17.0"
authors.workspace = true
repository.workspace = true
license.workspace = true
Expand Down
30 changes: 30 additions & 0 deletions tracing-opentelemetry-instrumentation-sdk/release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# [Configuration | Release-plz](https://release-plz.ieni.dev/docs/config)
[changelog]
sort_commits = "newest"
commit_preprocessors = [
# { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }, # remove issue numbers from commits
# { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"}, # replace issue numbers
]
# regex for parsing and grouping commits
# try to follow [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
commit_parsers = [
{ message = "^(🔒️|🔐)", group = "<!-- 0 -->Security" },
{ body = ".*security", group = "<!-- 0 -->Security" },
{ message = "^(fix|🐛|🚑️|👽️)", group = "<!-- 1 -->Fixed" },
{ message = "^(test|✅)", group = "<!-- 1 -->Fixed", skip = true },
{ message = "^.*: add", group = "<!-- 2 -->Added" },
{ message = "^.*: support", group = "<!-- 2 -->Added" },
{ message = "^(feat|✨|💥)", group = "<!-- 2 -->Added" },
{ message = "^.*: remove", group = "<!-- 3 -->Removed" },
{ message = "^.*: delete", group = "<!-- 3 -->Removed" },
{ message = "^(style|💄)", group = "<!-- 4 -->Changed" },
{ message = "^(doc|✏️|📝)", group = "<!-- 4 -->Changed" },
{ message = "^(perf|⚡️)", group = "<!-- 4 -->Changed" },
{ message = "^(chore|ci|💚|👷|🚧)", group = "<!-- 4 -->Changed", skip = true },
{ message = "^revert", group = "<!-- 4 -->Changed" },
{ message = "^(chore\\(deps\\)|⬇️|⬆️|➕|➖)", group = "<!-- 4 -->Changed" },
{ message = "^(refactor|🎨|🔥|♻️)", group = "<!-- 5 -->Refactor", skip = true },
{ message = "^(chore\\(release\\): prepare for|🔖|🚀)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
]

0 comments on commit 77c96bc

Please sign in to comment.