Skip to content

Commit

Permalink
Auto-poll a stack pr on new events
Browse files Browse the repository at this point in the history
Otherwise this would take the full poll interval, which is an annoying delay.
  • Loading branch information
michaeljguarino committed Sep 30, 2024
1 parent 583602b commit 57955ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/console/deployments/pubsub/recurse.ex
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ defimpl Console.PubSub.Recurse, for: Console.PubSub.PipelineStageUpdated do
end
end

defimpl Console.PubSub.Recurse, for: Console.PubSub.PullRequestCreated do
defimpl Console.PubSub.Recurse, for: [Console.PubSub.PullRequestCreated, Console.PubSub.PullRequestUpdated] do
alias Console.{Schema.PullRequest, Deployments.Stacks}

def process(%{item: %PullRequest{stack_id: id} = pr}) when is_binary(id),
Expand Down

0 comments on commit 57955ff

Please sign in to comment.