Skip to content
Snippets Groups Projects
Unverified Commit bb7e8b97 authored by Mike Bryant's avatar Mike Bryant Committed by GitHub
Browse files

feat(internal): Allow logJSON and nested fields to be passed through to commit...

feat(internal): Allow logJSON and nested fields to be passed through to commit body templating (#6347)

Co-authored-by: default avatarMichael Kriese <michael.kriese@visualon.de>
parent cbe8749a
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ export const exposedConfigOptions = [ ...@@ -32,6 +32,7 @@ export const exposedConfigOptions = [
export const allowedFields = { export const allowedFields = {
baseDir: 'The full directory with path that the dependency has been found in', baseDir: 'The full directory with path that the dependency has been found in',
body: 'The body of the release notes',
currentValue: 'The extracted current value of the dependency being updated', currentValue: 'The extracted current value of the dependency being updated',
currentVersion: 'The current version that is being updated', currentVersion: 'The current version that is being updated',
datasource: 'The datasource used to look up the upgrade', datasource: 'The datasource used to look up the upgrade',
...@@ -46,12 +47,14 @@ export const allowedFields = { ...@@ -46,12 +47,14 @@ export const allowedFields = {
displayTo: 'The to value, formatted for display', displayTo: 'The to value, formatted for display',
fromVersion: fromVersion:
'The version that would be currently installed. For example, if currentValue is ^3.0.0 then currentVersion might be 3.1.0.', 'The version that would be currently installed. For example, if currentValue is ^3.0.0 then currentVersion might be 3.1.0.',
hasReleaseNotes: 'true if the upgrade has release notes',
isLockfileUpdate: 'true if the branch is a lock file update', isLockfileUpdate: 'true if the branch is a lock file update',
isMajor: 'true if the upgrade is major', isMajor: 'true if the upgrade is major',
isPatch: 'true if the upgrade is a patch upgrade', isPatch: 'true if the upgrade is a patch upgrade',
isRange: 'true if the new value is a range', isRange: 'true if the new value is a range',
isSingleVersion: isSingleVersion:
'true if the upgrade is to a single version rather than a range', 'true if the upgrade is to a single version rather than a range',
logJSON: 'ChangeLogResult object for the upgrade',
lookupName: 'The full name that was used to look up the dependency.', lookupName: 'The full name that was used to look up the dependency.',
newDigest: 'The new digest value', newDigest: 'The new digest value',
newDigestShort: newDigestShort:
...@@ -67,13 +70,18 @@ export const allowedFields = { ...@@ -67,13 +70,18 @@ export const allowedFields = {
parentDir: parentDir:
'The name of the directory that the dependency was found in, without full path', 'The name of the directory that the dependency was found in, without full path',
platform: 'VCS platform in use, e.g. "github", "gitlab", etc.', platform: 'VCS platform in use, e.g. "github", "gitlab", etc.',
project: 'ChangeLogProject object',
recreateClosed: 'If true, this PR will be recreated if closed', recreateClosed: 'If true, this PR will be recreated if closed',
references: 'A list of references for the upgrade', references: 'A list of references for the upgrade',
releases: 'An array of releases for an upgrade', releases: 'An array of releases for an upgrade',
releaseNotes: 'A ChangeLogNotes object for the release',
repository: 'The current repository', repository: 'The current repository',
toVersion: 'The new version in the upgrade, e.g. "3.1.0"', toVersion: 'The new version in the upgrade, e.g. "3.1.0"',
updateType: 'One of digest, pin, rollback, patch, minor, major', updateType: 'One of digest, pin, rollback, patch, minor, major',
upgrades: 'An array of upgrade objects in the branch', upgrades: 'An array of upgrade objects in the branch',
url: 'The url of the release notes',
version: 'The version number of the changelog',
versions: 'An array of ChangeLogRelease objects in the upgrade',
}; };
function getFilteredObject(input: any): any { function getFilteredObject(input: any): any {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment