JJ / github-pr-contains-action

Action that checks whether the body or diff in a PR contains a certain word.
MIT License
35 stars 34 forks source link

Error: Cannot read property 'indexOf' of null #63

Closed vreddy96 closed 2 years ago

vreddy96 commented 2 years ago

name: "Check PR for word - v2" on: [pull_request]

jobs: check_pr: runs-on: ubuntu-latest steps:

I am using the above shown yaml file for the action. But I am still getting indexOf error. Any leads? @JJ

JJ commented 2 years ago

Thanks for your report. Let me see if I can try and see what happens. A link to the action, if it's public, would definitely help, or the body of the PR itself.

vreddy96 commented 2 years ago
Screen Shot 2021-10-20 at 11 31 52 AM
vreddy96 commented 2 years ago

image I guess, these 2 screenshots would help you. @JJ

JJ commented 2 years ago

Thanks a lot. Let me see what I can do.

lsmonzon commented 2 years ago

News for this bug

JJ commented 2 years ago

Sorry for not having attended this before. This usually happens when the body of the PR is empty. I can try and fix that bug, or just make it more informative.