You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://microbadger.com/images/codacy/git-version"Get your own version badge on microbadger.com")
6
6
7
-
Git versioning used in Codacy.
7
+
The goal of this tool is to have a simple versioning system that we can use to track the different releases. The tool prints the current version (e.g. to be used for tagging) depending on the git history and commit messages.
8
8
9
-
The goal is to have a simple versioning system for our internal projects that we can use to track the different releases.
9
+
The versioning scheme is assumed to be __Semver__ based.
10
10
11
-
This tool returns in standard output the current version (e.g. to be used for tagging) depending on the git history and commit messages.
11
+
## Usage
12
12
13
-
The versioning scheme is assumed to be __Semver__.
13
+
```yaml
14
+
# .github/workflows/version.yml
15
+
name: Git Version
14
16
15
-
## Requirements
16
-
17
-
To use this tool you will need to install a few dependencies:
Versions are incremented since last tag. The patch version is incremented by default, unless there is at least one commit since the last tag, containing `feature:` or `breaking:` in the message.
129
+
Versions are incremented since the last tag. The patch version is incremented by default, unless there is at least one commit since the last tag, containing `feature:` or `breaking:` in the message.
58
130
59
131
On branches other than master and `dev` the version is a variation of the latest common tag with master, and has the following format:
0 commit comments