File tree Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -163,22 +163,20 @@ jobs:
163
163
exit 1
164
164
fi
165
165
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
You can’t perform that action at this time.
0 commit comments