Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkasany committed Sep 4, 2023
1 parent f52fc32 commit f6173d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const Action = async payload => {
};
});

const treeResponse = await githubAxios.post("/git/trees", {
const treeResponse = await Axios.post("/git/trees", {
base_tree: baseTreeSHA,
tree: tree
});
Expand All @@ -247,10 +247,11 @@ const Action = async payload => {
{ path: pngPath, sha: pngSHA },
{ path: jsonPath, sha: jsonSHA }
]);
console.log('treeSHA', treeSHA);

// 4. 创建提交
const createCommit = async treeSHA => {
const commitResponse = await githubAxios.post("/git/commits", {
const commitResponse = await Axios.post("/git/commits", {
message: "Add new files",
author: {
name: "Your Name",
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

0 comments on commit f6173d4

Please sign in to comment.