-
Notifications
You must be signed in to change notification settings - Fork 13
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
enhance(webhook): enable skipping builds during tag events #217
Conversation
Codecov Report
@@ Coverage Diff @@
## master #217 +/- ##
=======================================
Coverage 96.73% 96.74%
=======================================
Files 53 53
Lines 5644 5645 +1
=======================================
+ Hits 5460 5461 +1
Misses 137 137
Partials 47 47
|
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.
LGTM
// push or tag event | ||
// nolint: lll // ignore long line length due to if logic | ||
if strings.EqualFold(constants.EventPush, w.Build.GetEvent()) || strings.EqualFold(constants.EventTag, w.Build.GetEvent()) { |
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.
This change LGTM so I already approved 👍
However, wanted to throw out a question as a discussion for future reviewers.
Is there an appetite to remove the event parsing logic completely?
This would expose the skip functionality to all event types rather than just push
and tag
.
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 that's fine?! i guess it's only there to lock conditions to known scenarios. for example, i don't know if the commit is null for other events that we want to process, ie. comments? we're probably good, but that would be going through my head.
xref: go-vela/community#454