Fix test-git2.c
mlite opened this issue · comments
It does not work anymore. We need to fix this test.
The instruction of using this code: https://github.com/cee-studio/orca/blob/master/docs/COMMIT_GUIDELINES.md#build-the-test-git2exe
Done. Please do a make purge
then try again @mlite
==create-tree==
{"tree":[{"path":"README.md","mode":"100644","type":"blob","sha":null}],"base_tree":"af3b0792f899e485fc0e35a888e792d4ca4c2dd4"}
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/git#create-a-tree"}
new-tree-sha:(null)
===create-a-commit===
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/git#create-a-commit"}
commit-sha:(null)
===create-a-branch===
{"ref":"refs/heads/n1627848854","sha":"af3b0792f899e485fc0e35a888e792d4ca4c2dd4"}
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/git#create-a-reference"}
===update-a-commit===
PATCH: {"sha":null}
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/git#update-a-reference"}
===create-a-pull-request===
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/pulls#create-a-pull-request"}
my .cee-contributor under orca
folder.
{
"discord": {
"token":"YOUR-BOT-TOKEN"
},
"github": {
"username": "mlite",
"token": "xxx"
},
"logging": {
"level": "trace",
"filename": "bot.log",
"quiet": true,
"overwrite": false,
"use_color": true,
"http": {
"enable": true,
"filename": "http.log"
}
}
}
my .cee-repo under orca
folder.
{
"owner": "cee-studio",
"repo": "orca",
"default_branch": "master"
}
The command to reproduce the "Not Found" error.
./test/test-git2.exe -m 'test' README.md
@mlite Got it, please try again. Seems to be working now
Yes, it works. ty