Use GitVersion (Mainline development mode) for semantic versioning in Azure DevOps using Git Hooks

Use GitVersion (Mainline development mode) for semantic versioning in Azure DevOps using Git Hooks

Raaviblog

2 года назад

6,917 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@raghur5678
@raghur5678 - 05.12.2022 12:30

Hi thanks for the video.. i have one problm like when i am running on my feature branch the Tag version is 1.0.1, whn merging with the Develop Branch its getting changed to 271.1.0,but i want to be with 1.0.1 version for the Client SDK and the Data N Service Dll... but why its getting changed? any idea

Ответить
@haiyandu9485
@haiyandu9485 - 22.07.2022 22:15

Can you post your git hook file here? prepare-commit-msg
it complain "sed: -e expression #1, char 2: extra characters after command"

here is my file content

#!/bin/sh
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2> /dev/null | grep -oE "[a-z]+[/]")
if [ "$BRANCH_NAME" = "feature/" ]; then
sed -i.bak -e "ls/$/[+semver: minor]/" $1
fi

Ответить
@timmkrause6684
@timmkrause6684 - 15.12.2021 00:20

Instead of using a Git hook which every developer needs to configure wouldn't it be better to control this via the GitVersion.yml as well?

branches:
feature:
increment: Minor

Ответить
@elvargas1327
@elvargas1327 - 14.12.2021 00:18

I don't understand why my minor 'feature' never changes

Ответить
@tommiwiren2405
@tommiwiren2405 - 08.12.2021 00:00

Excellent video! Thank you!

Ответить