Skip to content
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

Fix possible exceptions by matching the type of Snapshot job to the spec #28

Merged
merged 1 commit into from Sep 26, 2022

Conversation

smorimoto
Copy link
Contributor

https://docs.github.com/en/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository

Error: HTTP Status 422 for request POST https://api.github.com/repos/smorimoto/opam-dependency-submission/dependency-graph/snapshots
Error: Response body:
{
  "message": "Invalid request.\n\nInvalid property /job/id: `3116879171` is not of type `string`.",
  "documentation_url": "https://docs.github.com/rest/reference/dependency-graph#create-a-snapshot-of-dependencies-for-a-repository"
}
Error: Invalid request.

Signed-off-by: Sora Morimoto <sora@morimoto.io>
@smorimoto smorimoto requested a review from a team September 24, 2022 09:08
Copy link
Contributor

@febuiles febuiles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this looks good!

@febuiles febuiles merged commit 875f5a3 into github:main Sep 26, 2022
@smorimoto smorimoto deleted the fix-job-type branch September 27, 2022 02:39
@YourHomeModPro YourHomeModPro mentioned this pull request Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants