Skip to content

Commit

Permalink
fix: allow lobicornis to merge PR where skipped job are present
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatur committed Aug 30, 2024
1 parent 2fd0ac3 commit 211fcc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/repository/repository_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const (
InProgress = "in_progress"
// Queued Check state.
Queued = "queued"
// Skipped Check state.
Skipped = "skipped"

// Approved Review state.
Approved = "APPROVED"
Expand Down
2 changes: 1 addition & 1 deletion pkg/repository/repository_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (r *Repository) getAggregatedState(ctx context.Context, pr *github.PullRequ
return "", err
}

if status == Pending || status == Success {
if status == Pending || status == Success || status == Skipped {
return status, nil
}

Expand Down

0 comments on commit 211fcc1

Please sign in to comment.