Closed gr2m closed 4 years ago
The current README example's fails if path/to/file4.txt does not yet exist:
path/to/file4.txt
// Returns a normal Octokit PR response // See https://octokit.github.io/rest.js/#octokit-routes-pulls-create octokit .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 }) => { return Buffer.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
{ exists }
:tada: This issue has been resolved in version 3.7.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
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 set