Skip to content

Commit 80b37a9

Browse files
committed
[github-nfbot] Fix string comparison in PR author login
1 parent a904105 commit 80b37a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github-nfbot/GitHub-nfbot/GitHub_nfbot.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ public static async Task<IActionResult> Run(
139139
return new OkObjectResult("");
140140
}
141141

142-
// copilot
143-
if (payload.pull_request.user.login == "copilot")
142+
// Copilot (case-insensitive)
143+
if (payload.pull_request.user.login.ToString().Equals("copilot", StringComparison.OrdinalIgnoreCase))
144144
{
145145
return new OkObjectResult("");
146146
}

0 commit comments

Comments
 (0)