<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kiririmode</author_name>
  <author_url>https://blog.hatena.ne.jp/kiririmode/</author_url>
  <blog_title>理系学生日記</blog_title>
  <blog_url>https://kiririmode.hatenablog.jp/</blog_url>
  <categories>
    <anon>gitlab</anon>
    <anon>ci</anon>
    <anon>reviewdog</anon>
  </categories>
  <description>CIで実行した静的解析の結果をMerge Requestのコメントとして書き込みたいというニーズは多くあります。 これを容易に叶えてくれるプロダクトがreviewdogです。 問題 このreviewdogをGitLab CI/CDに設定したのですが、以下の様なエラーが出て失敗してしまうのです。 reviewdog: fail to get diff: failed to get merge-base commit: exit status 1 解決法とその理由 これが最善なのか、他に方法がないのかというとなかなか答えに窮しますが、以下のようにして解決できました。 要するに、ジョブの変数としてG…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiririmode.hatenablog.jp%2Fentry%2F20220327%2F1648344999&quot; title=&quot;ReviewdogをGitLabで使うときに`failed to get merge-base commit`が発生する - 理系学生日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kiririmode/20220327/20220327105949.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-27 10:36:39</published>
  <title>ReviewdogをGitLabで使うときに`failed to get merge-base commit`が発生する</title>
  <type>rich</type>
  <url>https://kiririmode.hatenablog.jp/entry/20220327/1648344999</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
