Commit 399bf72b authored by Caleb Williamson's avatar Caleb Williamson Committed by Suzanne Selhorn

Update GitHub integration docs

parent 548b5299
...@@ -33,11 +33,9 @@ repositories: ...@@ -33,11 +33,9 @@ repositories:
your project, update commit statuses, and create a web hook to notify your project, update commit statuses, and create a web hook to notify
GitLab of new commits. GitLab of new commits.
1. In GitLab create a **CI/CD for external repo** project and select 1. In GitLab, go to the [new project page](../../gitlab-basics/create-project.md#create-a-project-in-gitlab), select the **CI/CD for external repo** tab, and then click
**GitHub**. **GitHub**.
![Create project](img/github_omniauth.png)
1. Paste the token into the **Personal access token** field and click **List 1. Paste the token into the **Personal access token** field and click **List
Repositories**. Click **Connect** to select the repository. Repositories**. Click **Connect** to select the repository.
...@@ -91,7 +89,7 @@ To manually enable GitLab CI/CD for your repository: ...@@ -91,7 +89,7 @@ To manually enable GitLab CI/CD for your repository:
https://gitlab.com/api/v4/projects/<NAMESPACE>%2F<PROJECT>/mirror/pull?private_token=<PERSONAL_ACCESS_TOKEN> https://gitlab.com/api/v4/projects/<NAMESPACE>%2F<PROJECT>/mirror/pull?private_token=<PERSONAL_ACCESS_TOKEN>
``` ```
![Create web hook](img/github_push_webhook.png) Select the **Let me select individual events** option, then check the **Pull requests** and **Pushes** checkboxes. These settings are needed for [pipelines for external pull requests](index.md#pipelines-for-external-pull-requests).
1. In GitHub add a `.gitlab-ci.yml` to configure GitLab CI/CD. 1. In GitHub add a `.gitlab-ci.yml` to configure GitLab CI/CD.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment