3 Star 0 Fork 0

mirrors_anirudh-ramesh/reviewdog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitlab-ci.yml 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
haya14busa 提交于 2022-04-19 18:53 . Fix the GitLab CI
# 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_anirudh-ramesh/reviewdog.git
git@gitee.com:mirrors_anirudh-ramesh/reviewdog.git
mirrors_anirudh-ramesh
reviewdog
reviewdog
master

搜索帮助