Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSTS build associated commits

Does anyone know how VSTS creates its list of associated commits for a build?

I'm specifically looking for those created when I create a new branch. Currently it seems to just create a list of the past few commits to the branched from branch.

Ideally what I'd like is something akin to git log master..<commit hash>.

We were hoping to use this as release documentation by creating a new branch for the release which would contain the full commit history for all work across all branches merged into it but that doesn't seem to be the case.

like image 769
Stu Avatar asked Jan 26 '26 10:01

Stu


1 Answers

It includes current commit and previous failed build(s) commits if have. For example:

  1. Build failed (Comment commit 01), associated changes: commit 01
  2. Build failed (Comment commit 02), associated changes: commit 02 commit 01
  3. Build succeed (Comment commit 03), associated changes: commit 03 commit 02 commit 01
  4. Build succeed (comment commit 04), associated changes: commit 04

So, it won’t include all commits.

To get all commits, you can go to Code=>Select file or folder=>Click history, then the history will be listed.

You also could get commits through REST API (as Chirs Melinn said).

like image 99
starian chen-MSFT Avatar answered Jan 28 '26 02:01

starian chen-MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!