2.1.3 • Published 1 year ago
@himenon/github-api-create-commit v2.1.3
@himenon/github-api-create-commit
Create a Commit to GitHub via WebAPI.
Install
yarn add @himenon/github-api-create-commit
pnpm add @himenon/github-api-create-commit
Usage
import * as GitHubApiCreateCommit from "@himenon/github-api-create-commit";
const github = GitHubApiCreateCommit.create({
owner: "Himenon",
repo: "github-api-create-commit",
accessToken: "",
});
await github.createGitCommit({
baseBranchName: "master",
headBranchName: "develop",
commitMessage: "feat: add markdown file",
files: [
{
path: "hello-world.md",
content: "# Hello world",
},
],
});
Shell scripts with the same meaning
git checkout -b develop origin/master
echo "# Hello world" > hello-world.md
git add hello-world.md
git commit -m "feat: add markdown file"
git push develop
LICENCE
2.1.3
1 year ago
2.1.2
2 years ago
2.0.0
2 years ago
1.1.0
2 years ago
1.0.0-alpha.5
2 years ago
1.0.0-alpha.4
2 years ago
1.0.0-alpha.3
2 years ago
1.0.0-alpha.2
2 years ago