Clone issue every now and then

Hi, as a part of pipeline, this clone issue keeps happening once in a while

+ git init
0s
2
Initialized empty Git repository in /drone/src/github.com/org/repo/.git/
0s
3
+ git remote add origin https://github.com/org/repo.git
0s
4
+ git fetch --no-tags origin +refs/pull/235/merge:
0s
5
fatal: Couldn't find remote ref refs/pull/235/merge
0s
6
exit status 128

there are two scenarios in which this happens

  • your pull request has a merge conflict, in which case no merge ref exists. This is expected to fail
  • github sends the pull request hook before it has created the merge commit. You can alternatively configure drone to use the head ref instead of the merge ref (see the github configuration docs)