Closed yevhenii-ponomarenko closed 1 year ago
I don't understand the usage well.
Is the below scenario what this PR tries to support?
pr_body
valueIf the above is what happens with this change, then this action overwrites the description which the PR author has written manually. I don't understand why such thing is desired.
My specific use case is that I want to create a Jira ticket for some PRs and add the number of that ticket to the PR title. There is a way to get current PR title and description from GitHub variables, so my "Test PR" becomes "[PJ-1235] Test PR", for example.
I really needed this action to work with on: pull_request: [opened]
event, so this patch made just that. I tested that on my side and it works, though on: push
events still need to be tested as well.
While trying to use this action, I found out that it doesn't support
pull_request
events fired by GitHub. This PR attempts to add support for those while keeping compatibility withpush
events.Consequently, this PR solves #4.