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)}
|
{...permissionProps(permPushResult, standalone)}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (mergeOption.method !== 'close') {
|
if (mergeOption.method !== 'close') {
|
||||||
const payload: OpenapiMergePullReq = { method: mergeOption.method }
|
const payload: OpenapiMergePullReq = {
|
||||||
|
method: mergeOption.method,
|
||||||
|
source_sha: pullRequestMetadata?.source_sha
|
||||||
|
}
|
||||||
mergePR(payload)
|
mergePR(payload)
|
||||||
.then(onPRStateChanged)
|
.then(onPRStateChanged)
|
||||||
.catch(exception => showError(getErrorMessage(exception)))
|
.catch(exception => showError(getErrorMessage(exception)))
|
||||||
|
Loading…
Reference in New Issue
Block a user