Is It Possible to Template a Pull Request and Commit Body? #5428
-
I want to get a list of commit messages between tags in git and add them to the pull request body. Here is what I have. It works but doesn't use the body I specified when creating the pull request. Leading me to believe that it might not be possible.
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Updatecli stores the state of your pipeline in pull request description using html tags. So it's important to only use |
Beta Was this translation helpful? Give feedback.
-
Hey thanks for the response. I dont see description as a valid field in the docs https://www.updatecli.io/docs/plugins/actions/stash/. |
Beta Was this translation helpful? Give feedback.
-
Ho sorry I missed that you are using stash Something like this should work:
|
Beta Was this translation helpful? Give feedback.
-
Please note that currently, Updatecli won't try to update an existing pull request. |
Beta Was this translation helpful? Give feedback.
-
Ok I am so close now. The only issue now is it does not like new lines in the source This is the error I'm getting.
If I append
|
Beta Was this translation helpful? Give feedback.
I got it working I needed add a lot of spaces to the changelog command output
git log --pretty=format:"%n%x20%x20%x20%x20%x20%x20%x20%x20%x20%x20%x20%x20%x20%x20%x20%x20- (%h) %s" "v{{ source "current-version" }}..v{{ source "latest-version" }}"