Skip to content

Display linked issue(s) from the PR Overview #5824 #6835

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mohamedamara1
Copy link
Contributor

Replacement of #5825

@mohamedamara1
Copy link
Contributor Author

mohamedamara1 commented Apr 26, 2025

the closing issues of a PR are retireved succesfully as props to the sidebar component, what's missing is

  • listing them down in the UI
  • improvements on the selected fields

@mohamedamara1 mohamedamara1 marked this pull request as draft April 26, 2025 23:32
@mohamedamara1 mohamedamara1 marked this pull request as ready for review April 26, 2025 23:33
@@ -632,6 +632,14 @@ export interface PullRequest extends Issue {
viewerCanDisableAutoMerge: boolean;
isDraft?: boolean;
suggestedReviewers: SuggestedReviewerResponse[];
closingIssuesReferences?: {

This comment was marked as spam.

@mohamedamara1
Copy link
Contributor Author

any comments on this so far ? @alexr00
I know that I still need to fix the UI a bit (icons)

@alexr00 alexr00 added this to the May 2025 milestone Apr 30, 2025
@alexr00
Copy link
Member

alexr00 commented Apr 30, 2025

I'll try to take a look on Friday. We're doing our release prep week now (endgame).

Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @mohamedamara1! I made a few small changes, and I have a few comments, as well as feedback on the UI itself:

image

<div className="section-title">Linked Issues</div>
</div>
{closingIssues.length > 0 ? (
<div className="p-2">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a class name that is consistent with the class naming scheme in the file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for gap-2 below.

@@ -96,6 +96,7 @@ export interface PullRequest extends Issue {
lastReviewType?: ReviewType;
revertable?: boolean;
busy?: boolean;
closingIssues: Pick<Issue, 'title' | 'number' | 'state'>[];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pick<Issue, 'title' | 'number' | 'state'> is used in more than one place, can you refactor it into an IssueReference type in this file?


switch (normalizedState) {
case 'open':
return settingsIcon;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not issueIcon?

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.

3 participants