Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitbucket ? #2

Closed
joeblew99 opened this issue Mar 11, 2016 · 7 comments
Closed

Bitbucket ? #2

joeblew99 opened this issue Mar 11, 2016 · 7 comments

Comments

@joeblew99
Copy link

Do you know if this works with bitbucket ?
Also if I run this on a computerthat's behind NAT, how is the program alerted to changes in the git server ? Is it polling ?

@agrison
Copy link
Owner

agrison commented Mar 12, 2016

I does only support GitHub for the moment since the application is waiting for a HTTP POST request with both GitHub' specific headers and payload.
But its doable, Bitbucket propose the same functionality, see: https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html

Harpoon is not polling, it does listen on a configurable ip and port for HTTP requests emitted by GitHub when an event occurs on your repository.

@agrison
Copy link
Owner

agrison commented Mar 12, 2016

FYI atlassian has a project ready to fork and run specifically for their needs: https://bitbucket.org/atlassianlabs/webhook-listener

@joeblew99
Copy link
Author

Thanks all.

So my machine need a public static IP ? Did not get a clear answer.
Ah but the bitbucket example is using ngrok, so its faking the NAT up to a
public static IP.

Suggest harpoon maybe does the same

On Sat, 12 Mar 2016, 08:03 Alexandre Grison, notifications@github.com
wrote:

FYI atlassian has a project ready to fork and run specifically for their
needs: https://bitbucket.org/atlassianlabs/webhook-listener


Reply to this email directly or view it on GitHub
#2 (comment).

@agrison
Copy link
Owner

agrison commented Mar 12, 2016

Yes you need a public IP where GitHub can POST. But as you said you can configure ngrok for this.
To be clear, I'm using harpoon on a server public IP behind nginx so I didn't thought about that problem of public IP on a machine behind a NAT. Same goes for the support of Bitbucket that I do not use.

I'll take a look at it, but if it's already doable using ngrok I propose you do that for the moment

@joeblew99
Copy link
Author

Ok that clear now thanks for your patience.

On Sat, 12 Mar 2016, 10:23 Alexandre Grison, notifications@github.com
wrote:

Yes you need a public IP where GitHub can POST. But as you said you can
configure ngrok for this.
To be clear, I'm using harpoon on a server public IP behind nginx so I
didn't thought about that problem of public IP on a machine behind a NAT.
Same goes for the support of Bitbucket that I do not use.

I'll take a look at it, but if it's already doable using ngrok I propose
you do that for the moment


Reply to this email directly or view it on GitHub
#2 (comment).

@agrison
Copy link
Owner

agrison commented Mar 13, 2016

Hey @joeblew99, you can take a look, I just added an option for tunneling using https://localtunnel.me/, I've tested it a little on my side and it seems to be working OK.

Hope that helps 😸

@joeblew99
Copy link
Author

Awesome.

I will try it when I get a chance. I am in the middle of a sprint, so have
to wait.

On Sun, 13 Mar 2016, 01:37 Alexandre Grison, notifications@github.com
wrote:

Hey @joeblew99 https://github.com/joeblew99, you can take a look, I
just added an option for tunneling using https://localtunnel.me/, I've
tested it a little on my side and it seems to be working OK.

Hope that helps [image: 😸]


Reply to this email directly or view it on GitHub
#2 (comment).

@agrison agrison closed this as completed May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants