Skip to content

Commit

Permalink
fix: add branch field to API conversion (#188)
Browse files Browse the repository at this point in the history
* fix: add branch field to API conversion

* chore: bump version of pysnyk
  • Loading branch information
nathan-roys authored Aug 14, 2023
1 parent 625435f commit afab634
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pysnyk"
version = "0.9.8"
version = "0.9.9"
description = "A Python client for the Snyk API"
authors = [
"Gareth Rushgrove <[email protected]>",
Expand Down
1 change: 1 addition & 0 deletions snyk/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def _rest_to_v1_response_format(self, project):
"critical": issue_counts.get("critical"),
},
"targetReference": attributes.get("target_reference"),
"branch": attributes.get("target_reference"),
"_tags": attributes.get("tags", []),
"importingUserId": project.get("relationships", {})
.get("importer", {})
Expand Down

0 comments on commit afab634

Please sign in to comment.