-
Notifications
You must be signed in to change notification settings - Fork 86
Fix: Remove incorrect 'Closed' label for merged PRs in reviewed section #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Fixed logic that showed 'Closed' label for merged PRs when merge status was unknown - Now defaults to 'Open' label for unknown status instead of 'Closed' - Addresses issue fossasia#176 where merged reviewed PRs incorrectly displayed 'Closed' label Fixes fossasia#176
Reviewer's GuideThis PR refactors the reviewed‐PR status logic in scrumHelper.js to explicitly handle merged, closed, and unknown cases, extracts merge‐status resolution into a helper function, and improves repository URL parsing for safer owner/repo lookup. Class diagram for reviewed PR status logic in scrumHelper.jsclassDiagram
class scrumHelper {
+renderReviewedPR(item, mergedStatusResults, repository_url, number, project, html_url, title)
}
class MergeStatusHelper {
+getMergeStatus(mergedStatusResults, repository_url, number)
}
scrumHelper ..> MergeStatusHelper : uses
Flow diagram for reviewed PR status label renderingflowchart TD
A[PR state is 'closed'] --> B{Get merged status}
B -->|merged === true| C[Show 'Merged' label]
B -->|merged === false| D[Show 'Closed' label]
B -->|merged is null/undefined| E[Show 'Open' or no label]
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you merge this one |
Fix incorrect "Closed" label for merged PRs in reviewed section
Refactored status logic to correctly display "Merged" for merged PRs, "Closed" for unmerged PRs, and no label for unknown statuses. Also added a helper function for merge status lookup and used the URL parser for safer repo extr
Summary by Sourcery
Correct PR review status labeling to distinguish merged, closed, and unknown review PR states.
Bug Fixes:
Enhancements: