Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Version
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Utilities
Version
Commits
a30ca8b2
Verified
Commit
a30ca8b2
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: doc
parent
54aa2736
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+26
-0
26 additions, 0 deletions
README.md
data/version.json
+1
-1
1 addition, 1 deletion
data/version.json
with
27 additions
and
1 deletion
README.md
+
26
−
0
View file @
a30ca8b2
...
...
@@ -58,6 +58,32 @@ With the command build the current build date can be output.
version build
```
**Auto**
The 'auto' feature allows the tool to automatically determine the next version
based on the project's git commit history since the last tag.
It uses semantic commit messages to determine the type of version bump.
If a commit message starts with "feat:", it will trigger a minor version bump.
If a commit message starts with "fix:" or if it includes "BREAKING CHANGE",
it will trigger a patch or a major version bump respectively.
Here is how you can use the 'auto' feature:
```
bash
version auto
--git
```
Without the '--git' flag, the tool will use the last tag in the git history
as the starting point for the version calculation. The result will be printed
to stdout or written to a file if the '--path' flag is provided.
It is important to note that this feature requires that your commit messages
follow the
[
Conventional Commits
](
https://www.conventionalcommits.org/en/v1.0.0-beta.2/
)
message format.
**Makefile**
```
makefile
...
...
This diff is collapsed.
Click to expand it.
data/version.json
+
1
−
1
View file @
a30ca8b2
...
...
@@ -5,7 +5,7 @@
"meta"
:
{
"created"
:
"2015-01-01T00:00:00.000Z"
,
"updated"
:
"2015-01-01T00:00:00.000Z"
,
"version"
:
"1.
0.22
"
"version"
:
"1.
4.0
"
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment