Skip to content

Commit

Permalink
feat: POST /repos/{owner}/{repo}/dependency-graph/snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot committed Jun 20, 2022
1 parent a9137ca commit 2537cce
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 16 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -25,7 +25,7 @@
],
"license": "MIT",
"dependencies": {
"@octokit/types": "^6.35.0"
"@octokit/types": "^6.36.0"
},
"peerDependencies": {
"@octokit/core": ">=2"
Expand Down
13 changes: 13 additions & 0 deletions scripts/update-endpoints/generated/endpoints.json
Expand Up @@ -4134,6 +4134,19 @@
"renamed": null,
"responses": [{ "code": 204, "schema": null }]
},
{
"url": "/repos/{owner}/{repo}/dependency-graph/snapshots",
"id": "create-repository-snapshot",
"scope": "dependency-graph",
"documentationUrl": "https://docs.github.com/rest/reference/dependency-graph#create-a-snapshot-of-dependencies-for-a-repository",
"renamed": null,
"responses": [
{
"code": 201,
"schema": "{\"type\":\"object\",\"required\":[\"id\",\"created_at\",\"result\",\"message\"],\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"ID of the created snapshot.\"},\"created_at\":{\"type\":\"string\",\"description\":\"The time at which the snapshot was created.\"},\"result\":{\"type\":\"string\",\"description\":\"Either \\\"SUCCESS\\\", \\\"ACCEPTED\\\", or \\\"INVALID\\\". \\\"SUCCESS\\\" indicates that the snapshot was successfully created and the repository's dependencies were updated. \\\"ACCEPTED\\\" indicates that the snapshot was successfully created, but the repository's dependencies were not updated. \\\"INVALID\\\" indicates that the snapshot was malformed.\"},\"message\":{\"type\":\"string\",\"description\":\"A message providing further details about the result, such as why the dependencies were not updated.\"}}}"
}
]
},
{
"url": "/repos/{owner}/{repo}/dependency-graph/compare/{basehead}",
"id": "diff-range",
Expand Down

0 comments on commit 2537cce

Please sign in to comment.