Skip to content

Commit

Permalink
don't save event with : and replace it with -
Browse files Browse the repository at this point in the history
Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel committed Apr 20, 2022
1 parent f1f14f4 commit 1814b50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gosmee.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ func (c goSmee) parse(data []byte) (payloadMsg, error) {

if payloadKey == "x-github-event" || payloadKey == "x-gitlab-event" || payloadKey == "x-event-key" {
if pv, ok := payloadValue.(string); ok {
// github action don't like it
pv = strings.ReplaceAll(pv, ":", "-")
pm.eventType = pv
}
}
Expand Down

0 comments on commit 1814b50

Please sign in to comment.