Skip to content

Commit fb4bd86

Browse files
authored
Update copy on notifications for github services deprecation (#5067)
* Updated copy on webhooks * Drop "deprecated webhook endpoint" copy, this is core team nomenclature, not user nomenclature. * Add small amount of docs to point to * Update docs and point to docs in notification message * Add year
1 parent 8a6bb8a commit fb4bd86

File tree

4 files changed

+52
-6
lines changed

4 files changed

+52
-6
lines changed

docs/webhooks.rst

+45
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ As an example, the URL pattern looks like this: *readthedocs.org/api/v2/webhook/
3636

3737
Use this URL when setting up a new webhook with your provider -- these steps vary depending on the provider:
3838

39+
.. _webhook-integration-github:
40+
3941
GitHub
4042
~~~~~~
4143

@@ -53,6 +55,8 @@ For a 403 error, it's likely that the Payload URL is incorrect.
5355

5456
.. note:: The webhook token, intended for the GitHub **Secret** field, is not yet implemented.
5557

58+
.. _webhook-integration-bitbucket:
59+
5660
Bitbucket
5761
~~~~~~~~~
5862

@@ -63,6 +67,8 @@ Bitbucket
6367
* Under **Triggers**, **Repository push** should be selected
6468
* Finish by clicking **Save**
6569

70+
.. _webhook-integration-gitlab:
71+
6672
GitLab
6773
~~~~~~
6874

@@ -73,6 +79,8 @@ GitLab
7379
* Leave the default **Push events** selected and mark **Tag push events** also
7480
* Finish by clicking **Add Webhook**
7581

82+
.. _webhook-integration-generic:
83+
7684
Using the generic API integration
7785
---------------------------------
7886

@@ -136,3 +144,40 @@ Resyncing webhooks
136144
It might be necessary to re-establish a webhook if you are noticing problems.
137145
To resync a webhook from Read the Docs, visit the integration detail page and
138146
follow the directions for re-syncing your repository webhook.
147+
148+
Troubleshooting
149+
---------------
150+
151+
My project isn't automatically building
152+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
153+
154+
If your project isn't automatically building, you can check your integration on
155+
Read the Docs to see the payload sent to our servers. If there is no recent
156+
activity on your Read the Docs project webhook integration, then it's likely
157+
that your VCS provider is not configured correctly. If there is payload
158+
information on your Read the Docs project, you might need to verify that your
159+
versions are configured to build correctly.
160+
161+
Either way, it may help to either resync your webhook intergration (see
162+
`Resyncing webhooks`_ for information on this process), or set up an entirely
163+
new webhook intergration.
164+
165+
.. _webhook-github-services:
166+
167+
I was warned I shouldn't use GitHub Services
168+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
169+
170+
Last year, GitHub announced that effective Jan 31st, 2019, GitHub Services will stop
171+
working [1]_. This means GitHub will stop sending notifications to Read the Docs
172+
for projects configured with the ``ReadTheDocs`` GitHub Service. If your project
173+
has been configured on Read the Docs for a long time, you are most likely still
174+
using this service to automatically build your project on Read the Docs.
175+
176+
In order for your project to continue automatically building, you will need to
177+
configure your GitHub repository with a new webhook. You can use either a
178+
connected GitHub account and a :ref:`GitHub webhook integration <webhook-integration-github>`
179+
on your Read the Docs project, or you can use a
180+
:ref:`generic webhook integraiton <webhook-integration-generic>` without a connected
181+
account.
182+
183+
.. [1] https://developer.github.com/changes/2018-04-25-github-services-deprecation/

readthedocs/projects/notifications.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class DeprecatedWebhookEndpointNotification(Notification):
3737

3838
name = 'deprecated_webhook_endpoint'
3939
context_object_name = 'project'
40-
subject = 'Project {{ project.name }} is using a deprecated webhook'
40+
subject = '{{ project.name }} project webhook needs to be updated'
4141
send_email = False
4242
email_period = timedelta(days=7)
4343
level = REQUIREMENT
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
<p>Just a heads up, your project {{ project.name }} has configured a <em>DEPRECATED</em> webhook to trigger new builds and should be upgraded. Projects hitting these deprecated webhook will stop building on Jan 1, 2019. Please, update it soon!</p>
1+
<p>Your project, {{ project.name }}, is currently using GitHub Services to trigger builds on Read the Docs. Effective January 31, 2019, GitHub will no longer process requests using the Services feature, and so Read the Docs will not receive notifications on updates to your repository.</p>
22

3-
<p>To update the webhook your project is hitting, you need to go to the project's settings under your VCS service (GitHub, Bitbucket or GitLab) and remove the Read the Docs webhook from there.</p>
3+
<p>To continue building your Read the Docs project on changes to your repository, you will need to add a new webhook on your GitHub repository. You can either connect your GitHub account and configure a GitHub webhook integration, or you can add a generic webhook integration.</p>
44

5-
<p>Once you have done that, you need to go to your <a href="{% url "projects_integrations" project.slug %}">project's Integrations</a> under Read the Docs project's Admin, click integration and then in "Resync webhook" button.</p>
5+
<p>You can find more information on our webhook intergrations in our documentation, at:</p>
66

7-
<p>Thanks!</p>
7+
{% comment %}Plain text link because of text version of email{% endcomment %}
8+
<p><a href="https://docs.readthedocs.io/en/latest/webhooks.html">https://docs.readthedocs.io/en/latest/webhooks.html</a></p>
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Your project {{ project.name }} has configured a <em>DEPRECATED</em> webhook to trigger new builds and should be upgraded. Projects hitting these deprecated webhooks will stop building on Jan 1, 2019. <a href="{% url "projects_integrations" project.slug %}">Please, update it soon!</a>
1+
Your project, {{ project.name }}, needs to be reconfigured in order to continue building automatically after Jan 31st. For more information, <a href="https://docs.readthedocs.io/en/latest/webhooks.html#webhook-github-services">see our documentation on webhook integrations</a>.

0 commit comments

Comments
 (0)