pr-update-action
pr-update-action copied to clipboard
Is it possible to check if PR body has already been updated?
Hey, thank you for the great GH actions.
I want to avoid extra times of body update by this actions. How can I check if the PR body already has the body-template text or the PR body has updated status?
I'd check for a generated comment and then conditionally update the pr title if it doesn't exist:
- run https://github.com/marketplace/actions/find-comment looking for comment made by a non user (your bot user)
- if comment not found, modify pr title and/or body
- run https://github.com/peter-evans/create-or-update-comment authoring the comment as your bot user