You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consteventName=context.eventNameif(eventName!=='pull_request'){core.setFailed(`action support only pull requests but event is ${eventName}`)return}
So, basically we are only running nightly and manual workflow_dispatch CI jobs, which means, this project can not be used, because we still are not running for pull requests.
I would like to ask to raise that condition if possible, so users could decide the logic directly in their CI flow, instead:
This isn't as trivial as it might seem on the surface, as it is building a report on coverage when compared to the base reference, which is incredibly context specific.
The name of the base ref or target branch of the pull request in a workflow run. This is only set when the event that triggers a workflow run is either pull_request or pull_request_target. For example, main.
Now, could this information be gathered for other event types, certainly. But what would be gained over simply calling something like, beyond a pretty summary for the work flow?
It would likely require an event parser, and potentially more complex configuration interface. Which might be out of scope for the goals of the action.
Hello and thank you for providing this project, it's really useful!
Currently I'm trying to use it for a project, but it seems like I can not decide about the logic involving the event due the follow condition:
coverage/src/index.ts
Line 14 in c65003f
So, basically we are only running nightly and manual
workflow_dispatch
CI jobs, which means, this project can not be used, because we still are not running for pull requests.I would like to ask to raise that condition if possible, so users could decide the logic directly in their CI flow, instead:
Regards!
The text was updated successfully, but these errors were encountered: