mirror of
https://github.com/harness/drone.git
synced 2025-05-21 19:39:59 +08:00
fix: [code-970]: add commitsha to merge api (#766)
This commit is contained in:
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
Block a user