Skip to content

Commit

Permalink
Merge pull request #36 from gittuf/checkrun-optional
Browse files Browse the repository at this point in the history
Make checkrun failure return 'neutral' status
  • Loading branch information
adityasaky authored Dec 12, 2024
2 parents f66d69f + 64dfbea commit 3442f07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ func (g *GittufApp) handlePullRequest(ctx context.Context, event *github.PullReq
title = "PR is mergeable!"
summary = "Sufficient approvals have been submitted for the PR to be mergeable."
} else {
conclusion = "failure"
conclusion = "neutral"
title = "PR is not mergeable"
summary = "More approvals are necessary for the PR to be mergeable."
}
Expand Down Expand Up @@ -526,7 +526,7 @@ func (g *GittufApp) handlePullRequest(ctx context.Context, event *github.PullReq
title = "PR is mergeable!"
summary = "Sufficient approvals have been submitted for the PR to be mergeable."
} else {
conclusion = "failure"
conclusion = "neutral"
title = "PR is not mergeable"
summary = "More approvals are necessary for the PR to be mergeable."
}
Expand Down Expand Up @@ -696,7 +696,7 @@ func (g *GittufApp) handlePullRequestReview(ctx context.Context, event *github.P
title = "PR is mergeable!"
summary = "Sufficient approvals have been submitted for the PR to be mergeable."
} else {
conclusion = "failure"
conclusion = "neutral"
title = "PR is not mergeable"
summary = "More approvals are necessary for the PR to be mergeable."
}
Expand Down

0 comments on commit 3442f07

Please sign in to comment.