Agency release approvals के लिए Claude Code से Azure DevOps Pipelines audit करें
PR, ManualValidation, production approval और rollback evidence को agency workflow में अलग करें।
Web agency में pull request, staging URL, client approval और Azure Pipelines run अलग-अलग tabs में रहते हैं। छोटी copy change production में चली जाती है क्योंकि हर कोई सोचता है कि किसी और ने check किया। यह article branch policies, ManualValidation और approvals को release table में बदलता है।
Agency release कहाँ फेल होती है
- PR approval, staging review, client approval और production approval अलग रखें।
- main या release branch को merge से पहले branch policies से बचाएँ।
- staging URL और rollback देखने के लिए ManualValidation use करें।
- production से पहले environment approvals gate रखें।
- Claude Code YAML और diff summarize करे; client, pricing, legal, time और rollback human देखें।
The source base is Microsoft Learn for pipeline deployment approvals, ManualValidation@1, release approvals, branch policies, and the tasks reference. For an internal release-flow pattern, see the agency cloud release article.
Claude Code क्या बनाए और human क्या approve करे
Web agency में pull request, staging URL, client approval और Azure Pipelines run अलग-अलग tabs में रहते हैं। छोटी copy change production में चली जाती है क्योंकि हर कोई सोचता है कि किसी और ने check किया। यह article branch policies, ManualValidation और approvals को release table में बदलता है। Claude Code should read pipeline YAML, PR template, diff summary, staging checklist, branch policy notes, and environment approval notes. It should output a release table that names branch, build, staging deploy, manual validation, production environment, approver, timeout, rollback note, and evidence link.
Humans keep client acceptance, ad claims, pricing, legal copy, publish timing, emergency exceptions, and rollback decision. This distinction keeps the agent from acting like the release owner. The agent prepares evidence; the agency decides.
तीन use case
Use case 1
Input: PR URL, diff, build result, reviewers, branch policy, target page। Output: PR, production और client की तीन-column table। Human check: pricing, legal copy, ad text, client OK, publish time, rollback।
Use case 2
Input: staging URL, reviewer email, screenshots, diff, rollback note, deadline। Output: ManualValidation@1 instructions और checklist। Human check: mobile, form submit, images, links, analytics, client OK।
Use case 3
Input: production environment, approvers, branch control, business hours, exclusive lock, channel। Output: approval order, owner, timeout, failure contact। Human check: self-approval नहीं, night release, ad launch, rollback owner।
कॉपी करने वाला prompt
You are auditing an Azure DevOps release flow for a web agency.
Inputs: azure-pipelines.yml, PR template, branch policy memo, production environment approvals memo, staging URL checklist, and a recent rollback or rework note.
Output:
1. Three-column table: PR review, staging/client review, production approval.
2. ManualValidation@1 instruction text with staging URL, diff, rollback note, owner, and deadline.
3. Production environment approvals and checks proposal.
4. Branch policy list: reviewer, build validation, comment resolution, status check.
5. One first action that can be done in 30 minutes.
Rules: do not let the agent approve client acceptance, pricing, legal wording, publish timing, or production release.
जाँच code
const pipelineText = [
"trigger:",
" branches:",
" include:",
" - main",
"stages:",
" - stage: Build",
" jobs:",
" - job: build",
" steps:",
" - script: npm ci && npm run build",
" - stage: DeployStaging",
" jobs:",
" - job: deploy_staging",
" steps:",
" - script: echo deploy staging",
" - stage: ClientCheck",
" jobs:",
" - job: wait_for_client",
" pool: server",
" steps:",
" - task: ManualValidation@1",
" inputs:",
" notifyUsers: [email protected]",
" instructions: Check staging URL, PR diff, rollback note, and client approval.",
" - stage: DeployProduction",
" jobs:",
" - deployment: production",
" environment: production",
" strategy:",
" runOnce:",
" deploy:",
" steps:",
" - script: echo deploy production"
].join(String.fromCharCode(10));
const required = [
{ name: "main branch trigger", pattern: /- main/ },
{ name: "staging stage", pattern: /DeployStaging/ },
{ name: "manual validation", pattern: /ManualValidation@1/ },
{ name: "server pool for manual validation", pattern: /pool:\s*server/ },
{ name: "production environment", pattern: /environment:\s*production/ },
{ name: "rollback note in approval text", pattern: /rollback/i }
];
const findings = [];
for (const rule of required) {
if (!rule.pattern.test(pipelineText)) {
findings.push({ item: rule.name, fix: "add this gate before production release" });
}
}
const productionIndex = pipelineText.indexOf("DeployProduction");
const validationIndex = pipelineText.indexOf("ManualValidation@1");
if (productionIndex !== -1 && validationIndex !== -1 && validationIndex > productionIndex) {
findings.push({
item: "approval order",
fix: "place client/manual validation before production deployment"
});
}
console.table(findings);
if (findings.length > 0) process.exitCode = 1;
Pitfall: आम गलती
The first cause is treating PR approval as production approval. The fix is to separate code review, staging review, client acceptance, and production approval by name and owner.
The second cause is relying on notification recipients as if they were approvers. The fix is to inspect environment approval and project permissions separately from notifyUsers.
The third cause is approving without a rollback note. The fix is to add rollback commit, previous artifact, owner, and contact path to the approval text.
The fourth cause is bypassing branch policy under pressure. The fix is to define an emergency exception path with time limit, approver, evidence, and follow-up review.
FAQ
Q. Should we use ManualValidation or environment approval? A. Use ManualValidation for an in-stage pause such as staging URL review. Use environment approvals and checks as the production gate.
Q. Should client approval live inside Azure DevOps? A. If the client does not use Azure DevOps, store the approval URL or message link in the release memo and tie it to the pipeline run.
Q. Does a small content change need branch policy? A. Yes. Pricing pages, hiring pages, and ad landing pages can affect leads and revenue even when the code diff is small.
Q. Can Claude Code approve the release? A. No. It can summarize diff, list missing evidence, and draft checklists. Humans approve production.
consultation path
Agency के लिए value लंबे YAML में नहीं, गलत release कम करने और client evidence बचाने में है। Recent PR, YAML, staging checklist और rollback memo consultation page पर लाएँ। Use Claude Code training and consultation if the team needs help turning PRs, pipeline YAML, staging checks, and rollback memos into a repeatable release workflow.
मैंने क्या verify किया
मैंने approvals, ManualValidation@1, release approvals, branch policies और task reference की Microsoft Learn pages देखीं। Local code ManualValidation, server pool, production environment और rollback note check करता है। पहला step PR, staging और production approval को तीन columns में बाँटना है।
संबंधित लेख
Claude Code से GitHub Actions उन्नत करें: permissions, OIDC, cache और matrix CI
Claude Code से सुरक्षित GitHub Actions बनाएं: permissions, OIDC, cache, matrix और YAML examples।
एजेंसी में Codex Desktop: diff review, PR और release check की व्यावहारिक गाइड
Web agency के लिए Codex Desktop, PR, staging URL और human release approval की व्यावहारिक checklist.
Claude Code को टीम में लाने से पहले बनाएं यह 'रिस्क रजिस्टर'
Claude Code की टीम-तैनाती में परमिशन, CI और पब्लिश के हादसे रोकने वाला रिस्क रजिस्टर कैसे बनाएं — उदाहरण और चलने वाले कोड के साथ।
मुफ़्त PDF: Claude Code cheatsheet
Email डालें और commands, review habits तथा safe workflow वाली एक-page PDF पाएँ.
हम आपका data सुरक्षित रखते हैं और spam नहीं भेजते.
लेखक के बारे में
Masa
Claude Code workflow और team adoption पर काम करने वाला engineer.