Bug: Assignment workflow treats mergeable PRs as merged

Open
#149 1 comment 1 reaction 0 assignees View on GitHub

@SarthakJagota is already working on this.

Since Dec 29, 2025.

  • #150 by @SarthakJagota — closed without merging
  • #151 by @SarthakJagota — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
dart, github
Domain
devops

Research direction

Start at the assignment workflow's pull-request status check and compare its current use of GET /pulls/{pull_number}/merge with the issue's expected merged status. Confirm completion against the GET /pulls/{pull_number} response and verify that an open, mergeable PR is not treated as completed; the issue is done when only actually merged PRs affect active assignment validation.

Written by the indexing model from the issue text.

Description

Is there an existing issue for this?
  • I have searched the existing issues
What happened?

.

🔍 Issue Overview

The assignment workflow currently determines whether a pull request is merged by calling the GET /pulls/{pull_number}/merge endpoint and checking for a 204 status code.

However, this endpoint only indicates whether a pull request is mergeable, not whether it has actually been merged. As a result, open but mergeable pull requests can be incorrectly treated as completed.

🎯 Impact

This can lead to incorrect issue assignment behavior, where contributors may be allowed or blocked from taking new issues based on an inaccurate merge status.

✅ Expected Behavior

Only pull requests that have actually been merged should be treated as completed when validating active issue assignments.

🔧 Suggested Fix

Fetch pull request details using GET /pulls/{pull_number} and determine merge completion by checking the merged field in the response.

A pull request has already been opened to address this issue: #<PR_NUMBER>

(Replace <PR_NUMBER> after creating the PR.)

Record
  • I agree to follow this project's Code of Conduct
  • I want to work on this issue
Dominant language
Dart
Stars
30
Forks
49
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/NeuroTrack

All issues in AOSSIE-Org/NeuroTrack

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.