-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): add workflow default tags after add repository webhook #2465
Conversation
Signed-off-by: Benjamin Coenen <benjamin.coenen@hotmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this must be related to payload:
- if default payload has "git.branch", "git.author", "git.hash"; update the default tags if its empty.
then:
- Migration of all workflows
after all:
- check this with a unit test
…on and repository Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
|
||
for _, wf := range workflows { | ||
tx, errTx := db.Begin() | ||
if errTx != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't you have to lock the workflow ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only lock the metadata of the workflow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine
|
||
for _, wf := range workflows { | ||
tx, errTx := db.Begin() | ||
if errTx != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine
tested on preprod with success |
Signed-off-by: Benjamin Coenen benjamin.coenen@hotmail.com
add workflow default tags after add repository webhook
close Automatic workflow tag #2448
@ovh/cds