We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e794a2d commit 38a1158Copy full SHA for 38a1158
1 file changed
pkg/github/issues_test.go
@@ -4169,6 +4169,17 @@ func TestAddIssueComment(t *testing.T) {
4169
"body": "\u2068@\u2069\u2068d\u2069ependabot rebase",
4170
},
4171
4172
+ {
4173
+ name: "rejects comment body that is only invisible characters",
4174
+ requestArgs: map[string]any{
4175
+ "owner": "owner",
4176
+ "repo": "repo",
4177
+ "issue_number": float64(42),
4178
+ "body": "\u200B\u2068\u2069",
4179
+ },
4180
+ expectToolError: true,
4181
+ expectedToolErrMsg: "body cannot be empty after removing invisible characters",
4182
4183
{
4184
name: "successful reaction to issue",
4185
mockedClient: MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
0 commit comments