Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions dist/helpers/check-merge-safety.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,8 @@ var checkForExistingFailureStatus = async (pullRequest, context2) => {
...context.repo,
ref: pullRequest.head.sha
});
if (data.state === "failure") {
const existingContext = data.statuses.find((status) => status.context === context2);
return Boolean(existingContext);
}
return false;
const existingContext = data.statuses.find((status) => status.context === context2);
return existingContext?.state === "failure";
};
var fetchSha = async (repoUrl, sha) => {
try {
Expand Down Expand Up @@ -259,4 +256,4 @@ export {
CheckMergeSafety
};

//# debugId=41C4FA0898BE964F64756E2164756E21
//# debugId=7687825B6B00F97364756E2164756E21
Loading
Loading