Support push event by associating with open pull requests
Thank you for the wonderful project! In this Pull Request, I have made changes to allow this action to be triggered by push events as well.
Previously, the action would retrieve pull request information from the context payload and, if present, comment with the results of the metrics. However, this was only possible with pull request events. With this change, if pull request information cannot be obtained from the context, the system now retrieves open pull requests associated with the sha and comments there. This modification allows the action to operate with push events as well.
Hi @tockn,
Thanks for your contribution and sorry for late reply. Could you please rebase your PR with latest changes?
@serkan-ozal Hi! I've resolved the conflicts!
Hey @tockn,
Apologies for late reply and slow progress. Can you please rebase again and run npm run all on your local before committing?