Skip to content

Commit

Permalink
Add missing pagerduty parser
Browse files Browse the repository at this point in the history
  • Loading branch information
italolelis committed Dec 12, 2022
1 parent 732de84 commit 1171915
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/subscriber/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/italolelis/watchops/internal/app/provider/gh"
"github.com/italolelis/watchops/internal/app/provider/gitlab"
"github.com/italolelis/watchops/internal/app/provider/opsgenie"
"github.com/italolelis/watchops/internal/app/provider/pagerduty"
"github.com/italolelis/watchops/internal/app/storage"
"github.com/italolelis/watchops/internal/app/stream"
"github.com/italolelis/watchops/internal/app/subscriber"
Expand Down Expand Up @@ -81,7 +82,8 @@ func run(ctx context.Context) error {
Register(&gh.Parser{}).
Register(&opsgenie.Parser{}).
Register(&gh.Parser{}).
Register(&gitlab.Parser{})
Register(&gitlab.Parser{}).
Register(&pagerduty.Parser{})

events := stream.NewEventDataHandler(db, pr)
return subs.Subscribe(ctx, events.Handle)
Expand Down

0 comments on commit 1171915

Please sign in to comment.