Skip to content

Commit

Permalink
Merge pull request #14690 from danidoni/fix/reuse-existing-event-subs…
Browse files Browse the repository at this point in the history
…criptions-to-notify-scms-back

Reuse existing event subscription to notify SCMs back
  • Loading branch information
hennevogel committed Jul 24, 2023
2 parents d208d5f + ead8164 commit 9035d4e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def call
channel: 'scm',
enabled: true,
token: @token,
package: @package,
workflow_run: @workflow_run).tap do |subscription|
subscription.update!(payload: @scm_webhook.payload) # The payload is updated regardless of whether the subscription already existed or not.
package: @package).tap do |subscription|
# Set payload and workflow_run regardless of whether the subscription already existed or not
subscription.update!(workflow_run: @workflow_run, payload: @scm_webhook.payload)
end
end
end
Expand Down

0 comments on commit 9035d4e

Please sign in to comment.