Skip to content

Commit b4757cd

Browse files
authored
Merge pull request #18 from halotukozak-com/fix-mima-sticky-comment-body-file
mima(-mill).yml: fix sticky comment posting the literal "@file" as body
2 parents 1beaa2b + 8ddaac9 commit b4757cd

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

shared/mima-mill.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ jobs:
141141
} > "$RUNNER_TEMP/mima-comment.md"
142142
143143
if [ -n "$comment_id" ]; then
144-
gh api --method PATCH "repos/$repo/issues/comments/$comment_id" -f body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
144+
gh api --method PATCH "repos/$repo/issues/comments/$comment_id" -F body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
145145
else
146-
gh api --method POST "repos/$repo/issues/$pr/comments" -f body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
146+
gh api --method POST "repos/$repo/issues/$pr/comments" -F body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
147147
fi
148148
elif [ -n "$comment_id" ]; then
149149
{
@@ -152,5 +152,5 @@ jobs:
152152
echo
153153
echo "A later push resolved the binary incompatibility flagged above."
154154
} > "$RUNNER_TEMP/mima-comment.md"
155-
gh api --method PATCH "repos/$repo/issues/comments/$comment_id" -f body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
155+
gh api --method PATCH "repos/$repo/issues/comments/$comment_id" -F body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
156156
fi

shared/mima.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ jobs:
140140
} > "$RUNNER_TEMP/mima-comment.md"
141141
142142
if [ -n "$comment_id" ]; then
143-
gh api --method PATCH "repos/$repo/issues/comments/$comment_id" -f body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
143+
gh api --method PATCH "repos/$repo/issues/comments/$comment_id" -F body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
144144
else
145-
gh api --method POST "repos/$repo/issues/$pr/comments" -f body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
145+
gh api --method POST "repos/$repo/issues/$pr/comments" -F body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
146146
fi
147147
elif [ -n "$comment_id" ]; then
148148
{
@@ -151,5 +151,5 @@ jobs:
151151
echo
152152
echo "A later push resolved the binary incompatibility flagged above."
153153
} > "$RUNNER_TEMP/mima-comment.md"
154-
gh api --method PATCH "repos/$repo/issues/comments/$comment_id" -f body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
154+
gh api --method PATCH "repos/$repo/issues/comments/$comment_id" -F body=@"$RUNNER_TEMP/mima-comment.md" >/dev/null
155155
fi

0 commit comments

Comments
 (0)