Recued
Menu
← Back to recipes

Azure DevOps pull request comment closure watcher

by recued-core v3 37 views

Use “Azure DevOps pull request comment closure watcher” in Recued. It checks saved items on a schedule and updates them when the connected service reports a final status.

Complete workflow

Use Azure DevOps Pull Request Comment Closure Loop in Recued for pull requests, comments, code review, and developer workflow. It includes 2 ready-to-run workflows and 1 related pack in one install.

You are viewing one recipe in this workflow. Installing it opens the complete pack so its other recipes and background automations arrive together.

Azure DevOps pull request comment closure watcher
This recipe Background automation

Use “Azure DevOps pull request comment closure watcher” in Recued. It checks saved items on a schedule and updates them when the connected service reports a final status.

azure-devopspull-requestscommentscode-review
by recued-core pinned v3

Use “Azure DevOps pull request comment closure watcher timeout” in Recued. Low-frequency timeout role for the connected service. It moves a limited batch of expired rows from active to timedout, deletes the active copy only after the durable timeout write succeeds, and notifies the owner once per batch.

azure-devopswatchertimeoutowner-review
by recued-core pinned v2
View pack details, dependencies, and permissions →
How it works 118 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Data fetch
▼ shared_pull_request_watches core.storage.shared.list
List storage shared
▼
Process (117 steps)
■ now date_add
Add 0 days to
■ watch_rows filter
Filter by condition
■ watch_rows_for_connection filter
Filter by condition
■ watch_rows_with_organization filter
Filter by condition
■ watch_rows_with_project filter
Filter by condition
■ watch_rows_with_repository filter
Filter by condition
■ watch_rows_with_pull_request filter
Filter by condition
■ watch_rows_with_thread filter
Filter by condition
■ never_checked_watch_rows filter
Filter by condition
■ checked_watch_rows filter
Filter by condition
■ checked_watch_rows_oldest_first sort
Sort by value.last_checked_at
■ fair_watch_rows flatten
Flatten nested lists in
■ candidate_rows slice
Take a subset of
■ batch_count count
Count items in candidate rows
■ candidate_count count
Count items in watch rows with thread
■ has_candidate compare
Check if candidate rows has data
■ has_connection compare
Check if connections azure-devops has data
■ skip_pull_request_read any
Check if any of the conditions are true
■ batch_context_envelopes merge
Combine objects together
■ batch_contexts map
Extract from each item
◆ pull_request recued-core.azure-devops-git.pull_request.read
Read pull request on azure devops git
skip: step.skip_pull_request_read equal true
■ pull_request_live_batch_context pick
Keep only specific fields from
■ pull_request_batch_context_envelopes merge
Combine objects together
■ pull_request_batch_contexts map
Extract from each item
■ pull_request_status default
Apply default
■ pull_request_status_live_batch_context pick
Keep only specific fields from
■ pull_request_status_batch_context_envelopes merge
Combine objects together
■ pull_request_status_batch_contexts map
Extract from each item
■ has_pull_request_status compare
Check if item pull request status has data
■ has_pull_request_status_live_batch_context pick
Keep only specific fields from
■ has_pull_request_status_batch_context_envelopes merge
Combine objects together
■ has_pull_request_status_batch_contexts map
Extract from each item
■ pull_request_status_norm lowercase
Convert item pull request status to lowercase
■ pull_request_status_norm_live_batch_context pick
Keep only specific fields from
■ pull_request_status_norm_batch_context_envelopes merge
Combine objects together
■ pull_request_status_norm_batch_contexts map
Extract from each item
■ pull_request_completed compare
Check if item pull request status norm equals completed
■ pull_request_completed_live_batch_context pick
Keep only specific fields from
■ pull_request_completed_batch_context_envelopes merge
Combine objects together
■ pull_request_completed_batch_contexts map
Extract from each item
■ pull_request_abandoned compare
Check if item pull request status norm equals abandoned
■ pull_request_abandoned_live_batch_context pick
Keep only specific fields from
■ pull_request_abandoned_batch_context_envelopes merge
Combine objects together
■ pull_request_abandoned_batch_contexts map
Extract from each item
■ terminal_status any
Check if any of the conditions are true
■ terminal_status_live_batch_context pick
Keep only specific fields from
■ terminal_status_batch_context_envelopes merge
Combine objects together
■ terminal_status_batch_contexts map
Extract from each item
■ closed_date default
Apply default
■ closed_date_live_batch_context pick
Keep only specific fields from
■ closed_date_batch_context_envelopes merge
Combine objects together
■ closed_date_batch_contexts map
Extract from each item
■ owner_action ternary
Apply ternary
■ owner_action_live_batch_context pick
Keep only specific fields from
■ owner_action_batch_context_envelopes merge
Combine objects together
■ owner_action_batch_contexts map
Extract from each item
■ skip_close any
Check if any of the conditions are true
■ skip_close_live_batch_context pick
Keep only specific fields from
■ skip_close_batch_context_envelopes merge
Combine objects together
■ skip_close_batch_contexts map
Extract from each item
■ closed_watch_key replace
Replace text in item watch key
■ closed_watch_key_live_batch_context pick
Keep only specific fields from
■ closed_watch_key_batch_context_envelopes merge
Combine objects together
■ closed_watch_key_batch_contexts map
Extract from each item
◆ close_watch core.storage.shared.write
Write storage shared
skip: item.skip_close equal true
■ close_watch_live_batch_context pick
Keep only specific fields from
■ close_watch_batch_context_envelopes merge
Combine objects together
■ close_watch_batch_contexts map
Extract from each item
◆ delete_closed_active_watch core.storage.shared.delete
Delete storage shared
skip: item.close_watch.ok not_equal true
■ delete_closed_active_watch_live_batch_context pick
Keep only specific fields from
■ delete_closed_active_watch_batch_context_envelopes merge
Combine objects together
■ delete_closed_active_watch_batch_contexts map
Extract from each item
■ notify_completed_enabled compare
Check if setting notify when completed equals true
■ notify_completed_enabled_live_batch_context pick
Keep only specific fields from
■ notify_completed_enabled_batch_context_envelopes merge
Combine objects together
■ notify_completed_enabled_batch_contexts map
Extract from each item
■ notify_abandoned_enabled compare
Check if setting notify when abandoned equals true
■ notify_abandoned_enabled_live_batch_context pick
Keep only specific fields from
■ notify_abandoned_enabled_batch_context_envelopes merge
Combine objects together
■ notify_abandoned_enabled_batch_contexts map
Extract from each item
■ should_notify_completed all
Check if all conditions are true
■ should_notify_completed_live_batch_context pick
Keep only specific fields from
■ should_notify_completed_batch_context_envelopes merge
Combine objects together
■ should_notify_completed_batch_contexts map
Extract from each item
■ should_notify_abandoned all
Check if all conditions are true
■ should_notify_abandoned_live_batch_context pick
Keep only specific fields from
■ should_notify_abandoned_batch_context_envelopes merge
Combine objects together
■ should_notify_abandoned_batch_contexts map
Extract from each item
■ status_should_notify any
Check if any of the conditions are true
■ status_should_notify_live_batch_context pick
Keep only specific fields from
■ status_should_notify_batch_context_envelopes merge
Combine objects together
■ status_should_notify_batch_contexts map
Extract from each item
■ should_notify all
Check if all conditions are true
■ should_notify_live_batch_context pick
Keep only specific fields from
■ should_notify_batch_context_envelopes merge
Combine objects together
■ should_notify_batch_contexts map
Extract from each item
■ notification_title ternary
Apply ternary
■ notification_title_live_batch_context pick
Keep only specific fields from
■ notification_title_batch_context_envelopes merge
Combine objects together
■ notification_title_batch_contexts map
Extract from each item
◆ notify_owner core.notification.send
Send notification
skip: item.should_notify not_equal true
■ notify_owner_live_batch_context pick
Keep only specific fields from
■ notify_owner_batch_context_envelopes merge
Combine objects together
■ notify_owner_batch_contexts map
Extract from each item
■ refreshed_watch_value merge
Combine objects together
skip: item.delete_closed_active_watch.ok equal true
■ refreshed_watch_value_live_batch_context pick
Keep only specific fields from
■ refreshed_watch_value_batch_context_envelopes merge
Combine objects together
■ refreshed_watch_value_batch_contexts map
Extract from each item
◆ refresh_active_watch core.storage.shared.write
Write storage shared
skip: item.delete_closed_active_watch.ok equal true
■ refresh_active_watch_live_batch_context pick
Keep only specific fields from
■ refresh_active_watch_batch_context_envelopes merge
Combine objects together
■ refresh_active_watch_batch_contexts map
Extract from each item
■ closed_batch_rows filter
Filter by condition
■ refreshed_batch_rows filter
Filter by condition
■ closed_batch_count count
Count items in closed batch rows
■ refreshed_batch_count count
Count items in refreshed batch rows
■ summary to_summary
Format results as a summary card
▼
Output
summary summary
Settings 4 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

channels setting = [object Object]
batch limit setting = 5
notify when abandoned setting = true
notify when completed setting = true

Uses (5 operations)

Shared store List storage shared core.storage.shared.list
Pack operation Read pull request on azure devops git recued-core.azure-devops-git.pull_request.read
Shared store Write storage shared core.storage.shared.write
Shared store Delete storage shared core.storage.shared.delete
Notifications Send notification core.notification.send

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Permissions it requires

Send notificationsRead your Azure_devops connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

What it's allowed to do

Read Shared store core.storage.shared.list read-only
Write Shared store core.storage.shared.write external change
Write Shared store core.storage.shared.delete external change
Read Notifications core.notification.send external change

1 more isn't listed here. You'll see it at install.

Data it touches

SurfacesShared storeNotifications
Warehousedata.shared

About

Tags

azure-devops azure-devopspull-requestscommentscode-reviewdeveloper-workflowclosurenotificationclosed-loopstate:azure-devops-pull-request-comment-closure-watcherpack:azure-devops-pull-request-comment-closure

Details

118 steps 4 configurable settings recipe_id: pull-request-comment-closure-watcher-azure-devops