1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-18 03:04:36 +01:00
Git with a cup of tea, painless self-hosted git service https://gitea.io/
Go to file
Jonas Franz 9a5e628a7e Add Attachment API (#3478)
* Add Attachment API
* repos/:owner/:repo/releases (add attachments)
* repos/:owner/:repo/releases/:id (add attachments)
* repos/:owner/:repo/releases/:id/attachments
* repos/:owner/:repo/releases/:id/attachments/:attachment_id

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Add unit tests for new attachment functions
Fix comments

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* fix lint

* Update vendor.json

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* remove version of sdk

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix unit tests
Add missing license header

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add CreateReleaseAttachment
Add EditReleaseAttachment
Add DeleteReleaseAttachment

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add filename query parameter for choosing another name for an attachment

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix order of imports

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Restricting updatable attachment columns

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* gofmt

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Update go-sdk
Replace Attachments with Assets

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Update go-sdk

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Updating go-sdk and regenerating swagger

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add missing file of go-sdk

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Change origin of code.gitea.io/sdk to code.gitea.io/sdk
Update code.gitea.io/sdk

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Update swagger

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Update updateAttachment
2018-03-06 09:22:16 +08:00
.github Comment help text for issues (#2281) 2017-08-09 12:13:33 +08:00
assets
cmd Implements generator cli for secrets (#3531) 2018-02-18 20:14:37 +02:00
contrib Drop unmaintained gogs migration script (#2947) 2017-11-21 08:52:48 +08:00
custom/conf Add option to enable or disable swagger endpoints (#3502) 2018-02-14 06:46:00 +02:00
docker Enable content trust when building image (#2972) 2017-12-03 18:21:10 +08:00
docs Update gogs to gitea migration manual (#3559) 2018-02-22 20:55:26 +08:00
integrations Fix missing translations when updating username. (#3564) 2018-02-25 15:56:25 +02:00
models Add Attachment API (#3478) 2018-03-06 09:22:16 +08:00
modules Fix wiki inter-links with cases and add tests for this case (#3560) 2018-03-05 20:39:12 +02:00
options [skip ci] Updated translations via Crowdin 2018-03-04 02:46:24 +00:00
public Add Attachment API (#3478) 2018-03-06 09:22:16 +08:00
routers Add Attachment API (#3478) 2018-03-06 09:22:16 +08:00
scripts Updating generate-licenses.go to fetch licenses from maintained repository. (#3484) 2018-02-12 20:20:30 +02:00
templates Fix incorrect 'Erase Wiki Data' string identifier. (#3613) 2018-03-02 22:31:15 +02:00
vendor Add Attachment API (#3478) 2018-03-06 09:22:16 +08:00
.changelog.yml Add changelog config file for generate changelog (#2461) 2017-09-04 13:07:57 +03:00
.dockerignore
.drone.yml Update source installation requirements (#3124) 2018-01-16 22:18:11 +01:00
.editorconfig
.gitattributes
.gitignore Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
.lgtm refactor: ignore LGTM from author of pull request. (#3283) 2018-01-02 06:13:49 -06:00
CHANGELOG.md add changelog for 1.4.0 (#3435) 2018-01-31 17:40:57 +02:00
CONTRIBUTING.md Update standard copyright header for new year (#3289) 2018-01-02 20:03:24 -06:00
DCO
Dockerfile Update alpine to 3.7 (#3121) 2017-12-10 10:50:50 +08:00
LICENSE
main.go Implements generator cli for secrets (#3531) 2018-02-18 20:14:37 +02:00
MAINTAINERS Add MTecknology to MAINTAINERS list (#3335) 2018-01-09 07:27:26 +02:00
Makefile Add more bench (#3161) 2017-12-24 02:33:34 +02:00
package.json Add Attachment API (#3478) 2018-03-06 09:22:16 +08:00
README_ZH.md update screenshots on README (#2910) 2017-11-14 13:23:55 +02:00
README.md Add CodeTriage link to README (#3299) 2018-01-09 00:01:08 +01:00

简体中文

Gitea - Git with a cup of tea

Build Status Join the Discord chat at https://discord.gg/NsatcWJ Join the Matrix chat at https://matrix.to/#/#gitea:matrix.org codecov Go Report Card GoDoc Release Help Contribute to Open Source

Dashboard Repository Commits History
Branches Issues Pull Request View
Releases Activity Wiki
Diff Organization Profile

Purpose

The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service. Using Go, this can be done with an independent binary distribution across all platforms which Go supports, including Linux, macOS, and Windows on x86, amd64, ARM and PowerPC architectures. Want to try it before doing anything else? Do it with the online demo! This project has been forked from Gogs since 2016.11 but changed a lot.

Building

From the root of the source tree, run:

make generate all

More info: https://docs.gitea.io/en-us/install-from-source/

Using

./gitea web

NOTE: If you're interested in using our APIs, we have experimental support with documentation.

Contributing

Expected workflow is: Fork -> Patch -> Push -> Pull Request

NOTES:

  1. YOU MUST READ THE CONTRIBUTORS GUIDE BEFORE STARTING TO WORK ON A PULL REQUEST.
  2. If you have found a vulnerability in the project, please write privately to security@gitea.io. Thanks!

Further information

For more information and instructions about how to install Gitea, please look at our documentation. If you have questions that are not covered by the documentation, you can get in contact with us on our Discord server, Matrix room, or forum!

Authors

License

This project is licensed under the MIT License. See the LICENSE file for the full license text.