Skip to content

Commit b583b0c

Browse files
committed
idk
1 parent de1244a commit b583b0c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/commentator.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
types: [created]
1414

1515
concurrency:
16-
group: ${{ github.workflow }}-${{ github.ref }}-suggester
16+
group: ${{ github.workflow }}-${{ github.ref }}-commentator
1717
cancel-in-progress: true
1818

1919
permissions:
@@ -25,13 +25,11 @@ jobs:
2525
ping:
2626
runs-on: ubuntu-latest
2727
if: |
28-
(
29-
(github.event_name == 'issue_comment' && github.event.issue.pull_request != null) ||
30-
(github.event_name == 'pull_request_review_comment')
31-
) &&
28+
((github.event_name == 'issue_comment' && github.event.issue.pull_request != null) || (github.event_name == 'pull_request_review_comment')) &&
3229
(github.event.comment.body == 'ping' || startsWith(github.event.comment.body, 'ping ')) &&
3330
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.author_association)
3431
steps:
32+
- uses: actions/checkout@v4
3533
- run: |
3634
API="https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.number }}/comments"
3735
COMMENT="pong"

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
fi
7878
API="https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.number }}/comments"
7979
COMMENT="To fix the **formatting** issues:\n\n1. Install necessary dependencies: \`npm ci\`\n2. Then, run this command:\n\`\`\`shell\nnpx remark -o --silent --silently-ignore ${FILES}\n\`\`\`"
80-
BY_MAINTAINER=${{ contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.author_association) && 'true' || 'false' }}
80+
BY_MAINTAINER=${{ contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) && 'true' || 'false' }}
8181
if [ "$BY_MAINTAINER" = "true" ]; then
8282
COMMENT="${COMMENT}\n\n**Alternatively**, request automatic changes by commenting /fmt in this PR."
8383
else

0 commit comments

Comments
 (0)