From 435028b5ad1c9021e96397529c5f8044c1d5a55a Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Wed, 9 Oct 2024 08:30:18 -0500 Subject: [PATCH] fix? --- bridge/__init__.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/bridge/__init__.py b/bridge/__init__.py index 0fdb8b8..3045958 100644 --- a/bridge/__init__.py +++ b/bridge/__init__.py @@ -261,12 +261,27 @@ def github_handle_issue_action(): issue_footer ]) - gitea.create_issue( + new_issue = gitea.create_issue( repo_owner, repo_name, event_title, issue_body ) + + returned_data = new_issue.json() + issue_comment_body = create_signature( + "mirrored", + returned_data["html_url"], + app.config["GITEA_INSTANCE_DOMAIN"], + returned_data["url"], + ) + + github.leave_comment_on_issue_by_number( + repo_owner, + repo_name, + issue_number, + issue_comment_body, + ) elif event_type == "created" and not issue_sentinel_present: comment_user = data["comment"]["user"]["login"]