Fix old bug to remove refs/heads from default ref

This commit is contained in:
Mikhail f. Shiryaev 2022-11-05 14:45:18 +01:00
parent fbf891d375
commit 1642b2f4bd
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -87,7 +87,7 @@ class PRInfo:
self.body = ""
self.diff_urls = []
self.release_pr = 0
ref = github_event.get("ref", "refs/head/master")
ref = github_event.get("ref", "refs/heads/master")
if ref and ref.startswith("refs/heads/"):
ref = ref[11:]