jpmcb / prow-github-actions

Slash commands, jobs, and chat-ops for Github actions inspired by Kubernetes Prow ⚓️
MIT License
92 stars 10 forks source link

[BUG] Bot should ignore / commands that are embedded in code #66

Open asmacdo opened 2 years ago

asmacdo commented 2 years ago

Describe the bug When putting a / command in a code segment, the bot should not follow the command.

/approve

To Reproduce I just did! The bot should reply with an erroneous comment, see below :)

asmacdo commented 2 years ago

/lgtm

github-actions[bot] commented 2 years ago

Cannot apply the lgtm label because Error: asmacdo is not a org member or collaborator

jpmcb commented 2 years ago

Hmmmm interesting! Thanks for this feedback - I think this is something we could do easily!

/assign

Let's give this a quick try:

/close
jpmcb commented 2 years ago

Interesting! Yeah, I think ignoring slash commands in code blocks makes sense. I'm happy to take this on 👏🏼