Commit Graph

939 Commits (a9dc9b06e4a4106ec8315fe7b2922efa440ca199)

Author SHA1 Message Date
Andrew Boyarshin 0602a44b27 Fix URL handling in the whole markdown module, improve test coverage ()
Amended with string to bool change in API SDK.

Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
Andrew Boyarshin dc8248f8a4 Markdown rendering overhaul ()
* Markdown rendering overhaul

Cleaned up and squashed commits into single one.

Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>

* Fix markdown API, add markdown module and API tests, improve code coverage

Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>
Bo-Yi Wu 3576e1ee73 fix: trim the whitespaces for the search keyword ()
Ethan Koenig 2f13d31ff0 Fix bug in repos search ()
Ethan Koenig 027591a3a5 Redirects for renamed repos ()
* Redirects for renamed repos

* Remove unused phrase from locales
Lunny Xiao 8a421b1fd7 Add units concept for modulable functions of a repository ()
* Add units concept for modulable functions of a repository

* remove unused comment codes & fix lints and tests

* remove unused comment codes

* use struct config instead of map

* fix lint

* rm wrong files

* fix tests
Bo-Yi Wu a90a215662 feat: Add search bar on user profile page. ()
Ethan Koenig 73d05a51e3 Remove unneeded database loads ()
Remove unnecessary calls to repo.GetOwner() in context handlers
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 d1b5498cc0 Use handlers for API authorization ()
Ethan Koenig 833f8b94c2 Search bar for issues/pulls ()
Bwko 7e401b9e39 Fix crash caused by ()
Ethan Koenig 74bbec3bf9 Fix permission bugs in team API ()
Ethan Koenig fcf02e4961 API Endpoints for organization members ()
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 35d9378e4e Permissions bug fix for webhooks
Ethan Koenig f686a32eac API endpoints for organization teams ()
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 ()
Ethan Koenig 8a4161c723 API Endpoint for watching ()
Kim "BKC" Carlbäcker df7fa4e995 issue comment api fix ()
* ListAllInRepo & Delete Issue-Comments

* Moar data in issue-comments
Denis Denisov 380e32e129 Fix random string generator ()
* Remove unused custom-alphabet feature of random string generator

Fix random string generator

Random string generator should return error if it fails to read random data via crypto/rand

* Fixes variable (un)initialization mixed assign
Update test GetRandomString
Lunny Xiao b4c794058a fixed vulnerabilities ()
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 faabc76fd6 Golint fixed for modules/context
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 aadd7dcdc3 And others
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 ()
Unknwon 99c2ae7b35 use alert instead 500 for duplicated login source name
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 2cb04db526 Fix
Robin Lambertz 5a9709fa9d Add MaxRepoCreation to EditUser API ()
Unknwon 7e9b42c87d code clean up
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
Unknwon 942fd6be53 fix panic for
Unknwon 56dd430a10 refactor API routes and some work for
Unknwon cc8f5add6e fix
Unknwon 830d000667 finish wiki
Unknwon 2b10fdc4dc Wiki: UI for page new
Unknwon 144663a3cf allow admin to migrate for any user/org
Unknwon f455125d4d fix
Unknwon ff5f14431e fix
Unknwon f8ae161c74 fix
Unknwon 6f0a41b8b2 Allow local import only for admin users
Unknwon 022820103d allow forcing all private repos
Unknwon 35a65736fa add get repo API
Unknwon aff49b1c9e unified API error response
Steven Oud 6fe868a4d5 added repository remove option to api
Unknwon 7ec991326d fix migrate api
Unknwon e5b105e513 fix migrate API
Unknwon d951824ff9 able to download archive by API
Unknwon 398569f6f8 Forked repo unavailable after deleting original repo
Unknwon 65843b803b add webhook default events
Unknwon 55ddf225bb webhook APIs
Unknwon f509c59ac1 new create webhook event
Unknwon f2de4d5c04 new create repo options
Unknwon bb3b90fcd6 Readme Template
Unknwon 23f42d92c9 add webhook recent deliveries
Unknwon 2881456421 new webhooks list UI
Unknwon 1453e91f41 minor fix on API response
Unknwon 54b52de6ee minor fix on API response
Unknwon 407385db7e work on
Unknwon dea3a8c6a4 WIP: create PR - choose branch
Unknwon 9db4acc62e improve fork process
Unknwon e50982f5ec allow anonymous SSH clone
Unknwon 4cbbaefd82 : hide user e-mail when API caller isn't signed in
Lunny Xiao 673a76d638 Merge pull request from mephux/hotfix/type-fix-ValidatePassword
Hotfix/type fix validate password
Dustin Willis Webber 5a4f314cf7 fix calls that go rename missed
Unknwon 698b9e2acc Clearer error message for illegal characters
Unknwon 5169a0e025 mirror fix of
Unknwon 34102f7889 remove unused scripts and simplify migrate form definition
Unknwon 10e4b5b6c6 Merge branch 'access' of github.com:gogits/gogs into access
Unknwon 7ccab9cd09 Merge branch 'dev' of github.com:gogits/gogs into access
Conflicts:
	gogs.go
	models/models.go
	models/user.go
	templates/.VERSION
	templates/org/home.tmpl
Unknwon 059338139c routers: able to migrate repo from local path
- modules/middleware/context.go: add HandleAPI method
Peter Smit ed89b39984 Updating context and fixing permission issues
The boolean flags in the repo context have been replaced with mode and two methods

Also, the permissions have been brought more in line with https://help.github.com/articles/permission-levels-for-an-organization-repository/ , Admin Team members are able to change settings of their repositories.
Peter Smit 0d158e569b Change constants to UPPERCASE_WITH_UNDERSCORE style
Peter Smit 4e79adf6b5 Refactoring of the Access Table
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.

The result does compile, but has not been tested. It may eat your kittens.
Peter Smit 76f8904718 Introducing Collaboration Struct
Unknwon b553ea45ee modes/repo: incorrect SSH clone URL for
Unknwon ac4a10456e api: able to create repo and fix
- POST /user/repos
- POST /org/:org/repos
Unknwon bc8721fb6c Finish new UI for release page
Deiwin Sarjas 48bb0fadc2 update user api search results to include the full name
Is fully backwards compatible
Fixes 
Unknwon 37d8d3afe9 more APIs on
Unknwon a0f9197b45 GetFile api
Unknwon 340a4595dd support duoshuo mirror of gravatar
Unknwon 52d66ba6c8 , use go-gogs-client
Unknwon 9dc3c93a6a , add/edit hook
Unknwon 8eb5120fbd , API: list user repos, list repo hooks
Unknwon 83283bca4c Safe work
Unknwon 3abc41ccca Fix API broken
Unknwon 904bf1a50b Add migrate repo API
lunnyxiao c40e815763 add migrate api
Unknwon 74b31566cf Finsih add/remove repo in organization
Unknwon 8dd07c0ddd New UI merge in progress
Unknown 0f907301b7 Fix
Unknown 688ec6ecbd Fixed
Unknown c1eb4d894a Clean api code
Unknown 49dc57e336 Add /api/v1/users/search
slene 52b4ab2aa5 update with new git
Unknown 47aa53bd36 Add search commits
Unknown 8c9a0494ec Add @ # commit link detect on all markdown render
Unknown 2c073afbec Mirror fix and update