From 31cca5557f9edd3262ef21e11d339984774136e8 Mon Sep 17 00:00:00 2001 From: Miha Kralj Date: Mon, 22 Dec 2025 15:51:44 -0800 Subject: [PATCH] fix: update return statement to use spread operator for TSeries in Adx and Adxr classes --- GitVersion.yml | 7 ++++--- lib/momentum/adx/Adx.cs | 2 +- lib/momentum/adxr/Adxr.cs | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index c3eeb9bd..30ef3421 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,10 +1,11 @@ workflow: GitHubFlow/v1 +next-version: 0.8.0 assembly-versioning-scheme: MajorMinorPatch assembly-file-versioning-scheme: MajorMinorPatch tag-prefix: '[vV]' -major-version-bump-message: '\+semver:\s?(breaking|major)' -minor-version-bump-message: '\+semver:\s?(feature|minor)' -patch-version-bump-message: '\+semver:\s?(fix|patch)' +major-version-bump-message: '(\+semver:\s?(breaking|major)|(breaking|major)(\(.*\))?:)' +minor-version-bump-message: '(\+semver:\s?(feature|minor)|(feat|feature)(\(.*\))?:)' +patch-version-bump-message: '(\+semver:\s?(fix|patch)|(fix|patch)(\(.*\))?:)' no-bump-message: '\+semver:\s?(none|skip)' branches: main: diff --git a/lib/momentum/adx/Adx.cs b/lib/momentum/adx/Adx.cs index 709824fe..758edeb1 100644 --- a/lib/momentum/adx/Adx.cs +++ b/lib/momentum/adx/Adx.cs @@ -433,6 +433,6 @@ public sealed class Adx : ITValuePublisher tList.Add(times[i]); } - return new TSeries(tList, new List(v)); + return new TSeries(tList, [.. v]); } } diff --git a/lib/momentum/adxr/Adxr.cs b/lib/momentum/adxr/Adxr.cs index 152dbb2d..f4e88d17 100644 --- a/lib/momentum/adxr/Adxr.cs +++ b/lib/momentum/adxr/Adxr.cs @@ -230,6 +230,6 @@ public sealed class Adxr : ITValuePublisher tList.Add(times[i]); } - return new TSeries(tList, new List(v)); + return new TSeries(tList, [.. v]); } }