代码拉取完成,页面将自动刷新
# Go to https://gitlab.com/reviewdog/reviewdog/-/settings/repository#js-push-remote-settings
# to sync the repository manually.
# Open merge request automatically and run reviewdog against created MR.
stages:
- openMr
- reviewdog
# https://github.com/tmaier/gitlab-auto-merge-request
Open Merge Request:
only:
- branches
except:
- master
stage: openMr
image: tmaier/gitlab-auto-merge-request:1
before_script: []
variables:
GIT_STRATEGY: none
script:
- merge-request.sh
Reviewdog:
only:
- branches
except:
- master
stage: reviewdog
image: golang:latest
cache:
key:
files:
- go.sum
paths:
- .cache
before_script:
- export GO111MODULE=on
- export GOPATH=${CI_PROJECT_DIR}/.cache
- export PATH=$PATH:$GOPATH/bin
- go install ./cmd/reviewdog
- go install golang.org/x/lint/golint@latest
script:
- golint ./... | reviewdog -f=golint -name=golint-discussion -reporter=gitlab-mr-discussion -filter-mode=nofilter
- golint ./... | reviewdog -f=golint -name=golint-commit -reporter=gitlab-mr-commit
- cd ./_testdata/ && golint ./... | reviewdog -f=golint -name=golint-discussion-subdir -reporter=gitlab-mr-discussion; cd -
- cat ./_testdata/custom_rdjson.json | reviewdog -name="custom-rdjson" -f=rdjson -reporter=gitlab-mr-discussion
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。