update
This commit is contained in:
@@ -2,7 +2,7 @@ import { Repo } from "../src/repo";
|
||||
|
||||
import { token, showMore, cookie } from "./common.ts";
|
||||
|
||||
const repo = new Repo({ group: "kevisual/demo", token: token, cookie: cookie });
|
||||
const repo = new Repo({ token: token, cookie: cookie });
|
||||
|
||||
// const res = await repo.createRepo({
|
||||
// name: "test-cnb-2",
|
||||
@@ -25,15 +25,15 @@ const repoName = "test-cnb";
|
||||
|
||||
// const preCommitSha = commitList.length > 0 ? commitList[0].sha : undefined;
|
||||
|
||||
const commitRes = await repo.createCommit(repoName, {
|
||||
message: "Initial commit3",
|
||||
files: [
|
||||
{ path: "README.md", content: "# Hello World\nThis is my first commit!", encoding: 'raw' },
|
||||
{ path: "a.md", content: "# Hello World\nThis is my first commit2!", encoding: 'raw' },
|
||||
],
|
||||
});
|
||||
// const commitRes = await repo.createCommit(repoName, {
|
||||
// message: "Initial commit3",
|
||||
// files: [
|
||||
// { path: "README.md", content: "# Hello World\nThis is my first commit!", encoding: 'raw' },
|
||||
// { path: "a.md", content: "# Hello World\nThis is my first commit2!", encoding: 'raw' },
|
||||
// ],
|
||||
// });
|
||||
|
||||
console.log("commitRes", showMore(commitRes));
|
||||
// console.log("commitRes", showMore(commitRes));
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user