dependabot-azure-devops icon indicating copy to clipboard operation
dependabot-azure-devops copied to clipboard

ADO Server different commit message with enabled auto complete

Open BobSilent opened this issue 2 years ago • 2 comments

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 image

Also the PR have a Required Work Item check, although the branch policy says the check is an optional check.

BobSilent avatar Aug 01 '22 08:08 BobSilent

@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.

mburumaxwell avatar Sep 19 '22 08:09 mburumaxwell

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 image

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 image

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.

BobSilent avatar Oct 18 '22 10:10 BobSilent

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

mburumaxwell avatar Oct 05 '23 04:10 mburumaxwell