Skip to content

Commit c042dc2

Browse files
authored
Merge pull request #1701 from Kobzol/disable-pr-comments
Disable sending dry-run PR comments temporarily
2 parents 586aef4 + 0e7ed3a commit c042dc2

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

.github/workflows/dry-run.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,22 @@ jobs:
163163
exit 1
164164
fi
165165
166-
- name: Send comment
167-
env:
168-
GH_TOKEN: ${{ github.token }}
169-
run: |
170-
PR=${PR_NUMBER}
171-
echo "Pull request ${PR}"
172-
173-
# --edit-last doesn't work if there is no previous comment, so we have to figure out
174-
# if we should create a comment or not
175-
if gh issue view ${PR} --repo rust-lang/team --json comments \
176-
--jq '.comments.[].author.login' | grep --quiet --fixed-strings "github-actions"; then
177-
echo "Editing comment"
178-
gh pr comment ${PR} --repo rust-lang/team --body-file comment.txt --edit-last
179-
else
180-
echo "Creating new comment"
181-
gh pr comment ${PR} --repo rust-lang/team --body-file comment.txt
182-
fi
166+
# Temporarily disabled to avoid spam because of permission issues with the read-only token
167+
# FIXME: re-enable once we remove app installation sync from sync-team
168+
# - name: Send comment
169+
# env:
170+
# GH_TOKEN: ${{ github.token }}
171+
# run: |
172+
# PR=${PR_NUMBER}
173+
# echo "Pull request ${PR}"
174+
#
175+
# # --edit-last doesn't work if there is no previous comment, so we have to figure out
176+
# # if we should create a comment or not
177+
# if gh issue view ${PR} --repo rust-lang/team --json comments \
178+
# --jq '.comments.[].author.login' | grep --quiet --fixed-strings "github-actions"; then
179+
# echo "Editing comment"
180+
# gh pr comment ${PR} --repo rust-lang/team --body-file comment.txt --edit-last
181+
# else
182+
# echo "Creating new comment"
183+
# gh pr comment ${PR} --repo rust-lang/team --body-file comment.txt
184+
# fi

0 commit comments

Comments
 (0)