gaelcolas / gaelcolas/Sampler

Only evaluate version using GitVersion if GitVersion.yml exist in repository

Open
#334 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
PowerShell
Stars
243
Forks
46
Avg merge
1h 41m
Merged PRs (30d)
1

Description

### Problem description

It is possible to not add configuration files for GitVersion when creating a module using the templates. But if GitVersion is installed it will be used regardless.

### Verbose logs

```text
n/a
```

### How to reproduce

Created a module using a template and skip adding GItVersion configuration.

### Expected behavior

Not to use GitVersion if configuration is not available.

### Current behavior

Always uses GitVersion if installed.

### Suggested solution

Maybe we could make it so that the task only tries GitVersion if the file `Gitversion.yml` is present.

### Operating system the target node is running

```text
n/a
```

### PowerShell version and build the target node is running

```text
n/a
```

### Module version used

```text
v0.112.1-preview00xx
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.