Open itay opened 7 years ago
If you use this plugin to get from/to hashes. Then you may use Git Changelog Plugin to get those messages. With another REST call to
/{project}/{repository}/fromcommit/{fromCommit}/tocommit/{toCommit}
.
Does that help?
I guess you have limited options here for some reason. You cannot do the git commands yourself right? And also perhaps not another rest call.
I'm looking to give people a button that will squash all their commit messages for them, but id like them to be able to edit that commit message with the new form capability.
However, to do that I need to have the combined commit messages to begin with, which is all on the Bitbucket side, and thus no ability to run any REST calls or Git commands.
Does that make sense?
Yes =)
Perhaps its possible to invoke the changelog plugin and get the response into the ${INJECTION_URL_VALUE}
variable. And then use that variable in the button form.
It would be nice to have a variable that had all the commit messages from the commits in the PR. In an ideal world it would look similar to what "git merge --squash" creates, e.g.
but I'll take anything :)