Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always fails with error Not Found #172

Closed
troykelly opened this issue Apr 28, 2023 · 2 comments
Closed

Always fails with error Not Found #172

troykelly opened this issue Apr 28, 2023 · 2 comments

Comments

@troykelly
Copy link

troykelly commented Apr 28, 2023

Config

      - name: 馃攷 Find Comment
        uses: peter-evans/find-comment@v2
        id: fc
        with:
          issue-number: ${{ github.event.pull_request.number }}
          body-includes: OctoDNS Plan

Error

Run peter-evans/find-comment@v2
  with:
    body-includes: OctoDNS Plan
    token: ***
    repository: xxx/yyy
    direction: first
    nth: 0
Error: Not Found

Troubleshooting

I've tried setting a token using GITHUB_TOKEN and a PAT, and not - nothing seems to work.

@peter-evans
Copy link
Owner

Hi @troykelly

It's probably because github.event.pull_request.number is empty. How are you triggering the workflow? github.event.pull_request.number will only contain a value if the workflow is triggered on: pull_request.

@troykelly
Copy link
Author

Apologies @peter-evans I was just about to come back and close this.
It's being triggered on the completion of another action - and missing the pull_request.number as you suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants