Skip to content

Commit

Permalink
Merge branch 'main' into pagerduty-create-at
Browse files Browse the repository at this point in the history
  • Loading branch information
JaanJah authored Jul 25, 2024
2 parents a238050 + 0735687 commit fa26606
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 7 additions & 0 deletions integrations/azure-devops/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- towncrier release notes start -->

# Port_Ocean 0.1.44 (2024-07-25)

### Bug Fixes

- Fixed case where comparing events failed because ADO returns unexpected additional keys inside the PublisherInputs.


# Port_Ocean 0.1.43 (2024-07-24)

### Improvements
Expand Down
12 changes: 10 additions & 2 deletions integrations/azure-devops/azure_devops/webhooks/webhook_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,17 @@ def get_event_by_subscription(
subscribed_event.publisherId == self.publisherId
and subscribed_event.eventType == self.eventType
and subscribed_event.consumerInputs == self.consumerInputs
and subscribed_event.publisherInputs == self.publisherInputs
):
return subscribed_event
if not self.publisherInputs and not subscribed_event.publisherInputs:
return subscribed_event

# Azure Devops sends more than just the projectId in the publisherInputs,
# And we only need to verify the projectId
if self.publisherInputs and subscribed_event.publisherInputs:
if subscribed_event.publisherInputs.get(
"projectId", None
) == self.publisherInputs.get("projectId", None):
return subscribed_event

return None

Expand Down
2 changes: 1 addition & 1 deletion integrations/azure-devops/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "azure-devops"
version = "0.1.43"
version = "0.1.44"
description = "An Azure Devops Ocean integration"
authors = ["Matan Geva <[email protected]>"]

Expand Down

0 comments on commit fa26606

Please sign in to comment.