string parsing bug
This commit is contained in:
@@ -17,7 +17,7 @@ def gitea():
|
|||||||
DeployerRequest(
|
DeployerRequest(
|
||||||
user = data["repository"]["owner"]["username"],
|
user = data["repository"]["owner"]["username"],
|
||||||
repo = data["repository"]["name"],
|
repo = data["repository"]["name"],
|
||||||
branch = data["ref"].strip("refs/heads/"),
|
branch = data["ref"].removeprefix("refs/heads/"),
|
||||||
commit_hash = data["after"]
|
commit_hash = data["after"]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user