Commit c582891 1 parent 080a6e5 commit c582891 Copy full SHA for c582891
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ jobs:
31
31
github-token : ${{ secrets.GITHUB_TOKEN }}
32
32
script : |
33
33
const comment = core.getInput('comment');
34
- const { data: pullRequest } = await github.rest.pulls.list({
34
+ const response = await github.rest.pulls.list({
35
35
owner: github.context.repo.owner,
36
36
repo: github.context.repo.repo,
37
- head: `${github.context.repo.owner}:${github.context .ref}`,
37
+ head: `${github.context.repo.owner}:${github.event.pull_request.head .ref}`,
38
38
});
39
- const prNumber = pullRequest [0].number;
40
- github.rest.issues.createComment({
39
+ const prNumber = response.data [0].number;
40
+ await github.rest.issues.createComment({
41
41
issue_number: prNumber,
42
42
owner: github.context.repo.owner,
43
43
repo: github.context.repo.repo,
You can’t perform that action at this time.
0 commit comments