Skip to content

Commit b6ab4ab

Browse files
committed
Fix GitHub integration to correctly check for existing issues instead of project keys
1 parent 191c237 commit b6ab4ab

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dojo/github.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def reopen_external_issue_github(find, note, prod, eng):
2828
logger.error("Unable to get project key")
2929
return
3030
# Check if we have github info related to the finding
31-
if not GITHUB_PKey.objects.filter(finding=find).exists():
31+
if not GITHUB_Issue.objects.filter(finding=find).exists():
3232
return
3333
# Get the GitHub issue related to the finding
3434
g_issue = GITHUB_Issue.objects.get(finding=find)
@@ -63,7 +63,7 @@ def close_external_issue_github(find, note, prod, eng):
6363
logger.error("Unable to get project key")
6464
return
6565
# Check if we have github info related to the finding
66-
if not GITHUB_PKey.objects.filter(finding=find).exists():
66+
if not GITHUB_Issue.objects.filter(finding=find).exists():
6767
return
6868
# Get the GitHub issue related to the finding
6969
g_issue = GITHUB_Issue.objects.get(finding=find)
@@ -98,7 +98,7 @@ def update_external_issue_github(find, prod, eng):
9898
logger.error("Unable to get project key")
9999
return
100100
# Check if we have github info related to the finding
101-
if not GITHUB_PKey.objects.filter(finding=find).exists():
101+
if not GITHUB_Issue.objects.filter(finding=find).exists():
102102
return
103103
# Get the GitHub issue related to the finding
104104
g_issue = GITHUB_Issue.objects.get(finding=find)

0 commit comments

Comments
 (0)