Skip to content

Commit 370d374

Browse files
Handle removed repository in GitLab
This changes prevents the following fatal error: DecodeError ["Unknown GetProjectMergeRequests response: GetProjectMergeRequests {project = Nothing}"] By properly handling removed project.
1 parent f578304 commit 370d374

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Lentille/GitLab/MergeRequests.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ transformResponse host getIdentIdCB result =
148148
, NoErr
149149
, extract shortName fullName <$> catMaybes nodes
150150
)
151+
GetProjectMergeRequests Nothing ->
152+
( PageInfo False Nothing Nothing
153+
, Nothing
154+
, NoRepo
155+
, []
156+
)
151157
_anyOtherResponse ->
152158
( PageInfo False Nothing Nothing
153159
, Nothing

0 commit comments

Comments
 (0)