You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I trying to setup an incoming webhook from Bitrise on Gitlab push event.
In my team workflow, we push an empty branch for creating new release. According to Gitlab documentation,commits fields array is empty :
If you create and push a branch without any new commits, the commits attribute in the payload is empty.
When webhook is triggered, I receive the following error from Bitrise :
{
"error": "Failed to transform the webhook: The commit specified by 'checkout_sha' was not included in the 'commits' array - no match found"
}
I found the source code where error is thrown :
isLastCommitFound:=falsefor_, aCommit:=rangecodePushEvent.Commits {
ifaCommit.CommitHash==codePushEvent.CheckoutSHA {
isLastCommitFound=truelastCommit=aCommitbreak
}
}
if!isLastCommitFound {
return hookCommon.TransformResultModel{
DontWaitForTriggerResponse: true,
Error: errors.New("The commit specified by 'checkout_sha' was not included in the 'commits' array - no match found"),
}
}
Hi 👋
I trying to setup an incoming webhook from Bitrise on Gitlab push event.
In my team workflow, we push an empty branch for creating new release. According to Gitlab documentation,
commits
fields array is empty :Source : Gitlab push event documentation
When webhook is triggered, I receive the following error from Bitrise :
I found the source code where error is thrown :
Source : gitlab.go
Is there an another way for setting up the incoming webhook ?
Maybe a solution is testing if
codePushEvent.Commits
is empty before iterating on it ?Thank's
Sylvain
The text was updated successfully, but these errors were encountered: