cds icon indicating copy to clipboard operation
cds copied to clipboard

allow [skip ci] or [skip nodeName] in msg comment

Open yesnault opened this issue 6 years ago • 3 comments

yesnault avatar Jan 26 '18 08:01 yesnault

Hello, any plans to have this feature included in a future release? We have to do that manually in our run conditions:

return string.match(git_message, ".*[skip ci].*") == nil

If you don't have time can you confirm you would have this feature implemented there: https://github.com/ovh/cds/blob/master/engine/api/workflow/process.go#L45-L71?

geoffreybauduin avatar Jan 23 '20 10:01 geoffreybauduin

Hi. We confirm that it will be implemented, but not in process.go.

Today, it's possible to add run condition on a hook (or select the event type to run the workflow), the skip ci will be checked at the same moment. This will avoid to increment a run number for example.

yesnault avatar Jan 23 '20 16:01 yesnault

Just for the note, lua code should be:

return string.match(git_message, "%[skip ci%]") == nil

maxatome avatar Jan 30 '20 08:01 maxatome