Commit Graph

118 Commits (b6c14f8b21a277576a882061fb772a76e3d4511b)

Author SHA1 Message Date
Robin Lambertz b6c14f8b21 Add AddCollaborator API Endpoint ()
* Add AddCollaborator API Endpoint

* Add optional Permission to AddCollaborator endpoint

* Use APIContext
lstahlman 89f71b44f7 Add committer information to API and Webhooks. Also fixes ()
Unknwon db3d393576 routers/api: rename handlers to be unexported
Unknwon 2f105f3979 completely disable builtin issue tracker when enable external tracker
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
Richard Mahn 0402c803c6 Added Full Name to CreateUser api call ()
Unknwon e74630ae3b add pagination for repositories
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon 46e96c008c Use struct for UI settings
Unknwon e63b2881b1 api: fix panic if anonymous user request admin API
Add sign in check before check user account level
Unknwon 5aa2bf86f4 Update locales and .gopmfile
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
lstahlman 846bf2ca9f Add timestamps to repository api response ()
Additional properties: created_at, updated_at
lstahlman 12cb84b97f Extend the API to include more repository properties ()
Adds description, stars_count, forks_count, watchers_count and
open_issues_count.
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 d27ca649c7 api/admin: add/remove organization team repository
Unknwon b1d41cfa60 add admin APIs to add/remove a user from teams
Unknwon 5e11341232 Fix status code
Unknwon 90e93b1f3a Change list teams API to non-admin specific
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 d5a3021a7d Make markdown as an independent module
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 4331d1d2a0 require token for list my orgs
Unknwon 03427fb005 fix
Unknwon a49af93faf APIs: Users Followers
- User profile un/follow
- List user's followers/following
Unknwon 1c9dd11ba7 API: admin create repo
Unknwon 9cd16c5b12 add organization APIs
Unknwon b117befc2b add user email APIs
Unknwon 19423957b1 rename import path
Unknwon 3d5d61778a disable password change for non-local users
Unknwon 9a2e43bff2 move out git module and send push hook
Unknwon 120cd4e471 Better mirror repo management
Unknwon ca8ce793d1 Ability to delete repo from admin panel
Unknwon 978dc00305 APIs: admin users
Unknwon e538ff2770 fix and fix