Skip to content

Commit fec163e

Browse files
committed
rename single reviews
1 parent 6019892 commit fec163e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/style.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ jobs:
2020

2121
- name: Run style check
2222
id: style-check
23-
run: echo "reviews=$(python3 scripts/build/style.py --base-sha ${{ github.event.pull_request.base.sha }} | jq -s -c .)" >> $GITHUB_OUTPUT
23+
run: echo "comments=$(python3 scripts/build/style.py --base-sha ${{ github.event.pull_request.base.sha }} | jq -s -c .)" >> $GITHUB_OUTPUT
2424

2525
- name: Post review
2626
uses: actions/github-script@v8
2727
id: post-comments
2828
env:
29-
COMMENTS: ${{ steps.style-check.outputs.reviews }}
29+
COMMENTS: ${{ steps.style-check.outputs.comments }}
3030
with:
3131
github-token: ${{ secrets.GITHUB_TOKEN }}
3232
script: |
33-
const reviews = JSON.parse(process.env.COMMENTS || "[]");
33+
const review_comments = JSON.parse(process.env.COMMENTS || "[]");
3434
35-
const comments = reviews.map(r => ({
35+
const comments = review_comments.map(r => ({
3636
path: r.path,
3737
line: r.line,
3838
side: "RIGHT",

0 commit comments

Comments
 (0)