|
1 |
| -How to connect your Git repository |
2 |
| -================================== |
| 1 | +How to automatically configure a Git repository |
| 2 | +=============================================== |
3 | 3 |
|
4 | 4 | In this article, we explain how connecting your Read the Docs account to |git_providers_or|
|
5 |
| -automatically configures your Git repository and your Read the Docs project. |
| 5 | +makes Read the Docs able to automatically configure your imported Git repositories and your Read the Docs projects. |
6 | 6 |
|
7 | 7 | ✅️ Signed up with your Git provider?
|
8 | 8 | If you signed up or logged in to Read the Docs with your |git_providers_or|
|
9 | 9 | credentials, you're all done. Your account is connected.
|
10 |
| - The permissions that are granted are :ref:`explained below <connected-accounts:Permissions for connected accounts>`. |
11 |
| -⬇️ Signed up with your email address? |
| 10 | + |
| 11 | + The rest of this guide helps to understand how the automatic configuration works. |
| 12 | + |
| 13 | +⏩️️ Signed up with your email address? |
12 | 14 | If you have signed up to Read the Docs with your email address,
|
13 | 15 | you can add the connection to the Git provider afterwards.
|
14 |
| - See: :doc:`/guides/connecting-git-account` |
| 16 | + You can also add a connection to an additional Git provider this way. |
| 17 | + |
| 18 | + Please follow :doc:`/guides/connecting-git-account` in this case. |
| 19 | + |
| 20 | +Automatic configuration |
| 21 | +----------------------- |
| 22 | + |
| 23 | +When your Read the Docs account is connected to |git_providers_or| and you import a Git repository, |
| 24 | +the integration will automatically be configured on the Read the Docs project and on your Git repository. |
| 25 | + |
| 26 | +Here is an outline of what happens: |
| 27 | + |
| 28 | +#. A list of repositories that you have access to are automatically listed on Read the Docs' project import. |
| 29 | +#. You choose a Git repository from the list (see :doc:`/intro/import-guide`). |
| 30 | +#. Data about the repository is now fetched using the account connection and you are asked to confirm the setup. |
| 31 | +#. When Read the Docs creates your project, |
| 32 | + it automatically sets up an integration with the Git provider, |
| 33 | + and creates an incoming webhook whereby Read the Docs is notified of all future changes to commits, branches and tags in the Git repository. |
| 34 | +#. Your project's incoming webhook is automatically added to your Git repository's settings using the account connection. |
| 35 | +#. Read the Docs also configures your project to use the Git provider's webhook via your account connection, |
| 36 | + so your project is ready to enable :doc:`Pull Request builds </guides/pull-requests>`. |
| 37 | + |
| 38 | +After the import, |
| 39 | +you can continue to configure the project. |
| 40 | +All settings can be modified, |
| 41 | +including the ones that were automatically created. |
| 42 | + |
| 43 | +.. TODO: The following is for a feature reference. |
15 | 44 |
|
16 |
| -If you are going to import repositories from |git_providers_or|, |
17 |
| -we recommend that you connect your Read the Docs account to your Git provider. |
| 45 | +.. If you are going to import repositories from |git_providers_or|, |
| 46 | +.. we recommend that you connect your Read the Docs account to your Git provider. |
18 | 47 |
|
19 |
| -Connecting your account allows for: |
| 48 | +.. Connecting your account allows for: |
20 | 49 |
|
21 |
| -* Easy import of your repositories. |
22 |
| -* Automatic configuration of your repository :doc:`/integrations`. |
23 |
| - which allow Read the Docs to build your docs on every change to your repository |
24 |
| -* Logging into Read the Docs with your |git_providers_or| credentials. |
| 50 | +.. * Easy import of your repositories. |
| 51 | +.. * Automatic configuration of your repository :doc:`/integrations`. |
| 52 | +.. which allow Read the Docs to build your docs on every change to your repository |
| 53 | +.. * Logging into Read the Docs with your |git_providers_or| credentials. |
25 | 54 |
|
26 | 55 |
|
27 | 56 | .. seealso::
|
@@ -51,7 +80,7 @@ By granting Read the Docs the requested permissions,
|
51 | 80 | we are issued a secret OAuth token from your Git provider.
|
52 | 81 |
|
53 | 82 | Using the secret token,
|
54 |
| -we can automatically configure the repository that you select in the :doc:`project import <intro/import-guide>`. |
| 83 | +we can automatically configure the repository that you select in the :doc:`project import </intro/import-guide>`. |
55 | 84 | We also use the token to send back build statuses and preview URLs for :doc:`pull requests </pull-requests>`.
|
56 | 85 |
|
57 | 86 | .. _OAuth: https://en.wikipedia.org/wiki/OAuth
|
|
0 commit comments