Skip to content

Commit c59a23a

Browse files
authored
Update README to use octokit.rest.repos.createOrUpdateFiles
1 parent ba89eb4 commit c59a23a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# octokit-commit-multiple-files
22

3-
This plugin is an alternative to using `octokit.repos.createOrUpdateFile` which allows you to edit the contents of a single file.
3+
This plugin is an alternative to using `octokit.rest.repos.createOrUpdateFile` which allows you to edit the contents of a single file.
44

55
## Installation
66

@@ -10,7 +10,7 @@ npm install octokit-commit-multiple-files --save
1010

1111
## Usage
1212

13-
This plugin accepts `owner`, `repo`, `path` and `branch` like `.createOrUpdateFile` ([Octokit Docs](https://octokit.github.io/rest.js/#octokit-routes-repos-create-or-update-file)).
13+
This plugin accepts `owner`, `repo`, `path` and `branch` like `.createOrUpdateFile` ([Octokit Docs](https://octokit.github.io/rest.js/v18#repos-create-or-update-file)).
1414

1515
If the `branch` provided does not exist, the plugin will error. To automatically create it, set `createBranch` to true. You may provide a `base` branch if you choose to do this, or the plugin will use the repo's default branch as the base.
1616

@@ -22,7 +22,7 @@ Octokit = Octokit.plugin(require("octokit-commit-multiple-files"));
2222

2323
const octokit = new Octokit();
2424

25-
const branchName = await octokit.repos.createOrUpdateFiles({
25+
const branchName = await octokit.rest.repos.createOrUpdateFiles({
2626
owner,
2727
repo,
2828
branch,

0 commit comments

Comments
 (0)