-
Notifications
You must be signed in to change notification settings - Fork 116
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
Click on view file or download binary leads to 404 github page #292
Comments
Hey, thank you so much for reporting this and proposing fixes! The PR at
About this, do you have any content that indicated that this was due to a GitHub update? the diffs that we use are actually generated by rn-diff-purge and this started not long ago (hence #291) so it could be that the issue lies there. |
Hi @lucasbento,
I strongly think this is the case as "view file" option was working before and |
Hi there! But now I see that someone made Would this hidden hero be so kind and tell us what was adjusted to change the diff format? |
this seems fixed. if there is a specific example of this failing, please report that. |
Bug
When I click on "view file", I expect the file to be opened. Instead I see 404 GitHub page.
The reason is described in Analysis section.
React Native versions
all
Steps to reproduce
See above.
Describe what you expected to happen:
I click on "view file".
I expect the file to be opened.
Analysis
In GitHub url, "Rn" prefix is missing, instead of "RnDiffApp" only "DiffApp" is present. This is due to the fact, that GitHub deliver diffs without prefixed and
gitdiff-parser
library currently only supports diffs with prefixes.Solution proposals (cleanest/highest effort -> dirtiest/lowest effort):
a/
,b/
)gitdiff-parser
support diffs without prefixes (Add support for diffs created with --no-prefix option ecomfe/gitdiff-parser#21)DownloadFileButton
andViewFileButton
components.The text was updated successfully, but these errors were encountered: