-
Notifications
You must be signed in to change notification settings - Fork 71
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
Ignore missing URL #1244
Ignore missing URL #1244
Conversation
@@ -75,7 +75,7 @@ const getPluginContent = async ({wiki, pluginName, reporter, createNode, createC | |||
id: `${pluginName} <<< JenkinsPluginWiki`, | |||
name: pluginName, | |||
url: url, | |||
baseHref: `${path.dirname(url)}/`, | |||
baseHref: `${url && path.dirname(url)}/`, |
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.
won't this output false/
?
path.dirname(url || '')
would work maybe?
Honestly if there's no url, then there probalby isn't need to generate a wiki object.
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.
there probalby isn't need to generate a wiki object
yep, then the error message can be created in UI and we don't need to download it from API. I tried that in a new commit.
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.
I'm going to revert this line, there's no need for it, and it could result in a random false.
@@ -181,21 +184,19 @@ function PluginPage({data: {jenkinsPlugin: plugin, reverseDependencies: reverseD | |||
<h5>Maintainers</h5> | |||
<PluginDevelopers developers={plugin.developers} /> | |||
</div> | |||
{shouldShowWikiUrl(plugin.wiki) && | |||
{shouldShowWikiUrl(plugin.wiki || {}) && |
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.
I'm going to change it so shouldShowWikiUrl takes in a string, and then we can do plugin?.wiki?.url
No description provided.