Open Merge Request automatically on GitLab and check reviewdog
-image: golang:latest
+# Open merge request automatically and run reviewdog against created MR.
+stages:
+ - openMr
+ - reviewdog
+
+# https://github.com/tmaier/gitlab-auto-merge-request
+Open Merge Request:
+ stage: openMr
+ image: tmaier/gitlab-auto-merge-request:1
+ before_script: []
+ variables:
+ GIT_STRATEGY: none
+ script:
+ - merge-request.sh
+Reviewdog:
+ stage: reviewdog
+ image: golang:latest
before_script:
# Set up $GOPATH and install reviewdog (Note that main repo is github.com)
- ln -s /builds /go/src/github.com
@@ -13,7 +29,6 @@ before_script:
- go get honnef.co/go/tools/cmd/staticcheck
- go get honnef.co/go/tools/cmd/unused
- go get github.com/client9/misspell/cmd/misspell
-
reviewdog:
script:
- reviewdog -reporter=gitlab-mr-discussion
