Skip to content

Commit afab634

Browse files
authored
fix: add branch field to API conversion (#188)
* fix: add branch field to API conversion * chore: bump version of pysnyk
1 parent 625435f commit afab634

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pysnyk"
3-
version = "0.9.8"
3+
version = "0.9.9"
44
description = "A Python client for the Snyk API"
55
authors = [
66
"Gareth Rushgrove <[email protected]>",

snyk/managers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def _rest_to_v1_response_format(self, project):
160160
"critical": issue_counts.get("critical"),
161161
},
162162
"targetReference": attributes.get("target_reference"),
163+
"branch": attributes.get("target_reference"),
163164
"_tags": attributes.get("tags", []),
164165
"importingUserId": project.get("relationships", {})
165166
.get("importer", {})

0 commit comments

Comments
 (0)