File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,28 @@ jobs:
25
25
pull-requests : write
26
26
contents : write
27
27
actions : read
28
+ issues : read
28
29
steps :
30
+ - name : Get Pull Request Details
31
+ id : pr_details
32
+ uses : actions/github-script@v7
33
+ with :
34
+ script : |
35
+ const response = await github.rest.pulls.get({
36
+ owner: context.repo.owner,
37
+ repo: context.repo.repo,
38
+ pull_number: context.issue.number,
39
+ });
40
+ return response.data;
41
+
29
42
- name : Debug
30
43
run : |
31
44
echo $W_RUN
45
+ echo '===='
46
+ echo $PR_DETAILS
32
47
env :
33
- W_RUN : ${{ toJSON(github.event.pull_request) }}
48
+ W_RUN : ${{ toJSON(github.event) }}
49
+ PR_DETAILS : ${{toJSON(steps.pr_details.outputs)}}
34
50
35
51
- name : Checkout Forked Repository
36
52
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments