From 048333b0ec19e8ca015ef4b602ace3778b5a7450 Mon Sep 17 00:00:00 2001 From: Daniel McCrystal Date: Fri, 10 Jan 2025 23:57:07 -0500 Subject: [PATCH] string parsing bug --- listen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listen.py b/listen.py index beecd40..1f036ba 100644 --- a/listen.py +++ b/listen.py @@ -17,7 +17,7 @@ def gitea(): DeployerRequest( user = data["repository"]["owner"]["username"], repo = data["repository"]["name"], - branch = data["ref"].strip("refs/heads/"), + branch = data["ref"].removeprefix("refs/heads/"), commit_hash = data["after"] ) )