dependabot-azure-devops
dependabot-azure-devops copied to clipboard
ADO Server different commit message with enabled auto complete
I am using the extension with an ADO Server, when I enable the Auto Complete in the dependabot run, the commit message does not follow the default naming
Example:
Top Line is default message, when manually setting "Auto Complete" or "Complete"
Bottom Line is message when dependabot sets "Auto Complete" directly
Also the PR have a Required Work Item check, although the branch policy says the check is an optional check.
@BobSilent I suspect they are not using the same merge strategy. You can control the merge strategy using the mergeStrategy
variable in the task. Possible values are document here.
Kindly report back if this solution works so that I can close.
Changing the merge strategy does not change the PR Title.
So currently I have disabled the "Auto Complete" feature in the pipeline task, this will show me the default message when completing the PR
The otherworkaround I have, if "Auto Complete" is enabled, I have to once stop auto complete, then set back auto complete, this will also give the default Title.
If not the PR Title always looks like that
I thought you know why this is like that, so why there PR Title are different with or without "Auto Complete" Anyway it is no big deal, I know the workarounds now.
Closing this because, the merge commit message is set as expected. See below. If that's not the case, let me know.
https://github.com/tinglesoftware/dependabot-azure-devops/blob/c5416858aa4b80eb3f203481508c61f8d62497ee/updater/bin/update_script.rb#L887-L915