Skip to content
Recued
Menu
← Back to recipes

GitHub issue closure watcher

by recued-core v1

Scheduled adopter for GitHub issue closure rows seeded by create-github-issue-with-closure. It lists only Recued-originated issue watches, re-reads a bounded batch of GitHub issue, and closes the shared row when GitHub reports that issue closed. It can notify the owner on closure, but it never creates, updates, closes, reopens, deletes, transfers, labels, assigns, locks, comments on, creates pull requests for, or otherwise mutates GitHub issues.

Complete workflow

GitHub Issue Closure Loop 4 pinned recipes

Workflow pack for Recued-created GitHub issues. It composes the GitHub capability pack with a closure ledger: create one owner-approved issue in one repository, persist only the connection/repository/issue linkage in data.shared, and let a scheduled watcher re-read that exact issue until GitHub reports it closed. This pack does not replace GitHub issue state controls, issue views, project boards, milestones, native notifications, webhooks, pull request review, or general issue reporting; it adds Recued-visible closure state for issues Recued created.

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

GitHub issue closure watcher
This recipe Background automation

Scheduled adopter for GitHub issue closure rows seeded by create-github-issue-with-closure. It lists only Recued-originated issue watches, re-reads a bounded batch of GitHub issue, and closes the shared row when GitHub reports that issue closed. It can notify the owner on closure, but it never creates, updates, closes, reopens, deletes, transfers, labels, assigns, locks, comments on, creates pull requests for, or otherwise mutates GitHub issues.

githubissuesdeveloper-workflowclosure
by recued-core pinned v1

Workflow origin for the GitHub issue closure loop. It reads the target repository for context, creates exactly one owner-approved issue through recued-core.github-pack.issue.create, and when the issue succeeds it seeds durable data.shared closure state for github-issue-closure-watcher. It uses deterministic owner-provided fields rather than AI and does not update, close, reopen, delete, transfer, label, assign, lock, comment on, create pull requests for, or otherwise mutate GitHub issues beyond the approved issue create.

githubissuesdeveloper-workflowrepository
by recued-core pinned v1
GitHub issue closure watcher timeout
Background automation

Low-frequency timeout role for recued-core/github-issue-closure. It moves a bounded batch of expired rows from active to timed_out, deletes the active copy only after the durable timeout write succeeds, and notifies the owner once per batch.

githubwatchertimeoutowner-review
by recued-core pinned v1

Owner-visible list/close role for recued-core/github-issue-closure. It lists bounded active, timed-out, and closed rows. Supplying a timed-out or closed key deletes only that exact terminal row; active watches cannot be deleted here.

githubwatcherreviewclose
by recued-core pinned v1
View pack details, dependencies, and permissions →
How it works 91 steps

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

Data fetch
shared_issue_watches ?
Process (90 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_repo filter
Filter by condition
watch_rows_with_issue 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 issue
has_candidate compare
Check if candidate rows has data
has_connection compare
Check if setting github has data
skip_issue_read any
Check if any of the conditions are true
batch_context_envelopes merge
Combine objects together
batch_contexts map
Extract from each item
issue ?
skip: step.skip_issue_read equal true
issue_live_batch_context pick
Keep only specific fields from
issue_batch_context_envelopes merge
Combine objects together
issue_batch_contexts map
Extract from each item
state default
Apply default
state_live_batch_context pick
Keep only specific fields from
state_batch_context_envelopes merge
Combine objects together
state_batch_contexts map
Extract from each item
has_issue_state compare
Check if item state has data
has_issue_state_live_batch_context pick
Keep only specific fields from
has_issue_state_batch_context_envelopes merge
Combine objects together
has_issue_state_batch_contexts map
Extract from each item
issue_closed compare
Check if item state equals closed
issue_closed_live_batch_context pick
Keep only specific fields from
issue_closed_batch_context_envelopes merge
Combine objects together
issue_closed_batch_contexts map
Extract from each item
closed_at default
Apply default
closed_at_live_batch_context pick
Keep only specific fields from
closed_at_batch_context_envelopes merge
Combine objects together
closed_at_batch_contexts map
Extract from each item
state_reason default
Apply default
state_reason_live_batch_context pick
Keep only specific fields from
state_reason_batch_context_envelopes merge
Combine objects together
state_reason_batch_contexts map
Extract from each item
live_issue_number default
Apply default
live_issue_number_live_batch_context pick
Keep only specific fields from
live_issue_number_batch_context_envelopes merge
Combine objects together
live_issue_number_batch_contexts map
Extract from each item
live_issue_id default
Apply default
live_issue_id_live_batch_context pick
Keep only specific fields from
live_issue_id_batch_context_envelopes merge
Combine objects together
live_issue_id_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 ?
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 ?
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_enabled compare
Check if setting notify when closed equals true
notify_enabled_live_batch_context pick
Keep only specific fields from
notify_enabled_batch_context_envelopes merge
Combine objects together
notify_enabled_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
notify_owner ?
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 ?
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
Settings 4 configurable

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

github setting =
channels setting = in_app
batch limit setting = 5
notify when closed setting = true

Trust & control

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

Where it runs

Device + server Runs on your device (browser) or your server.

Permissions it requires

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

Data it touches

Warehousedata.shared

About

Tags

github githubissuesdeveloper-workflowclosurenotificationclosed-loopstate:github-issue-closure-watcherpack:github-issue-closure

Details

91 steps 4 configurable settings recipe_id: github-issue-closure-watcher