Skip to content

Commit

Permalink
more debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
bartkrak committed Feb 2, 2024
1 parent 79fa908 commit acdecca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/python/get_author_origin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
except:
print("An exception occurred, provided JSON:")
print(membrane_team)

print("provided PR_AUTHOR:", pr_author)
5 changes: 3 additions & 2 deletions scripts/python/get_ticket_id.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import sys, json;

full_json = json.load(sys.stdin)
pr_url = sys.argv[1]

try:
project_items = full_json["items"]
pr_url = sys.argv[1]
[id] = [item["id"] for item in project_items if ("url" in item["content"] and item["content"]["url"] == pr_url)]
print(id)
except:
print("An exception occurred, provided JSON:")
print(full_json)
print(full_json)
print("provided PR_URL:", pr_url)

0 comments on commit acdecca

Please sign in to comment.