File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -166,14 +166,6 @@ jobs:
166
166
run : |
167
167
PR=${PR_NUMBER}
168
168
echo "Pull request ${PR}"
169
-
170
- # --edit-last doesn't work if there is no previous comment, so we have to figure out
171
- # if we should create a comment or not
172
- if gh issue view ${PR} --repo rust-lang/team --json comments \
173
- --jq '.comments.[].author.login' | grep --quiet --fixed-strings "github-actions"; then
174
- echo "Editing comment"
175
- gh pr comment ${PR} --repo rust-lang/team --body-file comment.txt --edit-last
176
- else
177
- echo "Creating new comment"
178
- gh pr comment ${PR} --repo rust-lang/team --body-file comment.txt
179
- fi
169
+ gh pr comment ${PR} --repo rust-lang/team --body-file comment.txt \
170
+ --edit-last \
171
+ --create-if-none
You can’t perform that action at this time.
0 commit comments