-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fixes issue autolinks rendering when autolinks enabled is false #3924
base: main
Are you sure you want to change the base?
Conversation
50972cf
to
9e58473
Compare
Hey @nzaytsev, while reviewing your PR, I'd suggest the following code changes: 👉 Still getting pull request data for autolinks
You can also review and apply these suggestions locally on your machine. Learn more about GitKraken Code Suggest
Join your team on GitKraken to speed up PR review. |
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.
Please see comment in code suggestion: #3924 (comment)
cd053da
to
93ae6b4
Compare
@d13 - fixed |
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.
Some nits, otherwise looks good
if (this.isUncommitted) return undefined; | ||
if (!this.state?.autolinksEnabled) { | ||
return nothing; | ||
} |
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.
Nit:
if (this.isUncommitted) return undefined; | |
if (!this.state?.autolinksEnabled) { | |
return nothing; | |
} | |
if (this.isUncommitted || !this.state?.autolinksEnabled) return undefined; |
autolinksEnabled: configuration.get('views.commitDetails.autolinks.enabled') ?? false, | ||
pullRequest: | ||
configuration.get('views.commitDetails.autolinks.enabled') && current.pullRequest != null |
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.
Nit: consolidated the two configuration lookups
Description
Screen.Recording.2025-01-14.at.09.37.59.mov
Checklist
Fixes $XXX -
orCloses #XXX -
prefix to auto-close the issue that your PR addresses