-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Fixes #7292 - API File Contents bug #7301
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
Merged
techknowlogick
merged 24 commits into
go-gitea:master
from
richmahn:fix-7292-api-file-content-bug
Jun 29, 2019
Merged
Changes from 4 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3dfafaf
Fixes #7292 - API File Contents bug
richmahn c66f026
Fix to linting
richmahn 74564a2
Fixes lint issues
richmahn 989f4fb
Fixes integreation test
richmahn f676db5
API contents endpoint full functionality for directories, symlinks an…
richmahn 35dd33d
API contents endpoint full functionality for directories, symlinks an…
richmahn ac16348
Lint fixes
richmahn 6dc209b
Fixes to content and swagger
richmahn 459efd4
Fixes for swagger
richmahn c941709
Fixes to content and swagger
richmahn ae0b30b
Swagger update
richmahn 4078622
Swagger fix
richmahn b436486
Fix to test
richmahn 5931946
Merge remote-tracking branch 'upstream/master' into fix-7292-api-file…
richmahn e0d98b0
ContentsResponse struct update: better name and some fields can be nil
richmahn cc4212b
ContentsResponse struct update: better name and some fields can be nil
richmahn ff2b1c4
Update comments
richmahn c3e496d
Fixes to integration tests
richmahn 4c8b11d
Swagger update
richmahn 19ac334
Merge remote-tracking branch 'upstream/master' into fix-7292-api-file…
richmahn 0d65643
Fixes to integration tests
richmahn 3d2c6ad
Adds comment
richmahn dd963a1
Adds comment
richmahn 23498be
Merge remote-tracking branch 'upstream/master' into fix-7292-api-file…
richmahn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Could we return ObjectType on https://github.com/go-gitea/gitea/blob/master/modules/git/repo_object.go#L14 ?
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.
Looking into it. I actually realized I did not have this at all responding like GitHub, especially when it comes to being 4 different types of objects (dir, file, symlink, submodule) that could be returned, as well well as a list of entries. So this is being redone.
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.
Added ObjectBranch and now use those as a way to get the string of a ref. Also moved my GetRefType() into this file.