In Azure DevOps Multi Stage YAML Pipeline, under resources section I had defined 2 repo resources Demo2 and Demo3. I want to access the changes happening between the builds for the repo Demo2 and Demo3. In pipeline summary page, there is an option view changes, which gives the commits from the repo and I am trying to get that details via RestAPI.
I tried to find details via Azure DevOps RestAPI page and az devops CLI but can't find anything helpful, so reaching out here for help.
resources:
repositories:
- repository: Demo2
type: git
name: 'Test/Repo2'
- repository: Demo3
type: git
name: 'Test/Repo3'
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- checkout: Demo2
- checkout: Demo3
- script: echo Hello, world!
displayName: 'Run a one-line script'