Class ReleasableCommits
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.ReleasableCommits
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:42.796Z") @Stability(Experimental) public class ReleasableCommits extends software.amazon.jsii.JsiiObject
(experimental) Find commits that should be considered releasable to decide if a release is required.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedReleasableCommits(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedReleasableCommits(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReleasableCommitseveryCommit()(experimental) Release every commit.static ReleasableCommitseveryCommit(String path)(experimental) Release every commit.static ReleasableCommitsexec(String cmd)(experimental) Use an arbitrary shell command to find releasable commits since the latest tag.static ReleasableCommitsfeaturesAndFixes()(experimental) Release only features and fixes.static ReleasableCommitsfeaturesAndFixes(String path)(experimental) Release only features and fixes.StringgetCmd()static ReleasableCommitsofType(List<String> types)(experimental) Limit commits by their conventional commit type.static ReleasableCommitsofType(List<String> types, String path)(experimental) Limit commits by their conventional commit type.voidsetCmd(String value)-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Method Detail
-
everyCommit
@Stability(Experimental) @NotNull public static ReleasableCommits everyCommit(@Nullable String path)
(experimental) Release every commit.This will only not release if the most recent commit is tagged with the latest matching tag.
- Parameters:
path- Consider only commits that are enough to explain how the files that match the specified paths came to be.
-
everyCommit
@Stability(Experimental) @NotNull public static ReleasableCommits everyCommit()
(experimental) Release every commit.This will only not release if the most recent commit is tagged with the latest matching tag.
-
exec
@Stability(Experimental) @NotNull public static ReleasableCommits exec(@NotNull String cmd)
(experimental) Use an arbitrary shell command to find releasable commits since the latest tag.A new release will be initiated, if the number of returned commits is greater than zero. Must return a newline separate list of commits that should considered releasable.
$LATEST_TAGwill be replaced with the actual latest tag for the given prefix.*Example:
"git log --oneline $LATEST_TAG..HEAD -- ."
- Parameters:
cmd- This parameter is required.
-
featuresAndFixes
@Stability(Experimental) @NotNull public static ReleasableCommits featuresAndFixes(@Nullable String path)
(experimental) Release only features and fixes.Shorthand for
ReleasableCommits.onlyOfType(['feat', 'fix']).- Parameters:
path- Consider only commits that are enough to explain how the files that match the specified paths came to be.
-
featuresAndFixes
@Stability(Experimental) @NotNull public static ReleasableCommits featuresAndFixes()
(experimental) Release only features and fixes.Shorthand for
ReleasableCommits.onlyOfType(['feat', 'fix']).
-
ofType
@Stability(Experimental) @NotNull public static ReleasableCommits ofType(@NotNull List<String> types, @Nullable String path)
(experimental) Limit commits by their conventional commit type.This will only release commit that match one of the provided types. Commits are required to follow the conventional commit spec and will be ignored otherwise.
- Parameters:
types- List of conventional commit types that should be released. This parameter is required.path- Consider only commits that are enough to explain how the files that match the specified paths came to be.
-
ofType
@Stability(Experimental) @NotNull public static ReleasableCommits ofType(@NotNull List<String> types)
(experimental) Limit commits by their conventional commit type.This will only release commit that match one of the provided types. Commits are required to follow the conventional commit spec and will be ignored otherwise.
- Parameters:
types- List of conventional commit types that should be released. This parameter is required.
-
getCmd
@Stability(Experimental) @NotNull public String getCmd()
-
setCmd
@Stability(Experimental) public void setCmd(@NotNull String value)
-
-