Skip to content

ai-flow: Projects board automation — set linked issue to In review on PR open #1

Description

@JPDuchesne

Follow-up from the ai-flow plan (Cursor Plans ⇄ GitHub Issues Integration).

Context

ai-flow's /build command opens PRs whose bodies always carry a deterministic closing reference (Closes owner/repo#n). GitHub natively auto-closes the issue on merge, and the Projects v2 built-in workflow "item closed → Done" moves the board from there. What GitHub does not do natively is flip the linked issue to "In review" when the PR opens — Projects' built-in review workflows apply only to the PR item itself, not the linked issue.

Proposal

A small optional second reusable workflow in d3mlabs/ai-flow:

  • Trigger: pull_request: opened (and likely ready_for_review, closed)
  • Resolve linked issues via GraphQL closingIssuesReferences on the PR
  • Set their Projects v2 status field via updateProjectV2ItemFieldValue

Reliable precisely because ai-flow PR bodies always carry the closing reference.

Notes

  • Created in d3mlabs/dev because d3mlabs/ai-flow does not exist yet — transfer this issue there once the repo is created (rollout step of the plan).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions