Skip to content

Commit

Permalink
adding the branding property in index.json (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
PurohitPoornima authored Jan 10, 2025
1 parent 211c2b1 commit 83f33e5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,10 @@
"<b>Rebranding</b>: Name of the plugin is changed from HCL OneTest Server to HCL DevOps Test Server."
],
"supports": "2.5.0"
},
"branding": {
"name": "HCL DevOps Test server",
"version": "1.0.27"
}
},
"ucv-ext-rally": {
Expand Down Expand Up @@ -823,6 +827,10 @@
"Releasing again for prev version changes"
],
"supports": "4.0.13"
},
"branding": {
"name": "IBM DevOps Deploy",
"version": "4.0.4"
}
},
"ucv-ext-versionone": {
Expand Down
3 changes: 2 additions & 1 deletion src/helpers/InfoHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default class InfoHelper {
author: Joi.object().required().error(() => ERROR_TEXT.Author).keys({
name: Joi.string().required().error(() => ERROR_TEXT.AuthorName),
email: Joi.string().required().email().error(() => ERROR_TEXT.AuthorEmail)
})
}),
branding:Joi.object()
}
}

Expand Down
6 changes: 6 additions & 0 deletions src/scripts/generateIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ logger.level = process.env.LOG_LEVEL || 'INFO'
notes: latestRelease.notes || []
}
}
if(info.branding.brandingName && info.branding.brandingVersion) {
indexJson[plugin].branding = {
name: info.branding.brandingName ? info.branding.brandingName : '',
version: info.branding.brandingVersion ? info.branding.brandingVersion : ''
}
}
if (latestRelease.supports) {
indexJson[plugin].current.supports = latestRelease.supports
}
Expand Down

0 comments on commit 83f33e5

Please sign in to comment.