You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/guides/pull-requests.rst
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,13 @@ How to configure pull request builds
4
4
In this section, you can learn how to configure :doc:`pull request builds </pull-requests>`.
5
5
6
6
To enable pull request builds for your project,
7
-
your Read the Docs account needs to be connected to an account with a supported Git provider, with a webhook configured to send information on pull requests for your repository.
7
+
your Read the Docs project needs to be connected to a repository from a supported Git provider.
8
8
See `Limitations`_ for more information.
9
9
10
-
If your account is already connected:
11
-
12
10
#. Go to your project dashboard
13
-
#. Go to :guilabel:`Admin`, then :guilabel:`Settings`
11
+
#. Go to :guilabel:`Settings`, then :guilabel:`Pull request builds`
14
12
#. Enable the :guilabel:`Build pull requests for this project` option
15
-
#. Click on :guilabel:`Save`
13
+
#. Click on :guilabel:`Update`
16
14
17
15
.. tip::
18
16
@@ -44,18 +42,19 @@ while private previews are only available to users with access to the Read the D
44
42
To change the privacy level:
45
43
46
44
#. Go to your project dashboard
47
-
#. Go to :guilabel:`Admin`, then :guilabel:`Settings`
45
+
#. Go to :guilabel:`Settings`, then :guilabel:`Pull request builds`
48
46
#. Select your option in :guilabel:`Privacy level of builds from pull requests`
49
-
#. Click on :guilabel:`Save`
47
+
#. Click on :guilabel:`Update`
50
48
51
49
Privacy levels work the same way as :ref:`normal versions <versions:Version states>`.
52
50
53
51
Limitations
54
52
-----------
55
53
56
54
- Pull requests are only available for **GitHub** and **GitLab** currently. Bitbucket is not yet supported.
57
-
- To enable this feature, your Read the Docs account needs to be connected to an
58
-
account with your Git provider, *and* the connecting webhook must be configured to send on creation of a pull request, not just on pushes to your main branch.
55
+
- To enable this feature, your Read the Docs project needs to be connected to a repository from a supported Git provider.
56
+
- If your project is using our :ref:`reference/git-integration:GitHub App`, you don't need to configure a webhook.
57
+
For GitLab, and projects using our old GitHub integration, you need to make sure that your webhook is configured to send pull request events, not just push events.
59
58
- Builds from pull requests have the same memory and time limitations
60
59
:doc:`as regular builds </builds>`.
61
60
- Additional formats like PDF aren't built in order to reduce build time.
@@ -67,8 +66,12 @@ Troubleshooting
67
66
---------------
68
67
69
68
No new builds are started when I open a pull request
70
-
The most common cause is that your repository's webhook is not configured to
71
-
send Read the Docs pull request events. You'll need to re-sync your project's
69
+
The most common cause when using GitHub is that your Read the Docs project is not
70
+
:ref:`connected to the corresponding repository on GitHub <reference/git-integration:Connect a repository to an existing project>`.
71
+
72
+
If you are using our old GitHub integration,
73
+
make sure that your repository's webhook is configured to
74
+
send pull request events. You can re-sync your project's
72
75
webhook integration to reconfigure the Read the Docs webhook.
73
76
74
77
To re-sync your project's webhook, go to your project's admin dashboard,
Copy file name to clipboardExpand all lines: docs/user/reference/git-integration.rst
+38-2Lines changed: 38 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,11 @@ including the ones that were automatically created.
64
64
Read the Docs incoming webhook
65
65
------------------------------
66
66
67
+
.. note::
68
+
69
+
When using our :ref:`reference/git-integration:GitHub App`, Read the Docs subscribes to all required events.
70
+
You don't need to create a webhook on your repository.
71
+
67
72
Accounts with |git_providers_and| integration automatically have Read the Docs' incoming :term:`webhook` configured on all Git repositories that are imported.
68
73
Other setups can set up the webhook through :doc:`manual configuration </guides/setup/git-repo-manual>`.
69
74
@@ -109,8 +114,8 @@ We also use the token to send back build statuses and preview URLs for :doc:`pul
109
114
110
115
.. note::
111
116
112
-
Access granted to Read the Docs can always be revoked.
113
-
This is a function offered by all Git providers.
117
+
Access granted to Read the Docs can always be revoked.
118
+
This is a function offered by all Git providers.
114
119
115
120
Git provider integrations
116
121
-------------------------
@@ -124,6 +129,12 @@ A Git provider integration is active through the authentication of the user that
124
129
If this user is removed,
125
130
make sure to verify and potentially recreate all Git integrations for the project.
126
131
132
+
.. note::
133
+
134
+
When using our :ref:`reference/git-integration:GitHub App`,
135
+
If the original user who connected the repository to Read the Docs loses access to the project or repository,
136
+
the GitHub App will still have access to the repository, and the integrations will continue to work.
137
+
127
138
Permissions for connected accounts
128
139
----------------------------------
129
140
@@ -165,6 +176,31 @@ so that you can log in to Read the Docs with your connected account credentials.
165
176
but there isn't a more granular permission
166
177
that only allows setting up SSH keys for read access.
167
178
179
+
.. tab:: GitHub App
180
+
181
+
Read the Docs requests the following permissions when connecting your Read the Docs account to our :ref:`GitHub App <reference/git-integration:GitHub App>`.
182
+
183
+
Account email addresses (read only)
184
+
We ask for this so we can verify your email address and create a Read the Docs account.
185
+
186
+
When installing the Read the Docs GitHub App in a repository, you will be asked to grant the following permissions:
187
+
188
+
Repository permissions
189
+
Commit statuses (read and write)
190
+
This allows Read the Docs to report the status of the build to GitHub.
191
+
Contents (read only)
192
+
This allows Read the Docs to clone the repository and build the documentation.
193
+
Metadata (read only)
194
+
This allows Read the Docs to read the repository collaborators and the permissions they have on the repository.
195
+
This is used to determine if the user can connect a repository to a Read the Docs project.
196
+
Pull requests (read and write)
197
+
This allows Read the Docs to subscribe to pull request events,
198
+
and to create a comment on the pull request with information about the build.
199
+
200
+
Organization permissions
201
+
Members (read only)
202
+
This allows Read the Docs to read the organization members.
0 commit comments