mirror of https://github.com/harness/drone.git
fix: [code-970]: add commitsha to merge api (#766)
parent
db7655c569
commit
afb21a3ca3
|
@ -314,7 +314,10 @@ export const PullRequestActionsBox: React.FC<PullRequestActionsBoxProps> = ({
|
|||
{...permissionProps(permPushResult, standalone)}
|
||||
onClick={async () => {
|
||||
if (mergeOption.method !== 'close') {
|
||||
const payload: OpenapiMergePullReq = { method: mergeOption.method }
|
||||
const payload: OpenapiMergePullReq = {
|
||||
method: mergeOption.method,
|
||||
source_sha: pullRequestMetadata?.source_sha
|
||||
}
|
||||
mergePR(payload)
|
||||
.then(onPRStateChanged)
|
||||
.catch(exception => showError(getErrorMessage(exception)))
|
||||
|
|
Loading…
Reference in New Issue