Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Adds structures for repo file and blob APIs #152

Merged

Conversation

richmahn
Copy link

@richmahn richmahn commented Mar 12, 2019

These are changes to the SDK to work with the feature of Creating/Updating/Deleting/Viewing repo files in the API (go-gitea/gitea#4762)

This adds a few structures to the SDK to handle API calls for files, creating, updating, deleting and viewing the blob. There are different input/output structures so that the API Swagger will respectively show slight differences for Create, Update and Delete input/output yet reuse code/names to keep everything unified.

These structures are identical to what one can find for GitHub's API in https://developer.github.com/v3/repos/contents/#create-a-file (and the other sections) and https://developer.github.com/v3/git/blobs/#get-a-blob

Dependent upon by the Gitea PR: go-gitea/gitea#6314

gitea/repo_file.go Outdated Show resolved Hide resolved
gitea/repo_file.go Outdated Show resolved Hide resolved
@techknowlogick
Copy link
Member

@richmahn can you merge the latest changes to master into this branch. I’ve updated things with Drone that’ll hopefully resolve the issues that have been happening with the build of the Pr.

gitea/repo_commit.go Outdated Show resolved Hide resolved
@zeripath zeripath merged commit 10ebef4 into go-gitea:master Mar 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants