unity-builder/src/model
Boris Proshin b11b6a6f2c
Fix getVersionDescription() to prioritize version tags over non-version tags (#673)
* Fix getVersionDescription() to prioritize version tags over non-version tags

This fix modifies the getVersionDescription() method to ensure it only considers valid version tags when describing the current version. It retrieves all tags merged into the current branch, filters them based on a version-compatible regex, and uses the most recent valid version tag for description. If no valid tags are found, it falls back to the default description behavior. This resolves the issue of incorrect tags being used when multiple tags are present.

* Update versioning.ts

Rewrote getting the description for the last valid tag using `rev-list` and `rev-parse`

* Fix formatting

* Revert "dist"

This reverts commit bd58cbedf7.

* Revert "dist"

This reverts commit bd58cbedf7.
2024-10-08 00:06:50 +02:00
..
__data__ fix: make v character in version tags optional (#423) 2022-08-04 02:09:32 +02:00
__mocks__ Switch to version 1 images (#374) 2022-04-03 17:59:14 +02:00
__snapshots__ Switch to version 1 images (#374) 2022-04-03 17:59:14 +02:00
cli Cloud runner develop - Stabilizes kubernetes provider (#531) 2024-02-06 23:46:31 +00:00
cloud-runner Cloud runner develop - Stabilizes kubernetes provider (#531) 2024-02-06 23:46:31 +00:00
error Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
input-readers Cloud runner develop - latest fixes (#524) 2023-03-27 12:14:23 +01:00
platform-setup Add 'enableGpu' param, allowing running Unity w/o -nographics (#636) 2024-03-07 16:50:30 +01:00
platform-validation Enable unity licensing server for Windows (#638) 2024-03-26 20:11:33 +01:00
action.test.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
action.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
android-versioning.test.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
android-versioning.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
build-parameters.test.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
build-parameters.ts Add 'enableGpu' param, allowing running Unity w/o -nographics (#636) 2024-03-07 16:50:30 +01:00
cache.test.ts Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
cache.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
docker.test.ts perf: avoid building docker image (#365) 2022-03-31 01:16:30 +02:00
docker.ts Enable unity licensing server for Windows (#638) 2024-03-26 20:11:33 +01:00
github.ts Cloud runner develop - Stabilizes kubernetes provider (#531) 2024-02-06 23:46:31 +00:00
image-environment-factory.ts Add 'enableGpu' param, allowing running Unity w/o -nographics (#636) 2024-03-07 16:50:30 +01:00
image-tag.test.ts Hotfix: Fix version checking in image-tag (#640) 2024-03-17 13:33:23 -07:00
image-tag.ts Hotfix: Fix version checking in image-tag (#640) 2024-03-17 13:33:23 -07:00
index.test.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
index.ts Cloud Runner v2 (#310) 2022-02-01 02:31:20 +00:00
input.test.ts Add 'enableGpu' param, allowing running Unity w/o -nographics (#636) 2024-03-07 16:50:30 +01:00
input.ts Add 'enableGpu' param, allowing running Unity w/o -nographics (#636) 2024-03-07 16:50:30 +01:00
mac-builder.ts Fix pro activation (#602) 2023-11-27 23:24:58 -08:00
output.test.ts feat: Android updates for Windows and androidVersionCode output (#478) 2022-11-23 10:06:58 +01:00
output.ts Fix pro activation (#602) 2023-11-27 23:24:58 -08:00
platform-setup.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
platform.test.ts Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
platform.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
project.test.ts Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
project.ts Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
shared-types.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
system-integration.test.ts BREAKING (potentially) - Bump docker version (Ubuntu 22.04 LTS) (#556) 2023-08-22 10:03:32 +02:00
system.test.ts Streamline code styles (#384) 2022-04-12 00:43:41 +02:00
system.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
unity-versioning.test.ts Use capture group to find Unity version to support new 6000 versions (#639) 2024-03-16 21:31:46 -07:00
unity-versioning.ts Use capture group to find Unity version to support new 6000 versions (#639) 2024-03-16 21:31:46 -07:00
unity.test.ts Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
unity.ts Refactor action to typescript (#226) 2021-03-14 00:44:01 +01:00
versioning.test.ts Code cleanup (#511) 2023-03-03 16:25:40 -08:00
versioning.ts Fix getVersionDescription() to prioritize version tags over non-version tags (#673) 2024-10-08 00:06:50 +02:00