Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
beliaev-maksim committed Dec 19, 2024
1 parent 29c694d commit 2722dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions github_jira_sync_app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ async def bot(request: Request, payload: dict = Body(...)):
git_integration.get_repo_installation(owner, repo_name).id
).token
)
repo = Repository(git_connection._Github__requester, {}, payload["repository"], completed=True)
repo = Repository(git_connection.requester, {}, payload["repository"], completed=True)
repo_name = f"{owner}/{repo_name}"
try:
contents = repo.get_contents(".github/.jira_sync_config.yaml")
Expand Down Expand Up @@ -238,7 +238,7 @@ async def bot(request: Request, payload: dict = Body(...)):
logger.warning(f"{repo_name}: {msg}")
return {"msg": msg}

gh_issue = Issue(repo._requester, {}, payload["issue"], completed=True)
gh_issue = Issue(git_connection.requester, {}, payload["issue"], completed=True)

labels = settings["labels"] or []
allowed_labels = [str(label).lower() for label in labels]
Expand Down

0 comments on commit 2722dc2

Please # to comment.