[FEATURE] Metrics - Count Azure DevOps PRs created with `az repos pr create`
Status Open
Reported on v2.1.211
Maintainer reply None cached
Activity 0 comments · opened Jul 16, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Issue: PRs created by Claude using the az cli do not increment the claude_code.pull_requests.count metric.
Expected: A successful az repos pr create command increments the claude_code.pull_request.count metric, in the same way gh pr create commands do.
Proposed Solution
Add az repos pr create to the set of shell commands recognized as pull-request creation.
Based on the implementation in the 2.1.211 npm distribution, the matcher could be equivalent to:
{
re: /\baz\s+repos\s+pr\s+create\b/,
action: "created",
op: "pr_create"
}
Alternatively, if implemented as a separate condition:
if (
commandSucceeded &&
command.match(/\baz\s+repos\s+pr\s+create\b/)
) {
prCounter.add(1);
}
The metric should only be incremented when the command completes successfully.
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
Other
Use Case Example
_No response_
Additional Context
_No response_