Skip to content

Commit a1b3743

Browse files
committed
Include hlint as part of the category suffix.
1 parent 0695671 commit a1b3743

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/AutomationDetails.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ add ::
4646
Value
4747
add env category (Object v) = Object $ mapWithKey addToRuns v
4848
where
49-
details = fromMaybe "" category <> "/" <> runId
49+
details = maybe "" (++ "/") category <> "hlint/" <> runId
5050
runId = fromMaybe "" (lookup "GITHUB_RUN_ID" env)
5151

5252
addToRuns "runs" (Array u) = Array $ fmap addToRun u

test/AutomationDetailsSpec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec = do
4040
singleton "automationDetails" $
4141
Object $
4242
singleton "id" $
43-
String (fromString category <> "/" <> fromString runId)
43+
String (fromString category <> "/hlint/" <> fromString runId)
4444
)
4545

4646
prop "adds empty category and empty run ID when not available" $
@@ -51,7 +51,7 @@ spec = do
5151
singleton "automationDetails" $
5252
Object $
5353
singleton "id" $
54-
String "/"
54+
String "hlint/"
5555
)
5656
where
5757
emptySarifLog = Object $ singleton "runs" $ Array $ Vector.singleton emptyObject

0 commit comments

Comments
 (0)