-
Notifications
You must be signed in to change notification settings - Fork 94
Add an option to not have full depth when no tag matches the expression and config to limit the depth #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mrozanc
wants to merge
8
commits into
qoomon:master
Choose a base branch
from
mrozanc:feature/distanceOrZero
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4c1cfe5
Implement distanceOrZero to have 0 instead of depth when tag is not f…
e9f82b4
Update documentation
mrozanc b094b98
Rename boolean for foundTag and add getter
b9bd821
Add describeTagMaxDepth config to limit the repository scan
4731084
Fix distance implementation with multiple parents
92618f7
Integration test fixes
180bcb4
Update README.md
mrozanc 51255ce
Remove wildcard import
mrozanc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<xs:schema xmlns="https://github.com/qoomon/maven-git-versioning-extension" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
targetNamespace="https://github.com/qoomon/maven-git-versioning-extension" | ||
elementFormDefault="qualified"> | ||
|
||
<xs:element name="configuration"> | ||
<xs:complexType> | ||
<xs:all> | ||
<xs:element name="disable" type="xs:boolean" minOccurs="0"/> | ||
|
||
<xs:element name="projectVersionPattern" type="xs:string" minOccurs="0"/> | ||
|
||
<xs:element name="describeTagPattern" type="xs:string" minOccurs="0"/> | ||
<xs:element name="describeTagFirstParent" type="xs:boolean" minOccurs="0"/> | ||
<xs:element name="describeTagMaxDepth" type="xs:int" minOccurs="0"/> | ||
<xs:element name="updatePom" type="xs:boolean" minOccurs="0"/> | ||
|
||
<xs:element name="refs" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="ref" type="RefPatchDescription" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
|
||
<xs:attribute name="considerTagsOnBranches" type="xs:boolean"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="rev" type="PatchDescription" minOccurs="0"/> | ||
|
||
<xs:element name="relatedProjects" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="project" type="RelatedProject" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:all> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:complexType name="PatchDescription"> | ||
<xs:all> | ||
<xs:element name="describeTagPattern" type="xs:string" minOccurs="0"/> | ||
<xs:element name="describeTagFirstParent" type="xs:boolean" minOccurs="0"/> | ||
<xs:element name="updatePom" type="xs:boolean" minOccurs="0"/> | ||
|
||
<xs:element name="version" type="xs:string" minOccurs="0"/> | ||
<xs:element name="properties" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:all> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="RefPatchDescription"> | ||
<xs:all> | ||
<xs:element name="pattern" type="xs:string" minOccurs="0"/> | ||
<xs:element name="describeTagPattern" type="xs:string" minOccurs="0"/> | ||
<xs:element name="describeTagMaxDepth" type="xs:int" minOccurs="0"/> | ||
<xs:element name="describeTagFirstParent" type="xs:boolean" minOccurs="0"/> | ||
<xs:element name="updatePom" type="xs:boolean" minOccurs="0"/> | ||
|
||
<xs:element name="version" type="xs:string" minOccurs="0"/> | ||
<xs:element name="properties" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:all> | ||
|
||
<xs:attribute name="type" use="required"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="tag"/> | ||
<xs:enumeration value="branch"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="RelatedProject"> | ||
<xs:all> | ||
<xs:element name="groupId" type="xs:string"/> | ||
<xs:element name="artifactId" type="xs:string"/> | ||
</xs:all> | ||
</xs:complexType> | ||
|
||
</xs:schema> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<configuration xmlns="https://github.com/qoomon/maven-git-versioning-extension" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://github.com/qoomon/maven-git-versioning-extension https://qoomon.github.io/maven-git-versioning-extension/configuration-6.4.0.xsd"> | ||
xsi:schemaLocation="https://github.com/qoomon/maven-git-versioning-extension https://qoomon.github.io/maven-git-versioning-extension/configuration-9.8.2.xsd"> | ||
|
||
<disable>false</disable> | ||
<updatePom>false</updatePom> | ||
<preferTags>false</preferTags> | ||
<describeTagMaxDepth>100</describeTagMaxDepth> | ||
|
||
<branch> | ||
<pattern>.*</pattern> | ||
<versionFormat>${branch}-SNAPSHOT</versionFormat> | ||
<property> | ||
<name>name</name> | ||
<valueFormat>value</valueFormat> | ||
</property> | ||
<property> | ||
<name>name</name> | ||
<valueFormat>value</valueFormat> | ||
</property> | ||
</branch> | ||
<refs considerTagsOnBranches="true"> | ||
<ref type="tag"> | ||
<pattern>v(.*)</pattern> | ||
<version>${ref.1}</version> | ||
</ref> | ||
|
||
<tag> | ||
<pattern>v(.*)</pattern> | ||
<versionFormat>${1}</versionFormat> | ||
</tag> | ||
<ref type="branch"> | ||
<pattern>.*</pattern> | ||
<version>${ref}</version> | ||
<properties> | ||
<name>value</name> | ||
</properties> | ||
</ref> | ||
</refs> | ||
|
||
<commit> | ||
<versionFormat>${commit}</versionFormat> | ||
</commit> | ||
<rev> | ||
<version>${commit}</version> | ||
</rev> | ||
|
||
</configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.