Commit Graph

140 Commits (188fe6c301f9c44d569b75cb339d6a6b3f6e03ad)

Author SHA1 Message Date
Andrey Nering 8917f47347 Fix org repos not showing on dashboard search
Antoine GIRARD 3edb0c5894 Generate swagger json ()
- Generate swagger.json into public/
- Add swagger-ui auto-installation
- Add footer link to local swagger-ui
- Add /swagger url for using app url.
- Fix Swagger-UI version via git tag
Lunny Xiao 0308d44a16 fix and improve integration test ()
Kim "BKC" Carlbäcker 4bea219128 Status-API ()
Jonas f995bcc87a Add repo mirror sync API endpoint ()
* API: Add repo mirror sync

* Correct error message

* Change http status to 200
Ethan Koenig ec0ae5d50c Refactor and fix incorrect comment ()
awwalker c0f99e8229 API: support /users/:username/repos
clean up

fix arguments

remove repeated token

give admins listing rights
Lunny Xiao a5ac4c64fc refactor api issues load attributes for better performance ()
Bo-Yi Wu 3576e1ee73 fix: trim the whitespaces for the search keyword ()
Ethan Koenig 2f13d31ff0 Fix bug in repos search ()
Bo-Yi Wu a90a215662 feat: Add search bar on user profile page. ()
Lunny Xiao 081485ecfd add milestone changed traker on issue view ()
Ethan Koenig 10644d6dd7 Bug fixes and unit tests for models/issue_label ()
Lunny Xiao f94869d2d1 Track labels changed on issue view & resolved ()
* track labels changed on issue view & resolved 

* add missing head comment & sort & fix refresh
Ethan Koenig 833f8b94c2 Search bar for issues/pulls ()
Philip Couling 64375d875b Attach to release ()
* Moved attachaments POST url from /issues/attachments to /attachments

* Implemented attachment upload on release page

* Implemented downloading attachments on the release page

* Added zip and gzip files to default allowed attachments

* Implemented uploading attachments on edit release

* Renamed UploadIssueAttachment to UploadAttachment
Ethan Koenig 27fcf8d30a Bug fixes for webhook API ()
Ethan Koenig 8422ab542c API endpoint for subscribers ()
Ethan Koenig 1a7fc53c98 API endpoint for stargazers ()
Lunny Xiao 51021585a7 build failed by deleting release by API ()
Ethan Koenig 0c301f7b5c Release API endpoints
Ethan Koenig b75450ad36 API endpoints for forks ()
Ethan Koenig 6f4ba6884c Repo permission bug fixes ()
Ethan Koenig 9fae9f0dc2 Remove redundant query in collaborator API ()
Ethan Koenig 2342df183b API Endpoints for collaborators ()
Ethan Koenig 9847b38518 Organization webhook API endpoints
Bwko a345a03d99 Added sorting to the labels & milestones page ()
Kim "BKC" Carlbäcker df7fa4e995 issue comment api fix ()
* ListAllInRepo & Delete Issue-Comments

* Moar data in issue-comments
Ethan Koenig 7b5b5178e1 Bug fix for edit-hook API endpoint
Ethan Koenig 04b9a7e7a2 Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
Kim "BKC" Carlbäcker 0f05470cb8 [API] Pull Requests ()
Kim "BKC" Carlbäcker e8e0539b45 Linting
Kim "BKC" Carlbäcker e6cfccdd40 GitHub API Compliance (& linting)
Kim "BKC" Carlbäcker 71bb6df75a Add undocumented endpoint for /repositories/:id
Kim "BKC" Carlbäcker 42ec5ce740 Fix breakage from vendor-update
Lunny Xiao ec87a75c00 golint fixed for modules/auth
Lunny Xiao 94da472717 Golint fixed for modules/setting ()
* golint fixed for modules/setting

