git.iko.soy/lynxjs-elm/compiler
on master help sign in
try to fix markdown format for robo-PR-comments

There is now a DISCLAIMER at https://github.com/thollander/actions-comment-pull-request that says this can be done as a [GitHub script](https://github.com/actions/github-script).

commit1d531b60fc7a52358aba8e149ea5f29264453de1 authorEvan Czaplicki <evancz@users.noreply.github.com> dateMon 12 Apr 2021, 20:07 (6 years ago) parent3f21ac6
1 file changed+12−13
.github/workflows/set-pull-expectations.yml+12−13
.github/workflows/set-pull-expectations.yml+12−13
@@ -1,20 +1,19 @@
1−name: Set Pull Expectations
2−on: pull_request_target
1+on:
2+ pull_request_target:
3+ types: [opened]
34
45jobs:
56 comment-on-pull:
67 name: Comment On Pull
78 runs-on: ubuntu-latest
89 steps:
9− - name: Comment PR
10− uses: thollander/actions-comment-pull-request@master
10+ - uses: actions/github-script@v3
1111 with:
12− message:
13− "Thanks for suggesting these code changes. To set expectations:
14−
15− - 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.
16− - 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).
17− - 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.
18−
19− Finally, please be patient with the core team. They are trying their best with limited resources."
20− GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+ github-token: ${{secrets.GITHUB_TOKEN}}
13+ script: |
14+ github.issues.createComment({
15+ issue_number: context.issue.number,
16+ owner: context.repo.owner,
17+ repo: context.repo.repo,
18+ 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."
19+ })