Skip to content

Commit

Permalink
Correct sync list handling
Browse files Browse the repository at this point in the history
  • Loading branch information
webbnh authored and ralphbean committed Feb 3, 2025
1 parent 13b091c commit 8b8702b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sync2jira/upstream_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ def handle_github_message(body, config, is_pr=False):
log.debug("%r not in Github map: %r", upstream, mapped_repos.keys())
return None
key = "pullrequest" if is_pr else "issue"
if key not in mapped_repos[upstream].get("sync", {}):
if key not in mapped_repos[upstream].get("sync", []):
log.debug(
"%r not in Github sync map: %r",
key,
mapped_repos[upstream].get("sync", {}).keys(),
mapped_repos[upstream].get("sync", []),
)
return None

Expand Down
2 changes: 1 addition & 1 deletion sync2jira/upstream_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def handle_github_message(body, config, suffix):
if upstream not in mapped_repos:
log.debug("%r not in Github map: %r", upstream, mapped_repos.keys())
return None
elif "pullrequest" not in mapped_repos[upstream]["sync"]:
elif "pullrequest" not in mapped_repos[upstream].get("sync", []):
log.debug("%r not in Github PR map: %r", upstream, mapped_repos.keys())
return None

Expand Down

0 comments on commit 8b8702b

Please sign in to comment.