Skip to content

Keep a Claimed issue In Progress when a pull request links to it - #2124

Merged
JacobStephens2 merged 1 commit into
mainfrom
project-status-pr-link
Nov 12, 2026
Merged

JacobStephens2 merged 1 commit into
mainfrom
project-status-pr-link

Conversation

@JacobStephens2

Copy link
Copy Markdown
Owner

Summary

Follow-up to #2123. The project's built-in Pull request linked to issue workflow sets Status to PR open. When a Run links its pull request while it still holds the Claim, the issue left In Progress even though the Run was still live. The Action now also handles pull request events and works out each closed issue's status the same way it does for label events:

 on issues: labeled / unlabeled in-progress
+on pull_request_target: opened / reopened / edited
+  for each issue the pull request closes in this repository
   sync_issue
     claimed                       Todo | PR open      → In Progress
-    unclaimed, open closing PR   In Progress         → PR open
+    unclaimed, open closing PR   Todo | In Progress  → PR open
     unclaimed, no open PR        In Progress         → Todo

pull_request_target gives the job the secret on pull requests from forks too. The job only reads issue and project data and never checks out pull request code.

After merge: turn off the built-in "Pull request linked to issue" workflow in the project settings. This Action now covers that case, and if both ran, they would race.

Evidence

Execution evidence

I extracted the step's script and ran it against live data with the mutation stubbed out. PR #2120 closes #2090.

actionlint reports only the two SC2016 infos that are already on main.

Merge Danger

Door: two-way

Blast Radius: board-only

It changes only the project Status field. Revert it and turn the built-in workflow back on to undo.

The Action now also runs when a pull request is opened, reopened or
edited, and syncs each issue it closes: a Claimed issue stays In
Progress, and an unclaimed one goes from Todo or In Progress to PR open.
This replaces the project's built-in Pull request linked to issue
workflow, which moved Claimed issues to PR open mid-Run.
@JacobStephens2
JacobStephens2 merged commit f9b1c1f into main Nov 12, 2026
22 checks passed
@JacobStephens2
JacobStephens2 deleted the project-status-pr-link branch November 12, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deepen Fleet Run metrics source capture

1 participant