joshjohanning / joshjohanning.github.io

josh-ops.com | a devops blog
https://josh-ops.com
MIT License
8 stars 0 forks source link

Azure DevOps Commit Message Validator and PR Linker GitHub Action | josh-ops #34

Open utterances-bot opened 5 months ago

utterances-bot commented 5 months ago

Azure DevOps Commit Message Validator and PR Linker GitHub Action | josh-ops

Enforce that each commit in a pull request has AB# in the commit message and link all of the work items to the pull request

https://josh-ops.com/posts/azdo-commit-message-validator-and-pr-linker-github-action/

raswinraaj commented 5 months ago

HI Josh, thats a great article. Can you please let me know if there is any such plugin or option available for validating comments on git commits on Azure repos?

joshjohanning commented 4 months ago

@raswinraaj We could probably use much of the same logic in Azure DevOps, but instead of use the Azure DevOps get pull request commits API to get the commits that make up the PR.

Is your use case essentially the same as this, but instead using Azure Repos and Azure Pipelines? It looks like the Commit Comment Validator pipelines extension from the Marketplace would fit the bill.