Conversation
What's this do? |
NVM: thanks for the docs :) Should get this in today or tomorrow. |
""Magically"" deploys applications from github (including running tests if you have travis setup) :) |
Tests would be awesome, so I can confirm I'm not pushing broken code. |
I'll work on that. Will add them to this pull request |
tldrtests are ready docsI've separated our API documentation in a gist: API documentation of the Nodejitsu Web-hook API Should I include it in the developer notes section? integration testingAdded some tests, nothing was broken but couldn't get If you want to do some integration testing:
Then go to http://gimmesomebeta.jit.su and get approved for our beta. Go to flatiron-hello-world-api and fork it. Change the However I've done this a bunch of times now, it works :) |
I wouldn't worry about Developer Notes. I think those were used before github-services even kept track of a schema per service in the code. You or someone else that's knowledgeable about nodejitsu should be updating the service. We're unable to provide much support for these 80 or so services, because we don't use or even have heard of a lot of them. This looks good, thanks. |
Sounds great, please let me know when this gets merged so we can get some people testing it with real deployments. |
@technoweenie any idea when this will be merged? Would be good to know :) Thank you |
All set. Let me know if you have problems. |
Thank you, will do! |
I've tested the hook and I get this as authorization: {
"accept": "*/*",
"connection": "close",
"content-type": "application/x-www-form-urlencoded",
"authorization": "Basic ZHNjYXBlOg==",
"content-length": "5444",
"host": "webhooks.nodejitsu.com"
} $ echo ZHNjYXBlOg== | base64 -D
dscape:
$ It seems like I'm missing the password Works fine in a regular post-receive url hook. Any suggestions? Sorry I'm quite a ruby lamer so it's probably my fault. I'm going to comment the line where this happens so you have visibility to it edit: tests exist for this use case, guess my tests are wrong too |
def receive_push | ||
return if branch.to_s != '' && branch != branch_name | ||
http.ssl[:verify] = false | ||
http.basic_auth username, password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string :subdomain, :username, :branch
password :password
This seems like it should work no?
No description provided.