I don't know whether I understand the usage of Mk objects correctly, but I chose this library because it allows me to write tests instead of real interaction with GitHub. But the MK objects are behaving oddly although the idea behind is smart.
Mine use case is that I would like to prepare some state of a repo and interact with it. For this I need to create Tree and Commits and Blobs.
While I'm trying to on create-a-tree, I expect that I got a response a newly created Tree t, with t.json() =>
But instead I get the tree array with all objects instead of something similar to example above. Furthermore the return statement in MkTrees.create returns not the tree but the first sha of file in the tree this.get(trees.getJsonObject(0).getString("sha")); which tries to act as a Tree, but it's file :/.
When checking the XML structure then it clearly shows that it probably real bug as the file is not a tree, but actually the object.:
I don't know whether I understand the usage of Mk objects correctly, but I chose this library because it allows me to write tests instead of real interaction with GitHub. But the MK objects are behaving oddly although the idea behind is smart.
Mine use case is that I would like to prepare some state of a repo and interact with it. For this I need to create Tree and Commits and Blobs.
While I'm trying to on create-a-tree, I expect that I got a response a newly created Tree t, with t.json() =>
But instead I get the
tree
array with all objects instead of something similar to example above. Furthermore the return statement in MkTrees.create returns not the tree but the first sha of file in the treethis.get(trees.getJsonObject(0).getString("sha"));
which tries to act as a Tree, but it's file :/.When checking the XML structure then it clearly shows that it probably real bug as the file is not a tree, but actually the object.:
Is this a bug or am I using this library in a wrong way?