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 b73bc09 commit 819b3bbCopy full SHA for 819b3bb
.github/workflows/deploy-pre-chatbot.yml
@@ -35,10 +35,11 @@ jobs:
35
uses: actions/github-script@v6
36
with:
37
script: |
38
- const pr = context.payload.issue.pull_request;
39
- if (!pr) {
+ const issue = context.payload.issue;
+ if (!issue.pull_request) {
40
throw new Error("This command can only be used on a pull request.");
41
}
42
+ const pr = issue.pull_request;
43
console.log("PR branch:", pr.head.ref);
44
return { branch: pr.head.ref };
45
result-encoding: json
0 commit comments