cee-studio / orca

C Multi-REST API library for Discord, Slack, Reddit, etc.

Home Page:https://cee-studio.github.io/orca/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix test-git2.c

mlite opened this issue · comments

commented

It does not work anymore. We need to fix this test.

Done. Please do a make purge then try again @mlite

commented
==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"}
commented

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"
    		    }
        }
}
commented

my .cee-repo under orca folder.

{
    "owner": "cee-studio",
    "repo": "orca",
    "default_branch": "master"
}
commented

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

commented

Yes, it works. ty