-
Notifications
You must be signed in to change notification settings - Fork 21
Links to ruby source from details page are not working #39
Comments
@jmccaffrey Github returns the default branch of repo in the response. For eg. https://api.github.com/repos/ruby/ruby returns |
It would probably take me half a day to get oriented in this project and make the changes and update the tests, so it is probably faster for someone else to do it. Here's what I got so far:
I don't see where Repos are loaded/created. I wouldn't mind pairing on it, but I feel like I'd take too long, and break too much stuff on my own! |
Seems like this is still broken. Can we sketch out the next steps for how this could be resolved? (I listed out some thoughts above, but I have no idea if I'm even close) |
We should use urls like this (i'm thinking)
So it's base
then commit sha
Then page and line
|
Hi everyone - I like the project! Added a PR to fix this issue. |
I think we can close this ticket now. Still working on figuring out why the rails links aren't exactly correct. The ruby ones are working though. |
Yeah, just got an email for rails - 100% of the source links were wrong :( |
Yeah we should close this one and open a new one because the ruby source ones work now but the rails ones are broken, and I'm pretty sure it's for a different reason. |
@nateberkopec Did you notice any issue with links other than Rails? |
Created new issue for tracking problems with Rails inks #45 |
Example:
http://www.docsdoctor.org/doc_methods/25285
the Source link points to
https://github.com/ruby/ruby/blob/master/ext/json/lib/json/add/regexp.rb/#L11
which returns 404
It would appear that the ruby project doesn't have a 'master' branch, but instead they have 'trunk'
so a link like this would work
https://github.com/ruby/ruby/blob/trunk/ext/json/lib/json/add/regexp.rb/#L11
This 404 result seemed consistent for all of the ruby methods I looked at (which would make sense)
Within docs_doctor, it looks like this code is responsible for building the link https://github.com/codetriage/docs_doctor/blob/master/app/models/github_url_from_base_path_line.rb
I don't know the best way to resolve this, but perhaps something where you can specify the 'branch' url section to use for the repo. ("blob/master" would be the default, but 'blob/trunk' would be specified for the ruby repo.
The text was updated successfully, but these errors were encountered: