1604 Commits (0afab876311a35c56a23b1f7903f9247d5673c8a)

Author SHA1 Message Date
Lunny Xiao ef13bbaf7d Don't rewrite non-gitea public keys (#906)
* don't rewrite non-gitea public keys

* add comment for public key
7 years ago
Lunny Xiao 9cb08a3cf5 fix wrong num of user repos because of duplicated click delete button & performance optimization (#1092) 7 years ago
Ethan Koenig d21d5fd736 Remove unnecessary loads in org_team (#1090) 7 years ago
Ethan Koenig 22f7aa6e9c LableIDs -> LabelIDs (#1088) 7 years ago
Bo-Yi Wu e83c8afc56 refactor: move SearchRepositoryByName testing. (#1083) 7 years ago
Lunny Xiao c2eef171ff fix some typos (#1082) 7 years ago
Ethan Koenig 4b286f282a Consistency checks for action unit tests (#1079) 7 years ago
Ethan Koenig cf80e19157 Optimize and unit test Issue_ReplaceLabels (#1080) 7 years ago
Ethan Koenig 136e6beb0f Fix unused Engine bugs (#1064) 7 years ago
Lunny Xiao e4134debd1 Remove unused vars (#1063)
* remove unused vars

* remove unused comment
7 years ago
Lunny Xiao 32faec00e6 move all repo list functions as a standalone file (#1061) 7 years ago
Lunny Xiao d4e38cf129 fix setMerged for remove unnecessary db connection (#1067) 7 years ago
Lunny Xiao 522f194983 Bug fixed for org avatar caused by #1049 (#1070)
* bug fixed for org avatar caused by #1049

* use isfile only
7 years ago
Bo-Yi Wu 95574a3640 fix: Admin can see all private repositories on Explore page. (#1026)
* fix: Admin can see all private repositories on Explore page.

* refactor: fix session
7 years ago
Sandro Santilli bf24099114 Allow migrating installations with no local avatars (#1056) 7 years ago
Lunny Xiao 80f900ebae Fix avatar enumable (#1049)
* fix avatar enumable

* fix import style
7 years ago
Lunny Xiao 19b3c45ca7 fix 500 when use a duplicat email instead of giving an error tip (#1040) 7 years ago
Lunny Xiao cd1821a7e2 Move push update to post-receive and protected branch check to pre-receive (#1030)
* move all push update to git hook post-receive and protected branch check to git hook pre-receive

* add SSH_ORIGINAL_COMMAND check back

* remove all unused codes

* fix the import
7 years ago
Lunny Xiao e8e56da9ac fix #13 (#1042) 7 years ago
Andrey Nering ddb0287bf6 Merge pull request #970 from andreynering/api-repo-mirror
Add "mirror" field to repo API
7 years ago
Lunny Xiao fc4f7e82f9 refactor for searching user (#1038)
* refactor for searching user

* fix like bug

* better format for builder cond
7 years ago
Andrey Nering 946f3078d3 Add "mirror" field to repo API 7 years ago
Bo-Yi Wu f1412142e0 refactor: repo counts for SearchRepositoryByName func (#1045) 7 years ago
Lunny Xiao c0ea3963be fix delete repo will hang on postgres (#1044) 7 years ago
Andrew Boyarshin 0602a44b27 Fix URL handling in the whole markdown module, improve test coverage (#1027)
Amended with string to bool change in API SDK.

Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
7 years ago
Ethan Koenig 76057105ca Remove unnecessary loads in org_team (#1035) 7 years ago
Ethan Koenig f1ab906c51 Unit tests for models/repo_collaboration (#1032) 7 years ago
bit 490d3771f7 s/fields/terms (#1031)
use terms instead of fields as variable name to avoid confusion: NewPhraseQuery(terms []string, field string)
7 years ago
Lunny Xiao d077fd084a added missing new struct sync (#1021) 7 years ago
Lunny Xiao 0e6b9ea786 Take back control of hooks (#1006)
* git: delegate all server-side Git hooks (#1623)

* create hooks directories

* take control hooks back

* fix lint

* bug fixed and minor changes

* fix imports style

* fix migration scripts
7 years ago
Ethan Koenig 4f3880ff15 Bug fixes and unit tests for org_team (#1016) 7 years ago
Ethan Koenig ec3a696e2d Fix lint errors 7 years ago
Lunny Xiao 1f7837d6d6 Refactor for issues loadattributes of a repository (#971)
* refactor for issues loadattributes of a repository

* refactors
7 years ago
Bo-Yi Wu 83b6d03231 fix: Wrong repo list on Explore page if user already loggin. (#1009)
* fix: Wrong repo list on Explore page if user already loggin.

* fix: code readable.

* fix: declare variable
7 years ago
Willem van Dreumel 01d957677f Oauth2 consumer (#679)
* initial stuff for oauth2 login, fails on:
* login button on the signIn page to start the OAuth2 flow and a callback for each provider
Only GitHub is implemented for now
* show login button only when the OAuth2 consumer is configured (and activated)
* create macaron group for oauth2 urls
* prevent net/http in modules (other then oauth2)
* use a new data sessions oauth2 folder for storing the oauth2 session data
* add missing 2FA when this is enabled on the user
* add password option for OAuth2 user , for use with git over http and login to the GUI
* add tip for registering a GitHub OAuth application
* at startup of Gitea register all configured providers and also on adding/deleting of new providers
* custom handling of errors in oauth2 request init + show better tip
* add ExternalLoginUser model and migration script to add it to database
* link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed
* remove the linked external account from the user his settings
* if user is unknown we allow him to register a new account or link it to some existing account
* sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers)

* from gorilla/sessions docs:
"Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!"
(we're using gorilla/sessions for storing oauth2 sessions)

* use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
7 years ago
Denis Denisov fd941db246 Protected branches system (#339)
* Protected branches system

* Moved default branch to branches section (`:org/:reponame/settings/branches`).
* Initial support Protected Branch.
  - Admin does not restrict
  - Owner not to limit
  - To write permission restrictions

* reformat tmpl

* finished the UI and add/delete protected branch response

* remove unused comment

* indent all the template files and remove ru translations since we use crowdin

* fix the push bug
7 years ago
Willem van Dreumel 5f234ce2a5 add missing copyright header (#992) 7 years ago
Lunny Xiao 04fdeb9d8d Make Xorm log configurable (#174)
* make xorm log configable

* bug fixed for other sub commands except web

* rebase and fix xorm log

* bug fix for TrimSpace
7 years ago
Ethan Koenig be48b32e63 Unit tests for repo watching (#963) 7 years ago
Lunny Xiao 847527fd6d Fix all the bugs in issues and pulls on dashboard (#943)
* fix all the bugs in issues and pulls on dashboard

* small fix and refactor

* add method getRepoIDs for IssueList
7 years ago
Ethan Koenig 140967f002 Unit tests for repo redirects (#961) 7 years ago
Lunny Xiao 7fd14bf7bd optimization for team get repos (#953) 7 years ago
Lunny Xiao 46320f9630 refactor notificationsForUser since xorm In support slice of customerize type (#956) 7 years ago
Lunny Xiao 0642cb330c Small opitimization for getUserTeams (#954)
* Small opitimization for getUserTeams

* more compact
7 years ago
Bo-Yi Wu 43c94d0a6c test: Add testing for GetUserFork function (#944) 7 years ago
Bo-Yi Wu a31f64d639 fix: 500 error on /explore/repos page. (#946) 7 years ago
Bo-Yi Wu 9d2b830275 refactor: small optimize for sql query (#940)
* refactor: small optimize for sql query

* fix: get owner name if Searcher is not nil or user star page.
7 years ago
Lunny Xiao 837d346090 fix some older Gogs upgrade to Gitea (#929) 7 years ago
Lunny Xiao 9c645b54dc bug fixed on issues and pulls 7 years ago
Lunny Xiao 4cfde304df bug fixed for my repository (#933) 7 years ago