Event types are poorly named #4063
Replies: 3 comments 13 replies
-
I think |
Beta Was this translation helpful? Give feedback.
-
I agree some naming is pretty confusing and inconsistent. One of the biggest issues here is history. The naming was introduced like this in drone <0.8 and changing such fundamental things would require all woodpecker users to adjust their configs or they would simply avoid updating which would be quite sad as well. |
Beta Was this translation helpful? Give feedback.
-
What's about Drone users? However, I agree on |
Beta Was this translation helpful? Give feedback.
-
For reference the event types are:
push
andtag
I think the biggest problem with Woodpecker's event naming is that unlike on GitHub/GitLab CI where a
push
event / pipeline source denotes thegit push
of a commit or a tag (ref GitHub, ref GitLab) in Woodpecker CI it only refers to pushed commits. Firstly this breaks the expectations of any developer who's used to GitHub/GitLab and secondly it's confusing and inconsistent to havepush
only refer to commits when tags are also pushed (withgit push
).pull_request_closed
Again Woodpecker's behavior is counter-intuitive: a
pull_request
event is triggered on opening a PR but not on closing a PR. GitHub and GitLab again do the obvious thing instead: triggering it for both (and providing different means of filtering on the subtype).cron
GitHub and GitLab both call this
schedule
, so I think it would be nice to align the naming here as well but this is less of an issue.I think naming is really important in UI design as well as not breaking user expectations so I think Woodpecker should address these problems by deprecating
tag
andpull_request_closed
and instead relying on separate keys for the filtering ... like GitHub/GitLab do.Beta Was this translation helpful? Give feedback.
All reactions