From 68a160029d489911cdb8c794b8868eca03b352ce Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Wed, 9 Oct 2024 07:11:25 -0500 Subject: [PATCH] minor changes --- bridge/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bridge/__init__.py b/bridge/__init__.py index cdc6281..b17a37b 100644 --- a/bridge/__init__.py +++ b/bridge/__init__.py @@ -79,10 +79,11 @@ def gitea_handle_repo_action(): ["issues", "issue_comment"] ) - return '' elif repo_action == "deleted": github.delete_repo(repo_owner, repo_name) + return '' + @app.route("/bridge/endpoints/gitea/issue", methods=["POST"]) def gitea_handle_issue_action(): @@ -219,11 +220,11 @@ def gitea_handle_issue_action(): repo_owner, repo_name, issue_number, - body, + comment_body, ) elif event_type == "closed": - github_close_issue_result = github.close_issue_by_number( + github.close_issue_by_number( repo_owner, repo_name, issue_number,