From 3e68945bfce58b399d1ca0cff20c4927cf786ff7 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Wed, 9 Oct 2024 07:11:25 -0500 Subject: [PATCH] some more minor little changes --- bridge/__init__.py | 7 ++++--- bridge/webgit.py | 2 +- 2 files changed, 5 insertions(+), 4 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, diff --git a/bridge/webgit.py b/bridge/webgit.py index 1ec2c21..7ddfe9e 100644 --- a/bridge/webgit.py +++ b/bridge/webgit.py @@ -183,11 +183,11 @@ class Gitea(WebgitClient): repo_name, ), json={ + "active": True, "config": { "url": http_endpoint, "content_type": "json", }, - "active": True, "events": events, "type": "gitea", },