Skip to content

Commit

Permalink
build: remove obsolete methods
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `octokit.pulls.createFromIssue` removed. The API endpoint is deprecated and will be removed in future

BREAKING CHANGE: , `octokit.git.listRefs` removed. Use `octokit.git.listMatchingRefs()` instead.

BREAKING CHANGE: `octokit.repos.getCommitRefSha` removed. Use `octokit.repos.getCommit({ mediaType: { format: "sha" }, owner, repo, ref })` instead
  • Loading branch information
gr2m committed Jan 31, 2020
1 parent b7641eb commit f2e6c6e
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions src/generated/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1332,17 +1332,6 @@ export default {
},
url: "/repos/:owner/:repo/git/matching-refs/:ref"
},
listRefs: {
method: "GET",
params: {
namespace: { type: "string" },
owner: { required: true, type: "string" },
page: { type: "integer" },
per_page: { type: "integer" },
repo: { required: true, type: "string" }
},
url: "/repos/:owner/:repo/git/refs/:namespace"
},
updateRef: {
method: "PATCH",
params: {
Expand Down Expand Up @@ -2959,21 +2948,6 @@ export default {
},
url: "/repos/:owner/:repo/pulls/:pull_number/comments"
},
createFromIssue: {
deprecated:
"octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",
method: "POST",
params: {
base: { required: true, type: "string" },
draft: { type: "boolean" },
head: { required: true, type: "string" },
issue: { required: true, type: "integer" },
maintainer_can_modify: { type: "boolean" },
owner: { required: true, type: "string" },
repo: { required: true, type: "string" }
},
url: "/repos/:owner/:repo/pulls"
},
createReview: {
method: "POST",
params: {
Expand Down Expand Up @@ -4398,18 +4372,6 @@ export default {
},
url: "/repos/:owner/:repo/comments/:comment_id"
},
getCommitRefSha: {
deprecated:
"octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",
headers: { accept: "application/vnd.github.v3.sha" },
method: "GET",
params: {
owner: { required: true, type: "string" },
ref: { required: true, type: "string" },
repo: { required: true, type: "string" }
},
url: "/repos/:owner/:repo/commits/:ref"
},
getContents: {
method: "GET",
params: {
Expand Down

0 comments on commit f2e6c6e

Please sign in to comment.