You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current README example's fails if path/to/file4.txt does not yet exist:
// Returns a normal Octokit PR response// See https://octokit.github.io/rest.js/#octokit-routes-pulls-createoctokit.createPullRequest({owner: "user-or-org-login",repo: "repo-name",title: "pull request title",body: "pull request description",head: "pull-request-branch-name",changes: [{/* optional: if `files` is not passed, an empty commit is created instead */files: {"path/to/file4.txt": ({ encoding, content })=>{returnBuffer.from(content,encoding).toString("utf-8").toUpperCase();},},commit:
"update file4.txt",},],})
add a new { exists } key to the current argument that is always set to true or false. When set to false, no other keys are set
The text was updated successfully, but these errors were encountered:
* docs(README): `exists` key for update functions
* docs(CONTRIBUTING): record error requests
* test: `exists` key for update functions
* feat: `exists` key for update functions
fixes#51
* test: empty update
* fix: skip creating tree if there are no changes
The current README example's fails if
path/to/file4.txt
does not yet exist:add a new
{ exists }
key to the current argument that is always set to true or false. When set to false, no other keys are setThe text was updated successfully, but these errors were encountered: