Skip to content

Commit

Permalink
src/Logic: fix build (TODO: squash)
Browse files Browse the repository at this point in the history
  • Loading branch information
rudymatela committed Jul 28, 2022
1 parent 53e7cc8 commit e369136
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Logic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -635,10 +635,9 @@ getPullRequestRef (PullRequestId n) = Branch $ format "refs/pull/{}/head" [n]
getTrain :: ProjectState -> [PullRequestId]
getTrain state =
[ pid
| ( pid
, Pr.PullRequest{Pr.integrationStatus = Integrated _ status}
) <- Pr.getIntegrationCandidates state
, status == BuildPending
| pid <- Pr.integratedPullRequests state
, Just (Pr.PullRequest{Pr.integrationStatus = Integrated _ (BuildPending _)})
<- [Pr.lookupPullRequest pid state]
]

-- Integrates proposed changes from the pull request into the target branch.
Expand Down

0 comments on commit e369136

Please sign in to comment.