-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unexpected token #5
Comments
A lot of great ideas in this single issue, so thank you for taking the time to write them down. I'll have a look at the actual issue and report back soon. |
Agree, any suggestions what would be the best interface for this? The PR itself or something external? How about adding this capability to the playground itself?
Right now just the
The current solution is quite robust with regards of code injections. Retaining this is a key requirement.
Good idea, but I wonder if this could leak sensitive information when shown on a PR itself. Maybe best to tweak the playground so you can specify custom payload if needed, or run it against a public PR. |
Have you considered open-sourcing the implementation? I'd be able to help if I could look at what parsing you're performing or make suggestions. |
I could really benefit from a better understanding of the syntax concerns involved in authoring
But in reality, there is clearly a lot more going on. Are variable values treated as actual JavaScript variables or are they injected prior to evaluation? How does quoting work? Can I use variables inside regex matches? Etc. The lack of clarity on this is forcing me to make tons of commits throwing random syntax attempts at it until something hopefully stops mysteriously failing. For instance, can I do? Seems like no? Why?
|
There appears to be something dodgy going on when PR Badge processes JavaScript or injects output into the badge. This was made evident when I attempted to do some more advanced JavaScript processing of the
payload
data:The result is the following badge in my PR:
'/red)
$payload
, for testing, but also to display or pass JSON on to eg. web requests. Ideally amessage: $payload
would just show me the full payload as a JSON string without any hoopla.The text was updated successfully, but these errors were encountered: