From afab634c9ba1cc50f7858a6213bd40fe6325fe81 Mon Sep 17 00:00:00 2001 From: nathan-roys <110457649+nathan-roys@users.noreply.github.com> Date: Mon, 14 Aug 2023 17:07:17 +0100 Subject: [PATCH] fix: add branch field to API conversion (#188) * fix: add branch field to API conversion * chore: bump version of pysnyk --- pyproject.toml | 2 +- snyk/managers.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9ebb58a..ace3985 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ", diff --git a/snyk/managers.py b/snyk/managers.py index 5bade74..4a6565e 100644 --- a/snyk/managers.py +++ b/snyk/managers.py @@ -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", {})