Skip to content

Commit

Permalink
fix: add badges to get and update method of pipeline (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
adong authored Oct 24, 2023
1 parent 9216862 commit 257a1aa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions models/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ module.exports = {
'prChain',
'parameters',
'subscribedScmUrlsWithActions',
'settings'
'settings',
'badges'
]
)
).label('Get Pipeline'),
Expand All @@ -168,9 +169,9 @@ module.exports = {
* @property update
* @type {Joi}
*/
update: Joi.object(mutate(UPDATE_MODEL, [], ['checkoutUrl', 'rootDir', 'autoKeysGeneration', 'settings'])).label(
'Update Pipeline'
),
update: Joi.object(
mutate(UPDATE_MODEL, [], ['checkoutUrl', 'rootDir', 'autoKeysGeneration', 'settings', 'badges'])
).label('Update Pipeline'),

/**
* List of fields that determine a unique row
Expand Down

0 comments on commit 257a1aa

Please sign in to comment.