|
| 1 | +Autobuild Documentation for Pull Requests |
| 2 | +========================================= |
| 3 | + |
| 4 | +Read the Docs allows autobuilding documentation for pull/merge requests for GitHub or GitLab projects. |
| 5 | +This feature is currently available under a :doc:`Feature Flag </guides/feature-flags>`. |
| 6 | +So, you can enable this feature by sending us an ` email < mailto:[email protected]>`__ including your project URL. |
| 7 | + |
| 8 | +Features |
| 9 | +======== |
| 10 | + |
| 11 | +- **Build on Pull/Merge Request Event:** We create an external version and trigger a build for that version |
| 12 | + when we receive pull/merge request open event from the webhook. |
| 13 | + We also trigger a new build when a new commit has been pushed to the Pull/Merge Request. |
| 14 | + |
| 15 | +- **Warning Banner for Pull/Merge Request Documentation:** While building documentation for pull/merge requests |
| 16 | + we add a warning banner at the top of those documentations to let the users know that |
| 17 | + this documentation was generated from pull/merge requests and is not the main documentation for the project. |
| 18 | + |
| 19 | +- **Send Build Status Notification:** We send build status reports to the status API of the provider (e.g. GitHub, GitLab). |
| 20 | + When a build is triggered for a pull/merge request we send build pending notification with the build URL |
| 21 | + and after the build has finished we send success notification if the build succeeded without any error |
| 22 | + or failure notification if the build failed. |
| 23 | + |
| 24 | +.. figure:: ../_static/images/guides/github-build-status-reporting.gif |
| 25 | + :align: center |
| 26 | + :alt: GitHub Build Status Reporting for Pull Requests. |
| 27 | + :figwidth: 80% |
| 28 | + :target: ../_static/images/guides/github-build-status-reporting.gif |
| 29 | + |
| 30 | + GitHub Build Status Reporting for Pull Requests |
| 31 | + |
| 32 | +Troubleshooting |
| 33 | +=============== |
| 34 | + |
| 35 | +After the feature is enabled on your project if everything does not work as expected, |
| 36 | +some common causes might be: |
| 37 | + |
| 38 | +#. Project repository should be from GitHub or GitLab. This feature is only available for GitHub or GitLab. |
| 39 | + |
| 40 | +#. Social Account (GitHub, Gitlab) is not connected with Read the Docs account. |
| 41 | + If your project repository provider is GitHub or GitLab you need to make sure |
| 42 | + that you Read the Docs account is connected with that providers social account. |
| 43 | + You can check this by going to your `profile settings`_. |
| 44 | + |
| 45 | +#. Webhook is not properly setup. You need to make sure your webhook is properly setup |
| 46 | + to handle events. You can setup or ``re-sync`` the webhook from you projects admin dashboard. |
| 47 | + Learn more about setting up webhooks from our :doc:`Webhook Documentation </webhooks>`. |
| 48 | + |
| 49 | +If you have tried all the above troubleshooting and still getting issues, |
| 50 | +please let us know by sending us an ` email < mailto:[email protected]>`__. |
| 51 | + |
| 52 | +.. _profile settings: https://readthedocs.org/accounts/social/connections/ |
0 commit comments