I've recently discovered that work items linked to pull requests can be used when seeing which work items are associated with different deployments. That said, I want to make sure the related work items are accurate. I could link my work items manually, but in some cases there can be 50 different commits going out in a single squash merge commit. That is a lot of different commits to have to manually enter in.
I see VSTS (Azure Devops) tries to automatically add some related work items. The problem is that I do not know how these work items are being calculated right now. As you can see from the image below, you can have associated work items even if no code changes are detected. Can someone please shed some light on this? According to Fiddler, the API called for this in the VSTS api is:
// POST https://foobar.visualstudio.com/16e07dde-f652-4a64-93f1-3edb3d70d5e1/_apis/git/repositories/c9bd207c-bc6e-4e6c-aba9-8fd6aeb53946/commitsBatch
{"$top":101,"itemVersion":{"versionOptions":0,"versionType":0,"version":"master"},"compareVersion":{"versionOptions":0,"versionType":0,"version":"users/v-username/140357_TestBranchForFeatureDeployment_ButWithLinks"}}