-
Notifications
You must be signed in to change notification settings - Fork 23
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
Question - How to resolve the colors easily when manually writing comments? #27
Comments
Hi @Vadorequest - thanks for opening this. I wasn't aware of this scenario. I think the best step forward will be to investigate ways of supporting the To solve your problem, perhaps you could set environment variables programmatically as its own step based on scores... using workflow commands. |
Meanwhile, supporting the existing I've played with
Thus, we went from |
Interesting, thanks for providing that! Right, I understand now - we need to expose That should be pretty simple, I'll make sure this gets in the next update and will report back. |
Awesome, thank you! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sorry this took so long. @Vadorequest - You can now manually set |
Thanks! Just to clarify, does it need a |
Yes, @Vadorequest - under the hood we still populate To post comments we use the GitHub REST API directly, and the access token is required for authorization. |
That's what I assumed, works like a charm :) |
Awesome! |
I'm trying to integrate LH reports within my GH actions.
Our workflow is as follow:
We use the
push
event, becausepull_request
has severe limitations.Because of that, we have to comment on the PR ourselves, because
prCommentUrl
option doesn't exist.Currently, our comment works, but colors are hardcoded (i.e:
green
) and I wonder how we could easily resolve the right color. I see you're using JS but I'm not familiar with bash and I'm not sure how to avoid code duplication.I know this isn't so much related to
lighthouse-check-action
, but if you know of a good example/tutorial about how to run JS through github actions, it may be helpful.Also, I think the
prCommentUrl
option would be a great addition, for people who cannot usepull_request
trigger.PR: UnlyEd/next-right-now#109
The text was updated successfully, but these errors were encountered: