To trigger a pipeline from a different branch, you would need the following json:
{"resources": {"repositories": {"self": {"refName": "refs/heads/"}}}}
But the documentation is omitting 'self' object, and says:
{"resources": {"repositories": {"refName": "refs/heads/"}}}
Which does not work.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: 70b92c59-51a8-b8b2-4228-42351663c26d
Version Independent ID: 2fd3e172-dc1a-47da-d548-978f82121c00
To trigger a pipeline from a different branch, you would need the following json: {"resources": {"repositories": {"self": {"refName": "refs/heads/"}}}}
But the documentation is omitting 'self' object, and says: {"resources": {"repositories": {"refName": "refs/heads/"}}}
Which does not work.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.