backstrokeapp / server

:swimmer: A Github bot to keep repository forks up to date with their upstream.
https://backstroke.co
MIT License
667 stars 62 forks source link

How to configure webhooks on my forks? #59

Closed evandrocoan closed 7 years ago

evandrocoan commented 7 years ago

On the StackOverflow question:

  1. https://stackoverflow.com/questions/28639713/how-to-automatically-align-sync-a-forked-github-origin-master-branch-to-upstream

It is very easy to sync forked repository but question is how ?

In this example i am using WorldMapGenerator Repository

Go to your forked repository, you can see setting button click on it.

enter image description here

After clicking on setting button you can see Webhooks & services option in left menu click on it.

enter image description here

Then you can see Add Webhook Button on right side just click on it.

enter image description here

After clicking Add Webhook Button, details page will get open, so in detail page yo can see payload url. Enter http://backstroke.us url in it.

enter image description here

Now If any commit goes in main repository, then pull request will come in your forked repository.

That's it enjoy :)

For more details https://github.com/1egoman/backstroke

They show these steps, but I did not understand if the are correct. When he says Enter http://backstroke.us url in it, it is the https://backstroke.us/_5a4ds65f46464s65d4654 URL, or just http://backstroke.us?

If I do this in all my forks, I will get automatically updates? I do not need creates links and generate the URLs https://backstroke.us/_5a4ds65f46464s65d4654 for all my forks?

1egoman commented 7 years ago

@evandrocoan There are two versions of Backstroke:

  1. Backstroke Classic, the original version. It was made originally by me about a year ago and is deprecated, however others have posted about it online. In order to set this up, the user adds https://backstroke.us as a webhook in their repository manually.

  2. Backstroke, the newer version of Backstroke. This has a dashboard the user can use to setup Backstroke, no manually-adding of webhooks required. The url https://backstroke.us/_5a4ds65f46464s65d4654 is the webhook that gets added behind the scenes to your repository, but you never have to call it yourself unless you want to tie Backstroke into some custom system. If you just want to sync changes from one repo to another, then you don't have to think about the webhook since it's managed by the system.

TL;DR: Use Backstroke. At some point in the future it's my plan to get rid of Backstroke classic, though it won't happen without a lot of advance warning.