This repository was archived by the owner on Jun 8, 2019. It is now read-only.
forked from gogs/go-gogs-client
-
Notifications
You must be signed in to change notification settings - Fork 53
Add Attachment API #90
Merged
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5277236
Adding assets struct
jonasfranz 191c060
Replacing assets with attachments
jonasfranz 771fe76
Using pointer to attachment instead of copy
jonasfranz 05408a9
Adding swagger tags to attachment
jonasfranz 719ad42
Add client functions for attachments
jonasfranz 51a2a81
Add EditAttachmentForm
jonasfranz 1c62562
Add EditReleaseAttachment
jonasfranz f13aa38
Add missing "Content-Type" to CreateReleaseAttachment
jonasfranz 2e0e53b
Using reader for uploading file
jonasfranz d79503e
Use io.Copy instead of part.Write
jonasfranz 5b144bb
Merge branch 'master' of https://github.com/go-gitea/go-sdk into 711-…
jonasfranz 70dc55f
Add error checking
jonasfranz eeb85eb
Replace Attachments with Assets to make API Github compatible
jonasfranz 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
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.
Should I use here attachments or assets (in JSON)?
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.
ref https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository, it should be assets
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.
@JonasFranzDEV this is not resolved.