-
Notifications
You must be signed in to change notification settings - Fork 7
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
Pretty print results #57
Comments
Could you please specify more precisely what are requirements here? |
I don't know :) I'd normally iterate on this, because there's things this needs figured out, which I'm not certain about, namely GH has two status APIs (checks and statuses) and I'm not very familiar with the checks one. I'm also not sure what's the future of the statuses one - is it getting deprecated or smth? Maybe there are some resources or at least discussions on some GH boards about that? But the goal here is that it should:
Would you be willing to do some research and make some proposals, in code or otherwise? |
Yeah will be happy to help here, assigning to myself |
Statuses isn't deprecated afaik, but using "checks" gives a much nicer experience. |
Regarding formatting as I see we are going to support multiple output formats. What about adding new I'd like to remove simple console.logs in this case and build separate module with formatting logic in order to avoid multiple Regarding contents - I see wiby uses both APIs: checks as default and statuses as fallback. Are we going to have some changes in this logic in scope of this task? |
Sorry, I missed this last comment and only noticed after coming back to this since we need a non-zero exit code when there's a failure - might make sense to do as part of this issue? tl;dr at the end.
I wonder if that's enough as an option? Pondering the use case of CI - we'd probably want to output something human readable in console and we'll need something machine readable in a file. I'm also pondering just now that maybe after all we don't need the separate table output - markdown looks good enough in console (and we can sprinkle some colour around it later)?
I guess there's two concerns about the output here:
For the first part - I probably agree that we need a wrapper to replace current And then the function exported from And maybe this answers the question about the CLI args? We need to be able to control three things (for
The values for either of these can be Or is this overengineered? 🤔 Just for completeness - I'm aware you can control
Yeah, so I'm not too familiar with the purpose of these two APIs. I wish GH would have just created a normalization layer, so that there's only one... I'm not even sure if these are mutually exclusive - can there be some checks and some statuses on the same commit? This probably needs experimentation and ideally it would be documented before we proceed. But what I do think we need is a sort of abstraction for output / reporting. As a starting point, we'll need a list, where each item is a Sorry for the wall of text above, that said, I think for the very very first bit here's what we should do:
No explicit Does that make sense? |
Sounds good to me, I'll try to start working on this in nearest days |
At the moment
wiby result
just dumps some json - we can do better than that (although--json
would still be useful!)The text was updated successfully, but these errors were encountered: