File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 1- name : Pull Request Reminder
2-
3- on :
4- pull_request :
5- types : [opened, synchronize]
6-
71jobs :
82 reminder :
93 runs-on : ubuntu-latest
2014 with :
2115 github-token : ${{ secrets.MY_TOKEN }}
2216 script : |
17+ const { owner, repo, number } = context.issue;
18+ const pr = await github.rest.pulls.get({
19+ owner,
20+ repo,
21+ pull_number: number,
22+ });
23+
24+ const author = pr.data.user.login;
25+
2326 await github.rest.issues.createComment({
24- owner: context.repo.owner ,
25- repo: context.repo.repo ,
26- issue_number: context.payload.pull_request. number,
27- body: `@${context.repo.owner }, please make sure that you update the files in Heretto and post the Heretto share link in this PR.`
27+ owner,
28+ repo,
29+ issue_number: number,
30+ body: `@${author }, please make sure that you update the files in Heretto and post the Heretto share link in this PR.`
2831 })
You can’t perform that action at this time.
0 commit comments