Skip to content

Commit 1134cc6

Browse files
committed
Re-enable dry run comments
1 parent 93cb340 commit 1134cc6

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

.github/workflows/dry-run.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -163,22 +163,20 @@ jobs:
163163
exit 1
164164
fi
165165
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
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

0 commit comments

Comments
 (0)