/
/
Know if a pull request can merge in one answer
For developers who want a ready or not-ready verdict on an Azure DevOps pull request, just by asking their AI assistant.
On this page
Connector
Connect Azure DevOps, pick your AI tool and paste the prompt.
The problem
Pull requests merge too soon or wait too long
Deciding whether a pull request can merge means opening the reviewers, the comment threads and the merge status separately. It is easy to miss a rejected vote or an unresolved thread and merge too soon, or to hold up a good change.
Without PopdockAI
- Open the reviewer list and check each vote
- Read through every comment thread
- Check the merge status for conflicts
- Miss the one rejected vote
With PopdockAI
- Reviewers and their votes are read
- Every comment thread and its status is checked
- The merge status is checked for conflicts
- A ready or not ready verdict comes with reasons
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Decide whether pull request `{pull-request-id}` (repository `{repository-name}` if given) is ready to merge, and list what is missing if not.
**Step 1: Load the pull request**
Call `azure-devops-get-pull-request` with id `{pull-request-id}`. If more than one repository matches, list them and stop. Note status, is-draft, merge-status, source-branch and target-branch.
**Step 2: Check reviews**
Call `azure-devops-get-pull-request-reviewer` with the pull-request-id and repository-id. Required reviewers must have an approving vote. Treat any rejected or waiting vote as blocking.
**Step 3: Check discussion**
Call `azure-devops-get-pull-request-thread` for the pull request and count threads whose status is active or pending, grouped by file-path.
**Step 4: Report**
Verdict (ready, ready with caveats, or not ready), then a checklist: status, draft, merge-status, required reviews, unresolved threads, and the exact items blocking the merge.
**Rules & Guidelines:**
* This prompt is read-only. Call only the `azure-devops-get-*` read tools named above; never create, update, comment on, approve, queue, abort or delete anything in Azure DevOps.
* The tools only return data the connected account can see; never infer data from projects outside that access.
* Do not tell the user to merge or complete it; only report readiness.
* Base every statement on tool output, not on the title or description.
**Validation:**
* If the pull request is already completed or abandoned, say so and stop after Step 1.
* If the id is not found, report that and stop.
Who it's for
One answer, three teams that use it
Developers
Know what is blocking your change
See the rejected votes, open threads or conflicts holding up your pull request in one answer.
What is blocking pull request 1342 in Fabrikam.Api from merging?
Tech leads
Merge with confidence
A clear verdict with reasons means nothing merges with an unresolved thread.
Is pull request 988 in Northwind.Portal ready to merge?
Release managers
Check readiness before a cut
Confirm the pull requests you need are ready before the release branch is cut.
Check whether Azure DevOps pull request 1405 in Contoso.Web has any unresolved comment threads.
How it works
What PopdockAI does when you ask
You give a pull request id and your AI assistant checks everything that decides whether it can merge. It never merges or approves anything.
01
Ask
You give the pull request id.
02
Read
It reads the reviewers, their votes and the comment threads.
03
Check
It checks the merge status for conflicts.
04
Report
You get a ready or not-ready verdict with the reasons.
What PopdockAI provides
The tools behind the answer
Ready made tools for Azure DevOps and one secure connection to your AI tool. No code, no exports.
azure-devops-get-pull-request
azure-devops-get-pull-request-reviewer
azure-devops-get-pull-request-thread
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
Know if a pull request is ready, and why
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
