When ReplaceIssueLabels calls issue.LoadLabels it was a noop because issue.isLabelsLoaded is still set to true because of the call to issue.LoadLabels that was done at the beginning of the function. (cherry picked from commit c801838690)
c801838690
CreateDeclarativeRepo