create-pull-request icon indicating copy to clipboard operation
create-pull-request copied to clipboard

Dynamically update PR title

Open s-canchi opened this issue 6 years ago • 1 comments

Subject of the issue

We have been using the create-pull-request GH action to update a main repo with changes from its submodule and it works great. We currently have the title hardcoded into the yml file, but it is making tracking of feature updates difficult. Is there a way to dynamically update the PR title in our main repo with the PR title in the submodule repo when the action executes ?

s-canchi avatar Nov 10 '20 22:11 s-canchi

Hi @s-canchi

Yes, you can update the title dynamically when the action runs. See the following section of the documentation for details: https://github.com/peter-evans/create-pull-request/blob/master/docs/examples.md#dynamic-configuration-using-variables

peter-evans avatar Nov 11 '20 01:11 peter-evans