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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot comments #52

Closed
dmitry-engineer opened this issue Oct 1, 2021 · 6 comments
Closed

Bot comments #52

dmitry-engineer opened this issue Oct 1, 2021 · 6 comments

Comments

@dmitry-engineer
Copy link

I try to find comments by github-action bot but can't Receive empty outputs

@dmitry-engineer
Copy link
Author

- name: Find Comment
  uses: peter-evans/find-comment@v1
  continue-on-error: true
  id: fc
  with:
    issue-number: ${{ github.event.pull_request.number }}
    comment-author: 'github-actions[bot]'
    direction: last
- run: |
    echo "${{ steps.fc.outputs.comment-id }}"

@dmitry-engineer
Copy link
Author

The problem is that i try to find commit comment but not PR comment

@dmitry-engineer
Copy link
Author

dmitry-engineer commented Oct 1, 2021

I use your GitHub action commit-comment. Is it possible to find comment to a commit?

@peter-evans
Copy link
Owner

Hi @dmitry-engineer

Is it possible to find comment to a commit?

Unfortunately it's not possible with this action. Commit comments are treated differently to issue and pull request commits in GitHub's API. This action only supports issue and pull request comments.

I tried to search for other actions on the GitHub marketplace that might help you.
The only one I found was this one: https://github.com/dlouisenz/last-commit-message-text-finder-action

@Andre601
Copy link

Hey.

Sorry to dig this old issue up, but I rather ask here than making a duplicate.
I want to use this action to find a PR comment from the github-actions account.

My question right now is, whether the name would be github-actions or github-actions[bot] as I'm not sure how names are looked up on GitHub and with this action.

@peter-evans
Copy link
Owner

@Andre601 The correct name of the bot account is github-actions[bot]

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

3 participants