Skip to content

Commit

Permalink
Avoid updating ticket_information with incident info
Browse files Browse the repository at this point in the history
Before this ticket_information was updated when setting labels determined by mapping
This lead to the label of the previous incident being saved
  • Loading branch information
johannaengland committed Jun 20, 2024
1 parent 9f7d0da commit a4324c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/argus_ticket_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def get_labels(
ticket_information: dict, serialized_incident: dict
) -> tuple[dict, List[str]]:
incident_tags = GithubPlugin.convert_tags_to_dict(serialized_incident["tags"])
labels = ticket_information.get("labels_set", [])
labels = []
labels.extend(ticket_information.get("labels_set", []))
labels_mapping = ticket_information.get("labels_mapping", [])
missing_fields = []

Expand Down

0 comments on commit a4324c7

Please sign in to comment.