This feature installs GitVersion, a tool to help you generate a version number based on your git history.
Originally, GitVersion was designed to be used in a CI/CD pipeline. However, it can also be used in a dev container to calculate the version number of the application.
More information about GitVersion can be found on the GitVersion GitHub page.
"features": {
"ghcr.io/tomgrv/devcontainer-features/gitversion:10": {}
}npx tomgrv/devcontainer-features -- add gitversion
# or, without node/npm:
curl -fsSL https://raw.githubusercontent.com/tomgrv/devcontainer-features/develop/setup.sh | sh -s -- add gitversionnpm install --save-dev @tomgrv/devcontainer-features-gitversion| Options Id | Description | Type | Default Value |
|---|---|---|---|
| version | The version of GitVersion to use. | string | 6.5.1 |