Commit 6afdd714 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'team-tasks-904-document-setting-up-automation' into 'master'

Improve Danger bot doc by advising to use project access token

See merge request gitlab-org/gitlab!64183
parents 7b16b6d1 a595b029
...@@ -119,13 +119,12 @@ However, you can speed these cycles up somewhat by emptying the ...@@ -119,13 +119,12 @@ However, you can speed these cycles up somewhat by emptying the
to revert the change before merging! to revert the change before merging!
To enable the Dangerfile on another existing GitLab project, run the following To enable the Dangerfile on another existing GitLab project, run the following
extra steps, based on [this procedure](https://danger.systems/guides/getting_started.html#creating-a-bot-account-for-danger-to-use): extra steps:
1. Add `@gitlab-bot` to the project as a `reporter`. 1. Create a [Project access tokens](../user/project/settings/project_access_tokens.md).
1. Add the `@gitlab-bot`'s `GITLAB_API_PRIVATE_TOKEN` value as a value for a new CI/CD 1. Add the token as a CI/CD project variable named `DANGER_GITLAB_API_TOKEN`.
variable named `DANGER_GITLAB_API_TOKEN`.
You should add the `~Danger bot` label to the merge request before sending it You should add the ~"Danger bot" label to the merge request before sending it
for review. for review.
## Current uses ## Current uses
......
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