https://github.com/inloop/danger-gitlab
https://github.com/inloop/danger-gitlab
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/inloop/danger-gitlab
- Owner: inloop
- License: mit
- Created: 2018-07-12T08:18:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T06:40:08.000Z (over 7 years ago)
- Last Synced: 2025-05-20T19:24:20.877Z (8 months ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# danger-gitlab
Example `.gitlab-ci.yml` file:
```
stages:
- check
danger:
stage: check
image: inloopx/danger-gitlab
tags:
- docker
before_script:
- export CI_MERGE_REQUEST_ID=$(git ls-remote -q origin merge-requests\*\head | grep $CI_COMMIT_SHA | sed 's/.*refs\/merge-requests\/\([0-9]*\)\/head/\1/g')
- export CI_PROJECT_PATH=$CI_PROJECT_ID #some version of gitlab has problems with searching by project path
script:
- danger
```