Skip to content
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 #1268 #1305

Merged
merged 3 commits into from
Nov 22, 2023
Merged

Fixes #1268 #1305

merged 3 commits into from
Nov 22, 2023

Conversation

mfirry
Copy link
Contributor

@mfirry mfirry commented Nov 22, 2023

No description provided.

@adpi2 adpi2 linked an issue Nov 22, 2023 that may be closed by this pull request
Copy link
Member

@adpi2 adpi2 left a comment

Choose a reason for hiding this comment

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

Great thanks

Comment on lines 112 to 116
.map { res =>
val resJson = js.JSON.parse(res)
val branch = resJson.asInstanceOf[Repo].default_branch
fixImages(branch, organization, repository)
}
Copy link
Member

Choose a reason for hiding this comment

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

I deployed it to https://index-dev.scala-lang.org/scalacenter/bloop but it does not work.

It seems there is a problem here because it tries again to parse the default_branch to JSON.

Suggested change
.map { res =>
val resJson = js.JSON.parse(res)
val branch = resJson.asInstanceOf[Repo].default_branch
fixImages(branch, organization, repository)
}
.map(branch => fixImages(branch, organization, repository))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm weird. I tried it locally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah no. My bad. Let me see.

@adpi2 adpi2 merged commit 2d84eb7 into scalacenter:main Nov 22, 2023
3 checks passed
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.

[Bug] image in readme would crash when default branch is not master
2 participants