{"id":246,"date":"2015-01-16T12:44:02","date_gmt":"2015-01-16T12:44:02","guid":{"rendered":"http:\/\/poeditor.com\/blog\/?p=246"},"modified":"2024-02-02T08:22:53","modified_gmt":"2024-02-02T08:22:53","slug":"webhooks-solution-automate-sync-poeditor-github-bitbucket-repos","status":"publish","type":"post","link":"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/","title":{"rendered":"How to use Webhooks to automate the sync with GitHub\/Bitbucket"},"content":{"rendered":"\n<p>Lately, some users have been asking for a way to automate the synchronization between the POEditor&nbsp;<a href=\"\/blog\/what-is-localization-platform\/\" target=\"_blank\" rel=\"noreferrer noopener\">localization platform<\/a> and GitHub\/Bitbucket repositories. Because we want to make them happy, we found a way to do this &#8211; webhooks. These &#8220;user-defined HTTP callbacks&#8221; can be used to trigger a certain sync in your repos. They can be called from anywhere, and can be maintained, modified and managed by any third-party users.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Preparing the webhook<\/h2>\n\n\n\n<p>To make use of a webhook, you first need to create a webhook URL. Find an example for GitHub <a href=\"\/help\/how_to_use_the_github_webhook\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>, and one for Bitbucket <a href=\"\/help\/how_to_use_the_bitbucket_webhook\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<p>After creating the webhook, you can add it to a GitHub or Bitbucket account so that events in the repos trigger terms (and translations) updates in a POEditor project.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using webhooks with Bitbucket<\/h2>\n\n\n\n<p>To add a webhook to a Bitbucket account, just log on to it, go to Settings \u2192 Hooks, and select &#8220;POST&#8221; from the &#8220;Select a hook&#8221; dropdown menu. Then click on &#8220;Add hook&#8221; and introduce the webhook URL in the empty field. Whenever the repository changes, the webhook will be triggered to sync between the assigned language\/project on POEditor and the file in the repo.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using webhooks with Github<\/h2>\n\n\n\n<p>Adding a webhook to GitHub is also easy. Go to the account, click on Settings \u2192 Webhooks &amp; Services \u2192 Add webhook, and add the webhook URL to the &#8220;Payload URL&#8221; field. Unlike in the case of Bitbucket webhooks, you can pick what kind of event(s) you want to trigger the webhook. It can be just the push event, individual events, or everything (any change in the repo).<\/p>\n\n\n\n<p>So that&#8217;s that. The POEditor <a href=\"\/help\/how_to_translate_a_language_file_from_a_github_project\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub integration<\/a> and <a href=\"\/help\/how_to_translate_a_language_file_from_a_bitbucket_project\" target=\"_blank\" rel=\"noreferrer noopener\">Bitbucket integration<\/a> are now faster than ever, because you have the choice to automatically send the updates in the repos to your <a href=\"\/blog\/software-localization\/\" target=\"_blank\" rel=\"noreferrer noopener\">localization<\/a> projects managed on POEditor.<\/p>\n\n\n\n<p><strong>Update July 2015<\/strong>: It is now possible to use webhooks to export terms and translations from your POEditor localization project to your connected GitHub account. Please note that the export option can be triggered from anywhere, except GitHub.<\/p>\n\n\n<div class=\"call-action my-4 d-flex justify-content-between align-items-md-center gap-4 flex-column flex-lg-row\"><div><h3 class=\"fs-4\">Ready to power up localization?<\/h3><span class=\"fs-6\">Subscribe to the POEditor platform today!<\/span><\/div><a class=\"btn btn-b-primary d-flex align-items-center justify-content-center px-4 py-3 flex-shrink-0\" \n\t\t\t\t\thref=\"https:\/\/poeditor.com\/pricing\/?utm_source=blog&#038;utm_medium=btn&#038;utm_campaign=cta_pricing\">See pricing<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Lately, some users have been asking for a way to automate the synchronization between the POEditor&nbsp;localization platform and GitHub\/Bitbucket repositories. Because we want to make them happy, we found a way to do this &#8211; webhooks. These &#8220;user-defined HTTP callbacks&#8221; can be used to trigger a certain sync in your repos. They can be called [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,3],"tags":[],"class_list":["post-246","post","type-post","status-publish","format-standard","hentry","category-best-practices","category-features","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use Webhooks to automate the sync with GitHub\/Bitbucket<\/title>\n<meta name=\"description\" content=\"Info on how to automate the synchronization between the POEditor localization management platform and GitHub\/Bitbucket repositories\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use Webhooks to automate the sync with GitHub\/Bitbucket\" \/>\n<meta property=\"og:description\" content=\"Info on how to automate the synchronization between the POEditor localization management platform and GitHub\/Bitbucket repositories\" \/>\n<meta property=\"og:url\" content=\"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/\" \/>\n<meta property=\"og:site_name\" content=\"POEditor Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/POEditor\" \/>\n<meta property=\"article:published_time\" content=\"2015-01-16T12:44:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-02T08:22:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/poeditor.com\/blog\/wp-content\/uploads\/2020\/06\/Academic.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"418\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Anca\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@poeditor\" \/>\n<meta name=\"twitter:site\" content=\"@poeditor\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anca\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\\\/\"},\"author\":{\"name\":\"Anca\",\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/#\\\/schema\\\/person\\\/17dc166df9c0c7dfde49f069caf6e1c1\"},\"headline\":\"How to use Webhooks to automate the sync with GitHub\\\/Bitbucket\",\"datePublished\":\"2015-01-16T12:44:02+00:00\",\"dateModified\":\"2024-02-02T08:22:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\\\/\"},\"wordCount\":385,\"publisher\":{\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/#organization\"},\"articleSection\":[\"Best practices\",\"Features\",\"Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\\\/\",\"url\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\\\/\",\"name\":\"How to use Webhooks to automate the sync with GitHub\\\/Bitbucket\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/#website\"},\"datePublished\":\"2015-01-16T12:44:02+00:00\",\"dateModified\":\"2024-02-02T08:22:53+00:00\",\"description\":\"Info on how to automate the synchronization between the POEditor localization management platform and GitHub\\\/Bitbucket repositories\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/poeditor.com\\\/blog\\\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use Webhooks to automate the sync with GitHub\\\/Bitbucket\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/\",\"name\":\"POEditor Blog\",\"description\":\"All about translation and localization management\",\"publisher\":{\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/#organization\",\"name\":\"POEditor\",\"url\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/logo_head_512_transparent.png\",\"contentUrl\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/logo_head_512_transparent.png\",\"width\":512,\"height\":512,\"caption\":\"POEditor\"},\"image\":{\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/POEditor\",\"https:\\\/\\\/x.com\\\/poeditor\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/poeditor\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCXAk1u8N49VRMAqNneENCFA\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/#\\\/schema\\\/person\\\/17dc166df9c0c7dfde49f069caf6e1c1\",\"name\":\"Anca\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d67b3c02838a428c9c27851a3e7486ec31f7648ae20abb5d4402cbcb8e7093be?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d67b3c02838a428c9c27851a3e7486ec31f7648ae20abb5d4402cbcb8e7093be?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d67b3c02838a428c9c27851a3e7486ec31f7648ae20abb5d4402cbcb8e7093be?s=96&d=mm&r=g\",\"caption\":\"Anca\"},\"url\":\"https:\\\/\\\/poeditor.com\\\/blog\\\/author\\\/anca\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use Webhooks to automate the sync with GitHub\/Bitbucket","description":"Info on how to automate the synchronization between the POEditor localization management platform and GitHub\/Bitbucket repositories","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/","og_locale":"en_US","og_type":"article","og_title":"How to use Webhooks to automate the sync with GitHub\/Bitbucket","og_description":"Info on how to automate the synchronization between the POEditor localization management platform and GitHub\/Bitbucket repositories","og_url":"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/","og_site_name":"POEditor Blog","article_publisher":"https:\/\/www.facebook.com\/POEditor","article_published_time":"2015-01-16T12:44:02+00:00","article_modified_time":"2024-02-02T08:22:53+00:00","og_image":[{"width":800,"height":418,"url":"https:\/\/poeditor.com\/blog\/wp-content\/uploads\/2020\/06\/Academic.png","type":"image\/png"}],"author":"Anca","twitter_card":"summary_large_image","twitter_creator":"@poeditor","twitter_site":"@poeditor","twitter_misc":{"Written by":"Anca"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/#article","isPartOf":{"@id":"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/"},"author":{"name":"Anca","@id":"https:\/\/poeditor.com\/blog\/#\/schema\/person\/17dc166df9c0c7dfde49f069caf6e1c1"},"headline":"How to use Webhooks to automate the sync with GitHub\/Bitbucket","datePublished":"2015-01-16T12:44:02+00:00","dateModified":"2024-02-02T08:22:53+00:00","mainEntityOfPage":{"@id":"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/"},"wordCount":385,"publisher":{"@id":"https:\/\/poeditor.com\/blog\/#organization"},"articleSection":["Best practices","Features","Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/","url":"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/","name":"How to use Webhooks to automate the sync with GitHub\/Bitbucket","isPartOf":{"@id":"https:\/\/poeditor.com\/blog\/#website"},"datePublished":"2015-01-16T12:44:02+00:00","dateModified":"2024-02-02T08:22:53+00:00","description":"Info on how to automate the synchronization between the POEditor localization management platform and GitHub\/Bitbucket repositories","breadcrumb":{"@id":"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/poeditor.com\/blog\/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/poeditor.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to use Webhooks to automate the sync with GitHub\/Bitbucket"}]},{"@type":"WebSite","@id":"https:\/\/poeditor.com\/blog\/#website","url":"https:\/\/poeditor.com\/blog\/","name":"POEditor Blog","description":"All about translation and localization management","publisher":{"@id":"https:\/\/poeditor.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/poeditor.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/poeditor.com\/blog\/#organization","name":"POEditor","url":"https:\/\/poeditor.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/poeditor.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/poeditor.com\/blog\/wp-content\/uploads\/2019\/11\/logo_head_512_transparent.png","contentUrl":"https:\/\/poeditor.com\/blog\/wp-content\/uploads\/2019\/11\/logo_head_512_transparent.png","width":512,"height":512,"caption":"POEditor"},"image":{"@id":"https:\/\/poeditor.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/POEditor","https:\/\/x.com\/poeditor","https:\/\/www.linkedin.com\/company\/poeditor\/","https:\/\/www.youtube.com\/channel\/UCXAk1u8N49VRMAqNneENCFA"]},{"@type":"Person","@id":"https:\/\/poeditor.com\/blog\/#\/schema\/person\/17dc166df9c0c7dfde49f069caf6e1c1","name":"Anca","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d67b3c02838a428c9c27851a3e7486ec31f7648ae20abb5d4402cbcb8e7093be?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d67b3c02838a428c9c27851a3e7486ec31f7648ae20abb5d4402cbcb8e7093be?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d67b3c02838a428c9c27851a3e7486ec31f7648ae20abb5d4402cbcb8e7093be?s=96&d=mm&r=g","caption":"Anca"},"url":"https:\/\/poeditor.com\/blog\/author\/anca\/"}]}},"_links":{"self":[{"href":"https:\/\/poeditor.com\/blog\/wp-json\/wp\/v2\/posts\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poeditor.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poeditor.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poeditor.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/poeditor.com\/blog\/wp-json\/wp\/v2\/comments?post=246"}],"version-history":[{"count":28,"href":"https:\/\/poeditor.com\/blog\/wp-json\/wp\/v2\/posts\/246\/revisions"}],"predecessor-version":[{"id":3805,"href":"https:\/\/poeditor.com\/blog\/wp-json\/wp\/v2\/posts\/246\/revisions\/3805"}],"wp:attachment":[{"href":"https:\/\/poeditor.com\/blog\/wp-json\/wp\/v2\/media?parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poeditor.com\/blog\/wp-json\/wp\/v2\/categories?post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poeditor.com\/blog\/wp-json\/wp\/v2\/tags?post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}