pr-update-action icon indicating copy to clipboard operation
pr-update-action copied to clipboard

Is it possible to check if PR body has already been updated?

Open ssfxate opened this issue 3 years ago • 1 comments

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?

ssfxate avatar Sep 08 '21 15:09 ssfxate

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

airtonix avatar Aug 31 '22 09:08 airtonix