We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5c80f commit e2a437cCopy full SHA for e2a437c
pull-request.py
@@ -394,7 +394,7 @@ def main():
394
if not from_branch:
395
print("PULL_REQUEST_FROM_BRANCH is not set, checking branch in payload.")
396
with open(check_events_json(), "r") as fd:
397
- from_branch = json.loads(fd.read()).get("ref")
+ from_branch = json.loads(fd.read()).get("ref", "")
398
from_branch = from_branch.replace("refs/heads/", "").strip("/")
399
else:
400
print("PULL_REQUEST_FROM_BRANCH is set.")
0 commit comments