drone/go-scm

the event pr:from_ref_updated is unknown with Bitbucket Server v6.10.5

bakito opened this issue · 3 comments

I'm running drone 1.10.1 (depending on drone/go-scm v1.8.0) with Bitbucket Server v6.10.5

With this combination the activation of repositories fails with the following error message:

{"message":"the event pr:from_ref_updated is unknown"}

This was working with drone 1.9.1

drone 1.10.1 added support for the bitbucket pr:from_ref_updated event which is only available in bitbucket 7.x and higher, which causes problems with older version of bitbucket. The current workaround is to use Drone version 1.8 which works with older versions of bitbucket.

Is there a possibility to have backaward compability by making the fields optional?