* typo fixed and renamed UNIXSOCKET to UnixSocket
Lunny Xiao 3917ed45de golint fixed for routers ()
Ethan Koenig 0834e492c0 API endpoints for stars
Sandro Santilli a1c5f02444 Fix import path of go-sdk ()
From code.gitea.io/go-sdk/gitea
  To code.gitea.io/sdk/gitea
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io ()
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
Sandro Santilli 60c82a8780 More...
Sandro Santilli f388661bda ACCESS_MODE_* -> AccessMode*
Sandro Santilli 80eea77953 Use MixedCase constant names
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
Thomas Boerger 4c6c16f358
Replaced go-gogs-client with go-sdk imports
Sandro Santilli 6e4252dad4 Replace gogits/git-module dependency with go-gitea/git ()
* Replace gogits/git-module dependency with go-gitea/git

Fixes 

* Remove git alias for git module import (not needed)
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Andrey Nering 9ac46fb983 Support Editorconfig on web editor
Unknwon 28cf0e6aaa code quality improvement
Unknwon 6b98d58906 code cleanup
Iwan Budi Kusnanto 8dca9f95fa issues comment API : list, create, edit ()
add `since` query string support to list issue comment
Unknwon f8a48ffaad Web editor: improve code quality
Kurt Madel 67fb0fe6a5 added support to set pull_request event from api ()
Unknwon 0b273ac4d5 code cleanup
lstahlman 84b56c3c53 Additional API support for milestones ()
Kim Carlbäcker 7c5710d31f Issues can be closed via API () ()
* Issues can be closed via API

* Error-checking is nice xD

* EditIssueOption.Status => State

* Use const instead of string-literal
Unknwon 4042d1f0c3 models/issue: improve quality and performance of NewIssue function
Unknwon dccb0c15b9 Replace convert.To with APIFormat calls
Unknwon 3f7f4852ef fully support of webhooks for pull request
Unknwon 7e9b42c87d code clean up
Robin Lambertz b6c14f8b21 Add AddCollaborator API Endpoint ()
* Add AddCollaborator API Endpoint

* Add optional Permission to AddCollaborator endpoint

* Use APIContext
Unknwon e7fd65f0cf better code structure and batch minor improvements
lstahlman 2eeb0ec9b0 Additional API support for labels ()
* Add API support for labels.

* Error handling for adding/replacing multiple issue labels

* Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions

* Additional code cleanup
Unknwon e74630ae3b add pagination for repositories
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon 46e96c008c Use struct for UI settings
Unknwon 60110adc06 models/webhook: restrict deletion to be explicitly with repo and org ID
Dennis Chen 5ff2dfb23e api: delete repository webhooks ()
Allows the deletion of a webhook from a repository at the
/:user/:repo/hooks/:id endpoint.

Solves drone/drone issue .

Signed-off-by: Dennis Chen <barracks510@gmail.com>
Unknwon 3d93532c87 fix can't get webhook detail of organization
Unknwon f1b8d52eb3 fix no mail notification when issue is closed/reopened
Unknwon d62ab49978 retrieve webhook with repo_id
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
Unknwon 4b25bdfbc4 support correct page size and link header
Unknwon e9ae926e04 fix wrong closed issue count when create closed issue via API
Add start count corrector for Repository.NumClosedIssues
Unknwon bf5faf76eb able to set issue state to closed when create
Unknwon e6f927f61a api: admin list and create team under organization
Unknwon 9bd9ad4205 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to 
Unknwon dd6faf7f9b Convert all API handers to use *context.APIContext
Unknwon 2bf8494332 finish user and repository search
Both are possible on explore and admin panel
Unknwon 514382e2eb Rename module: middleware -> context
Unknwon 995487e822 Minor fix for
Antoine GIRARD b7b30cd85e Corrections following recommendations
Antoine GIRARD 81e5722bcc Handling error for the API request and add commments
[ci skip]
Antoine GIRARD 303d091ea9 Update link for documentation (Temporary https://gist.github.com/sapk/df64347ff218baf4a277)
[ci skip]
Antoine GIRARD c11c3b6c11 Near ready
Unknwon 1c9dd11ba7 API: admin create repo
Unknwon 9cd16c5b12 add organization APIs
Unknwon 19423957b1 rename import path
Unknwon 9a2e43bff2 move out git module and send push hook
Unknwon 120cd4e471 Better mirror repo management
Unknwon 56dd430a10 refactor API routes and some work for