Skip to content

Commit 65cea00

Browse files
authored
Update set-pull-expectations.yml
1 parent 8e99db3 commit 65cea00

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed
+11-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
name: Set Pull Expectations
22
on:
3-
pull_request:
3+
pull_request_target:
44
types: [opened]
5+
56
jobs:
67
comment-on-pull:
78
name: Comment On Pull
89
runs-on: ubuntu-latest
910
steps:
10-
- uses: actions/github@v1.0.0
11-
env:
12-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
- uses: actions/github-script@v3
1312
with:
14-
args: |
15-
comment "Thanks for suggesting these code changes. To set expectations:
16-
17-
- Pull requests are reviewed in [batches](https://github.com/elm/expectations/blob/master/batching.md), so it can take some time to get a response.
18-
- Smaller pull requests are easier to review. To fix nine typos, nine specific issues will always go faster than one big one. Learn why [here](https://github.com/elm/expectations/blob/master/small-pull-requests.md).
19-
- Reviewers may not know as much as you about certain situations, so add links to supporting evidence for important claims, especially regarding standards for CSS, HTTP, URI, etc.
20-
21-
Finally, please be patient with the core team. They are trying their best with limited resources."
13+
github-token: ${{secrets.GITHUB_TOKEN}}
14+
script: |
15+
github.issues.createComment({
16+
issue_number: context.issue.number,
17+
owner: context.repo.owner,
18+
repo: context.repo.repo,
19+
body: "Thanks for suggesting these code changes. To set expectations:\n\n- Pull requests are reviewed in [batches](https://github.com/elm/expectations/blob/master/batching.md), so it can take some time to get a response.\n- Smaller pull requests are easier to review. To fix nine typos, nine specific issues will always go faster than one big one. Learn why [here](https://github.com/elm/expectations/blob/master/small-pull-requests.md).\n- Reviewers may not know as much as you about certain situations, so add links to supporting evidence for important claims, especially regarding standards for CSS, HTTP, URI, etc.\n\nFinally, please be patient with the core team. They are trying their best with limited resources."
20+
});

0 commit comments

Comments
 (0)