git.iko.soy/lynxjs-elm/compiler
on master help sign in
try to fix markdown format for robo-PR-comments
1d531b6Evan Czaplicki
.github/workflows/set-pull-expectations.yml+12−13
@@ -1,20 +1,19 @@
1−name: Set Pull Expectations
1+on:
2−on: pull_request_target
2+ pull_request_target:
3+ types: [opened]
3
4
4jobs:
5jobs:
5 comment-on-pull:
6 comment-on-pull:
6 name: Comment On Pull
7 name: Comment On Pull
7 runs-on: ubuntu-latest
8 runs-on: ubuntu-latest
8 steps:
9 steps:
9− - name: Comment PR
10+ - uses: actions/github-script@v3
10− uses: thollander/actions-comment-pull-request@master
11 with:
11 with:
12− message:
12+ github-token: ${{secrets.GITHUB_TOKEN}}
13− "Thanks for suggesting these code changes. To set expectations:
13+ script: |
14−
14+ github.issues.createComment({
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.
15+ issue_number: context.issue.number,
16+ owner: context.repo.owner,
17+ repo: context.repo.repo,
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).
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."
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.
19+ })
18−
19− Finally, please be patient with the core team. They are trying their best with limited resources."
20− GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}