Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 9359463

Browse files
Trying to use the author's name and not the repo owner's.
1 parent eba7503 commit 9359463

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed
Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
name: Pull Request Reminder
2-
3-
on:
4-
pull_request:
5-
types: [opened, synchronize]
6-
71
jobs:
82
reminder:
93
runs-on: ubuntu-latest
@@ -20,9 +14,18 @@ jobs:
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
})

0 commit comments

Comments
 (0)