Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f9bfde01
Commit
f9bfde01
authored
Jan 08, 2020
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document how to use dangerbot from forks
This explains how to workaround one of the dangerbot limitations.
parent
16f76007
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
doc/development/dangerbot.md
doc/development/dangerbot.md
+13
-1
No files found.
doc/development/dangerbot.md
View file @
f9bfde01
...
@@ -119,4 +119,16 @@ at GitLab so far:
...
@@ -119,4 +119,16 @@ at GitLab so far:
## Limitations
## Limitations
-
[
`danger local` does not work on GitLab
](
https://github.com/danger/danger/issues/458
)
-
[
`danger local` does not work on GitLab
](
https://github.com/danger/danger/issues/458
)
-
Danger output is not added to a merge request comment if working on a fork.
-
Danger output is not added to a merge request comment if working on
a fork. This happens because the secret variable from the canonical
project is not shared to forks.
To work around this, you can add an
[
environment
variable
](
../ci/variables/README.md
)
called
`DANGER_GITLAB_API_TOKEN`
with a personal API token to your
fork. That way the danger comments will be made from CI using that
API token instead.
Making the variable
[
masked
](
../ci/variables/README.md#masked-variables
)
will make sure
it doesn't show up in the job logs. The variable cannot be
[
protected
](
../ci/variables/README.md#protected-environment-variables
)
,
as it needs to be present for all feature branches.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment