Reputation: 11605
How can I assure that pushes to a git repository hosted on Visual Studio Online (i.e. [company].visualstudio.com
) are linked to a valid work item (i.e. the commit message contains "#12345" where 12345 is a valid work item id)?
update hook? gated check in?
Upvotes: 3
Views: 1073
Reputation: 12546
Unfortunately, on the service, there are no ways of doing this at this point in time.
With the on-premise version of TFS you could use a server side hook to block the push, but since the service doesn't support server side hooks at this time that's not an option.
My suggestion would be to consider using cross-branch pull requests and as part of the review ensure that the check-in comment contains a #<workItem> reference in it.
Upvotes: 3