Skip to content

Commit d58a04b

Browse files
committed
Add components section when generating changelog
1 parent d9e1d16 commit d58a04b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Makefile

+17-1
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,25 @@ chlog-preview: chlog-install
488488
$(CHLOGGEN) update --dry
489489

490490
.PHONY: chlog-update
491-
chlog-update: chlog-install
491+
chlog-update: chlog-install chlog-insert-components
492492
$(CHLOGGEN) update --version $(VERSION)
493493

494+
.PHONY: chlog-insert-components
495+
chlog-insert-components:
496+
@echo "### Components" > components.md
497+
@echo "" >>components.md
498+
@echo "* [OpenTelemetry Collector - v${OTELCOL_VERSION}](https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v${OTELCOL_VERSION})" >>components.md
499+
@echo "* [OpenTelemetry Contrib - v${OTELCOL_VERSION}](https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v${OTELCOL_VERSION})" >>components.md
500+
@echo "* [Java auto-instrumentation - ${AUTO_INSTRUMENTATION_JAVA_VERSION}](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/tag/v${AUTO_INSTRUMENTATION_JAVA_VERSION})" >>components.md
501+
@echo "* [.NET auto-instrumentation - ${AUTO_INSTRUMENTATION_DOTNET_VERSION}](https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/tag/${AUTO_INSTRUMENTATION_DOTNET_VERSION})" >>components.md
502+
@echo "* [Node.JS - ${AUTO_INSTRUMENTATION_NODEJS_VERSION}](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/auto-instrumentations-node-${AUTO_INSTRUMENTATION_NODEJS_VERSION})" >>components.md
503+
@echo "* [Python - ${AUTO_INSTRUMENTATION_PYTHON_VERSION}](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/${AUTO_INSTRUMENTATION_PYTHON_VERSION})" >>components.md
504+
@echo "* [Go - v${AUTO_INSTRUMENTATION_GO_VERSION}](https://github.com/open-telemetry/opentelemetry-go-instrumentation/releases/tag/v${AUTO_INSTRUMENTATION_GO_VERSION})" >>components.md
505+
@echo "* [ApacheHTTPD - ${AUTO_INSTRUMENTATION_APACHE_HTTPD_VERSION}](https://github.com/open-telemetry/opentelemetry-cpp-contrib/releases/tag/webserver%2Fv${AUTO_INSTRUMENTATION_APACHE_HTTPD_VERSION})" >>components.md
506+
@echo "* [Nginx - ${AUTO_INSTRUMENTATION_NGINX_VERSION}](https://github.com/open-telemetry/opentelemetry-cpp-contrib/releases/tag/webserver%2Fv${AUTO_INSTRUMENTATION_NGINX_VERSION})" >>components.md
507+
@sed -i '/<!-- next version -->/rcomponents.md' CHANGELOG.md
508+
@sed -i '/<!-- next version -->/G' CHANGELOG.md
509+
@rm components.md
494510

495511
.PHONY: opm
496512
OPM = ./bin/opm

0 commit comments

Comments
 (0)