Fix showing success message if PR force-merge fails. (#1016)
This commit is contained in:
parent
d74087e14c
commit
6ccc253599
@ -638,7 +638,7 @@ export default class API {
|
||||
})
|
||||
.catch((error) => {
|
||||
if (error instanceof APIError && error.status === 405) {
|
||||
this.forceMergePR(pullrequest, objects);
|
||||
return this.forceMergePR(pullrequest, objects);
|
||||
} else {
|
||||
throw error;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user