{"_id":"590a04f4ed80861900cbc767","parentDoc":null,"project":"55b2d5baa74a380d00e290c4","user":"55b2d5626862a10d00887af9","__v":0,"version":{"_id":"590a04f2ed80861900cbc737","project":"55b2d5baa74a380d00e290c4","__v":4,"createdAt":"2017-05-03T16:27:30.085Z","releaseDate":"2017-05-03T16:27:30.085Z","categories":["590a04f3ed80861900cbc738","590a04f3ed80861900cbc739","590a04f3ed80861900cbc73a","590a04f3ed80861900cbc73b","590a04f3ed80861900cbc73c","590a04f3ed80861900cbc73d","590a04f3ed80861900cbc73e","590a04f3ed80861900cbc73f","590a04f3ed80861900cbc740","590a04f3ed80861900cbc741","590a04f3ed80861900cbc742","590a04f3ed80861900cbc743","590a04f3ed80861900cbc744","590a04f3ed80861900cbc745","590a04f3ed80861900cbc746","590a04f3ed80861900cbc747","590a04f3ed80861900cbc748","590a04f3ed80861900cbc749","590a04f3ed80861900cbc74a","590a04f3ed80861900cbc74b","590a04f3ed80861900cbc74c","590a04f3ed80861900cbc74d","59124949de13f61900336a7a","5914b04e7c2c552d008b7104","5914b47242c6a22300b9dc20"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"7.0.0","version":"7"},"category":{"_id":"590a04f3ed80861900cbc73e","project":"55b2d5baa74a380d00e290c4","version":"590a04f2ed80861900cbc737","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-14T01:14:16.514Z","from_sync":false,"order":6,"slug":"webhooks","title":"Webhooks"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-12T17:55:21.362Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"A webhook notifies buddybuild of code changes you make to your repo. Whenever a new change is pushed, buddybuild will automatically kick off a new build - ensuring you have up-to-date build status and your testers have the very latest builds.\n\nLet's get started!\n\nOn the Builds page, in the red banner at the top of the page, click on **Resolve this issue.**\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/57907b2-Webhooks_-_resolve_banner.png\",\n        \"Webhooks - resolve banner.png\",\n        1500,\n        298,\n        \"#f8403f\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nIn the dialog box that appears, **select and copy the webhook URL.** This URL is specific to your app and will be used to identify your app when sending webhooks from GitHub.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/80b70b2-Webhooks_-_modal.png\",\n        \"Webhooks - modal.png\",\n        1500,\n        838,\n        \"#535663\"\n      ]\n    }\n  ]\n}\n[/block]\nNavigate to your GitHub repository. In the right panel, select **Settings.**\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/8voiFmjTduckYL3jcD0I_Webhook%20URL%20Github%201.png\",\n        \"Webhook URL Github 1.png\",\n        \"3000\",\n        \"1188\",\n        \"#ec7454\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nIn the left navigation, select **Webhooks and services**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/a7LnA7T1QhikyoElv6H1_Webhook%20URL%20Github%202.png\",\n        \"Webhook URL Github 2.png\",\n        \"3000\",\n        \"1188\",\n        \"#bfa540\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nNext, select **Add webhook.**\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/A6Ug4cDpQSGEF38lrq4P_Webhook%20URL%20Github%203.png\",\n        \"Webhook URL Github 3.png\",\n        \"3000\",\n        \"1188\",\n        \"#bea540\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nPaste the URL you first copied into the **Payload URL** field.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/ILunehpTLO0lrKI901Ig_Webhook%20URL%20Github%204.png\",\n        \"Webhook URL Github 4.png\",\n        \"3000\",\n        \"1188\",\n        \"#bea440\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nUnder **Content type,** select **application/x-www-form-urlencoded.** You can leave the **Secret** field blank.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/BtkCncksQP6hf3Q19cY8_Webhook%20URL%20Github%205.png\",\n        \"Webhook URL Github 5.png\",\n        \"3000\",\n        \"1188\",\n        \"#958165\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nNext, choose **let me select individual events**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/KSKm42u8SkCkWfoP510T_Webhook%20URL%20Github%206.png\",\n        \"Webhook URL Github 6.png\",\n        \"3000\",\n        \"1188\",\n        \"#c5a249\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nOnce that expands, select **Pull Request** and **Push.** Ensure that **Active** is selected, and click **Add webhook**. You're now done!\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/DCD2svgsTXa20jP7ZJ69_Webhook%20URL%20Github%207.png\",\n        \"Webhook URL Github 7.png\",\n        \"3000\",\n        \"1188\",\n        \"#47745a\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"github-webhook","type":"basic","title":"Adding a GitHub Webhook"}

Adding a GitHub Webhook


A webhook notifies buddybuild of code changes you make to your repo. Whenever a new change is pushed, buddybuild will automatically kick off a new build - ensuring you have up-to-date build status and your testers have the very latest builds. Let's get started! On the Builds page, in the red banner at the top of the page, click on **Resolve this issue.** [block:image] { "images": [ { "image": [ "https://files.readme.io/57907b2-Webhooks_-_resolve_banner.png", "Webhooks - resolve banner.png", 1500, 298, "#f8403f" ], "sizing": "full" } ] } [/block] In the dialog box that appears, **select and copy the webhook URL.** This URL is specific to your app and will be used to identify your app when sending webhooks from GitHub. [block:image] { "images": [ { "image": [ "https://files.readme.io/80b70b2-Webhooks_-_modal.png", "Webhooks - modal.png", 1500, 838, "#535663" ] } ] } [/block] Navigate to your GitHub repository. In the right panel, select **Settings.** [block:image] { "images": [ { "image": [ "https://files.readme.io/8voiFmjTduckYL3jcD0I_Webhook%20URL%20Github%201.png", "Webhook URL Github 1.png", "3000", "1188", "#ec7454", "" ], "sizing": "full" } ] } [/block] In the left navigation, select **Webhooks and services**. [block:image] { "images": [ { "image": [ "https://files.readme.io/a7LnA7T1QhikyoElv6H1_Webhook%20URL%20Github%202.png", "Webhook URL Github 2.png", "3000", "1188", "#bfa540", "" ], "sizing": "full" } ] } [/block] Next, select **Add webhook.** [block:image] { "images": [ { "image": [ "https://files.readme.io/A6Ug4cDpQSGEF38lrq4P_Webhook%20URL%20Github%203.png", "Webhook URL Github 3.png", "3000", "1188", "#bea540", "" ], "sizing": "full" } ] } [/block] Paste the URL you first copied into the **Payload URL** field. [block:image] { "images": [ { "image": [ "https://files.readme.io/ILunehpTLO0lrKI901Ig_Webhook%20URL%20Github%204.png", "Webhook URL Github 4.png", "3000", "1188", "#bea440", "" ], "sizing": "full" } ] } [/block] Under **Content type,** select **application/x-www-form-urlencoded.** You can leave the **Secret** field blank. [block:image] { "images": [ { "image": [ "https://files.readme.io/BtkCncksQP6hf3Q19cY8_Webhook%20URL%20Github%205.png", "Webhook URL Github 5.png", "3000", "1188", "#958165", "" ], "sizing": "full" } ] } [/block] Next, choose **let me select individual events**. [block:image] { "images": [ { "image": [ "https://files.readme.io/KSKm42u8SkCkWfoP510T_Webhook%20URL%20Github%206.png", "Webhook URL Github 6.png", "3000", "1188", "#c5a249", "" ], "sizing": "full" } ] } [/block] Once that expands, select **Pull Request** and **Push.** Ensure that **Active** is selected, and click **Add webhook**. You're now done! [block:image] { "images": [ { "image": [ "https://files.readme.io/DCD2svgsTXa20jP7ZJ69_Webhook%20URL%20Github%207.png", "Webhook URL Github 7.png", "3000", "1188", "#47745a", "" ], "sizing": "full" } ] } [/block]