1. Create a web hook on GitHub to notify GitLab of new commits.
CAUTION: **Caution:**
Due to a 10-token limitation on the [GitHub OAuth Implementation](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#creating-multiple-tokens-for-oauth-apps),
if you import more than 10 times, your oldest imported project's token will be
revoked. See issue [#9147](https://gitlab.com/gitlab-org/gitlab-ee/issues/9147)
for more information.
## Connect with Personal Access Token
## Connect with Personal Access Token
...
@@ -47,8 +22,7 @@ NOTE: **Note:**
...
@@ -47,8 +22,7 @@ NOTE: **Note:**
Personal access tokens can only be used to connect GitHub.com
Personal access tokens can only be used to connect GitHub.com
repositories to GitLab.
repositories to GitLab.
If you are not using the [GitHub integration](../../integration/github.md), you can
To perform a one-off authorization with GitHub to grant GitLab access your
still perform a one-off authorization with GitHub to grant GitLab access your
repositories:
repositories:
1. Open <https://github.com/settings/tokens/new> to create a **Personal Access
1. Open <https://github.com/settings/tokens/new> to create a **Personal Access
...
@@ -69,18 +43,19 @@ repositories:
...
@@ -69,18 +43,19 @@ repositories:
1. In GitHub, add a `.gitlab-ci.yml` to [configure GitLab CI/CD](../quick_start/README.md).
1. In GitHub, add a `.gitlab-ci.yml` to [configure GitLab CI/CD](../quick_start/README.md).
GitLab will import the project, enable [Pull Mirroring](../../workflow/repository_mirroring.md#pulling-from-a-remote-repository-starter), enable
GitLab will:
[GitHub project integration](../../user/project/integrations/github.md), and create a web hook