changes 2

This commit is contained in:
stupidcomputer 2024-10-09 08:23:21 -05:00
parent 40cc10dfc0
commit 56664cc542
1 changed files with 4 additions and 4 deletions

View File

@ -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,