From 56664cc5428795d4c119b3c0ce937a713ff72ed7 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Wed, 9 Oct 2024 08:23:21 -0500 Subject: [PATCH] changes 2 --- bridge/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bridge/__init__.py b/bridge/__init__.py index 0bb2709..0fdb8b8 100644 --- a/bridge/__init__.py +++ b/bridge/__init__.py @@ -141,7 +141,7 @@ def gitea_handle_issue_action(): issue_sentinel_present = issue_sentinel in event_body - if event_type == "opened" and issue_sentinel_present: + if event_type == "opened" and not issue_sentinel_present: issue_footer = create_signature( issue_user, issue_user_url, @@ -176,7 +176,7 @@ def gitea_handle_issue_action(): issue_comment_body, ) - elif event_type == "created" and issue_sentinel_present: + elif event_type == "created" and not issue_sentinel_present: comment_user = data["comment"]["user"]["login"] comment_user_url = "https://{}/{}".format( app.config["GITEA_INSTANCE_DOMAIN"], @@ -249,7 +249,7 @@ def github_handle_issue_action(): issue_sentinel_present = issue_sentinel in event_body - if event_type == "opened" and issue_sentinel_present: + if event_type == "opened" and not issue_sentinel_present: issue_footer = create_signature( issue_user, issue_user_url, @@ -268,7 +268,7 @@ def github_handle_issue_action(): issue_body ) - elif event_type == "created" and issue_sentinel_present: + elif event_type == "created" and not issue_sentinel_present: comment_user = data["comment"]["user"]["login"] comment_user_url = "https://github.com/{}".format( comment_user,