reviewdog / reviewdog

🐶 Automated code review tool integrated with any code analysis tools regardless of programming language

Home Page:https://medium.com/@haya14busa/reviewdog-a-code-review-dog-who-keeps-your-codebase-healthy-d957c471938b#.8xctbaw5u

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reviewdog: failed to get merge-base commit: exit status 1

hapi666 opened this issue · comments

env:

reviewdog version: 0.14.2 
golangci-lint version: v1.52.2
golang version: 1.20.2

.gitlab-ci.yml:

  script:
    - set +o pipefail
    - golangci-lint --version
    - git fetch
    - reviewdog -reporter=gitlab-mr-discussion -tee

gitlab ci error message:

reviewdog: failed to get merge-base commit: exit status 1

Also stuck with that.
Your branch does not have common commits with target branch. Do rebase, because merge returns fatal: refusing to merge unrelated histories.