Skip to content

fetch body of matching comment #23

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

Closed
p-costa opened this issue Oct 1, 2020 · 4 comments · Fixed by #27
Closed

fetch body of matching comment #23

p-costa opened this issue Oct 1, 2020 · 4 comments · Fixed by #27
Labels
enhancement New feature or request

Comments

@p-costa
Copy link

p-costa commented Oct 1, 2020

Hello @peter-evans , thanks for this very nice tool!

Is there a way of fetching the body of the matching comment? I.e., getting the body of a comment that matched the search keyword?

Thanks in advance!
Pedro

@peter-evans
Copy link
Owner

Hi @p-costa

I will add an additional output to return the comment body. It will save you needing to make another API call to fetch it.

@peter-evans peter-evans added the enhancement New feature or request label Oct 2, 2020
@p-costa
Copy link
Author

p-costa commented Oct 2, 2020

Thank you! I need this because I need to fetch a keyword on a comment by the bot to trigger an action (after a pull request is merged).

I have an incomplete draft using some of your tools, and this would give me the last thing I'd need: the possibility to modify my comment body using your nice create-or-update-comment, which is important for my application to make sure the action is only triggered once.

@peter-evans
Copy link
Owner

Output comment-body is now available in the latest release.

@p-costa
Copy link
Author

p-costa commented Oct 5, 2020

tested and works like a charm :)

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

Successfully merging a pull request may close this issue.

2 participants