- add new ability to transform tags (tag name) prior to sorting, allowing to transform tags into semver format can be achieved
- tags will keep the original name post sorting - FIX https://github.com/mikepenz/release-changelog-builder-action/issues/571
This commit is contained in:
@@ -38,7 +38,8 @@ export interface Extractor extends Transformer {
|
||||
|
||||
export interface TagResolver {
|
||||
method: string // semver, sort
|
||||
filter?: Regex // the regex to filter the tags
|
||||
filter?: Regex // the regex to filter the tags, prior to sorting
|
||||
transformer?: Transformer // transforms the tag name using the regex, run after the filter
|
||||
}
|
||||
|
||||
export const DefaultConfiguration: Configuration = {
|
||||
@@ -71,7 +72,8 @@ export const DefaultConfiguration: Configuration = {
|
||||
tag_resolver: {
|
||||
// defines the logic on how to resolve the previous tag, only relevant if `fromTag` is not specified
|
||||
method: 'semver', // defines which method to use, by default it will use `semver` (dropping all non matching tags). Alternative `sort` is also available.
|
||||
filter: undefined // filter out all tags not matching the regex
|
||||
filter: undefined, // filter out all tags not matching the regex
|
||||
transformer: undefined // transforms the tag name using the regex, run after the filter
|
||||
},
|
||||
base_branches: [] // target branches for the merged PR ignoring PRs with different target branch, by default it will get all PRs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user