Skip to content

Commit 4f7e27a

Browse files
committed
Update Usage in README
1 parent a9271b8 commit 4f7e27a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ In addition, it accepts `changes` which is an array of objects containing a `pat
1717
It also accepts a `newBranch` parameter which will commit these changes to a different branch than the one provided. You can set `overwriteBranch` to `true` to use `branch` as the base commit, or `false` to use the latest commit on `newBranch` as the base commit.
1818

1919
```javascript
20-
const Octokit = require("@octokit/rest").plugin(require("."));
20+
const Octokit = require("@octokit/rest").plugin(
21+
require("octokit-commit-multiple-files")
22+
);
2123
const octokit = new Octokit();
2224

2325
const branchName = await octokit.repos.createOrUpdateFiles({

0 commit comments

Comments
 (0)