-
Notifications
You must be signed in to change notification settings - Fork 15
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
Getting a GitHubApiError when running this action #36
Comments
Turns out there is an issue in version 0.3.0, got this to work successfully in version 0.2.1 |
It seems that some fields are invalid. Previously, in version 0.2.0, we were extracting some fields from the JSON file, namely:
But now, in version 0.3.0, we are using all fields from the JSON field. Here's a valid annotation (taken from the documentation): [
{
"path": "README.md",
"start_line": 2,
"end_line": 2,
"start_column": 5,
"end_column": 10,
"annotation_level": "warning",
"title": "Spell Checker",
"message": "Check your spelling for 'banaas'.",
"raw_details": "Do you mean 'bananas' or 'banana'?",
"blob_href": "https://api.github.com/repos/github/rest-api-description/git/blobs/abc"
}
] I think it does not work because you didn't set both the |
For reference, we automatically transform |
that fixed it! thank you! |
If Since we are already doing that for |
that seems fine to me! we already updated our output to have both start and end but it might be helpful for someone else down the line |
running:
the contents of the json file look like this:
and this is what is returned in github actions:
Any insight on what might be the cause of this? I have other actions that are able to annotate, though they are built into the action itself so i dont have much insight into what they might be doing differently.
The text was updated successfully, but these errors were encountered: