commit & push to remote git repo via webhook?
I want to commit to a git repo from app-engine via webhooks. I cannot install git on appengine. Possible?
I think it should be on GitHub, beca开发者_运维百科use they have a browser based text editor which can commit via the browser. E.g. go here and click the edit
button.
GitHub api docs imply read-only operations which doesn't seem to be true.
Also, is this a bad idea? I Know it'll be tough to scale.
The tags say you're using python so this might not be particularly useful, but I do know there's a pure java implementation of git, JGit, which might work on the app engine. It doesn't look like you can really call java code from python, but you could use a separate instance that you create yourself and use some sort of secure communication channel between this and your app. Assuming there's no undocumented github API that does what you want, that is.
I'm trying to do the same. I found http://samba.org/~jelmer/dulwich/ but this implementation uses the mmap module which is blocked in app engine.
@Dustin Have you figgured a way to push into git repos from app engine
精彩评论