AOSSIE-Org / AOSSIE-Org/NeuroTrack

Bug: Assignment workflow treats mergeable PRs as merged

Đang mở
#149 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
29
Fork
50
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Is there an existing issue for this?

- [x] 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: #

(Replace after creating the PR.)

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.