Commit Graph

5130 Commits (caed86fc6ef87d11035889a11b8949c839e19d52)
 

Author SHA1 Message Date
Andrey Nering 946f3078d3 Add "mirror" field to repo API
Andrey Nering d4a7040c7f Merge pull request from andrew-boyarshin/autolink
Fix span wrapping all the things
Jonas 9ad3a07989 Fix for : Corrected process ID placeholder to PID from Pid ()
Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
Sandro Santilli 44827698e2 Reword the reinit_missing_repos message to be clear about what it does ()
I was confused by current wording, which seemed to imply that
*records* would be initialized, while instead the function initializes
the *git repositories* instead, where missing but referenced.
Bo-Yi Wu f1412142e0 refactor: repo counts for SearchRepositoryByName func ()
Lunny Xiao c0ea3963be fix delete repo will hang on postgres ()
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 817710dd47
Fix span wrapping all the things
Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
Lunny Xiao 12e71e5706 Removed footer copyright year ()
* change footer copyright year from 2016 to 2017

* add 2016 copyright back

* remove the copyright year
Ethan Koenig 76057105ca Remove unnecessary loads in org_team ()
Ethan Koenig f1ab906c51 Unit tests for models/repo_collaboration ()
puffybsd 8de8e11487 Fixes 1019, install page SMTP user is required to ()
to be an email address.

Signed-off-by: P.B. <puffybsd@yahoo.com>
Dan Morrill 832477b1bc Tweak docker target to work by default. ()
Fix for : adds "bindata" to tags by default, as without this the
resulting docker image won't start, as it doesn't contain locale files.
Verified to work even if you specify TAGS="bindata" such that it appears
twice.
bit 490d3771f7 s/fields/terms ()
use terms instead of fields as variable name to avoid confusion: NewPhraseQuery(terms []string, field string)
Lunny Xiao d077fd084a added missing new struct sync ()
Lunny Xiao 0e6b9ea786 Take back control of hooks ()
* git: delegate all server-side Git hooks ()

* create hooks directories

* take control hooks back

* fix lint

* bug fixed and minor changes

* fix imports style

* fix migration scripts
Ethan Koenig 4f3880ff15 Bug fixes and unit tests for org_team ()
Andrey Nering d181113b82 Merge pull request from ethantkoenig/fix_lint
Fix lint errors
Ethan Koenig ec3a696e2d Fix lint errors
Lunny Xiao 1f7837d6d6 Refactor for issues loadattributes of a repository ()
* refactor for issues loadattributes of a repository

* refactors
Bo-Yi Wu 29c6f32a3b Fix some links. ()
Bo-Yi Wu 83b6d03231 fix: Wrong repo list on Explore page if user already loggin. ()
* fix: Wrong repo list on Explore page if user already loggin.

* fix: code readable.

* fix: declare variable
Lunny Xiao d6748284bd fix panic when push but the only log mode console is disabled by serv and update commands ()
Willem van Dreumel 01d957677f Oauth2 consumer ()
* 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)
Denis Denisov fd941db246 Protected branches system ()
* 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
Thomas Boerger fe5ff8e4b2 Added 1.0.2 to changelog ()
Lunny Xiao 70ae6d197b disable console output xorm log on ssh ()
Christoph König ffde33bdfa Fix typo ()
Willem van Dreumel 5f234ce2a5 add missing copyright header ()
Lunny Xiao c5f8b96dda update xorm for fixing bug on processor BeforeSet and AfterSet when Find a map ()
Lunny Xiao 04fdeb9d8d Make Xorm log configurable ()
* make xorm log configable

* bug fixed for other sub commands except web

* rebase and fix xorm log

* bug fix for TrimSpace
Andrew Boyarshin d4b752def9 Fix table headers ()
Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
Lunny Xiao c2c27891c9 add release cycle to contributing ()
Lunny Xiao b8f70a27a5 Security: fix XSS attack on alert ()
Lunny Xiao 6076c95dd1 Security: fix XSS attack on milestone ()
Reported by Miguel Ángel Jimeno.
Lunny Xiao dbe6d2ff8e fix docker link on install page ()
Bo-Yi Wu 252adc912d refactor: update debian script. ()
Ethan Koenig be48b32e63 Unit tests for repo watching ()
Lunny Xiao 847527fd6d Fix all the bugs in issues and pulls on dashboard ()
* fix all the bugs in issues and pulls on dashboard

* small fix and refactor

* add method getRepoIDs for IssueList
Kim "BKC" Carlbäcker 669dad71f8 Add Screenshot-secion to IssueTemplate.md ()
For `UI`-bugs we usually require a Screenshot to debug it 😉
Ethan Koenig 140967f002 Unit tests for repo redirects ()
Bo-Yi Wu 4c12e2a4b9 fix: fill in ssh key title on setting of repo ()
* fix: fill in ssh key title on setting of repo

* fix: Don't overwrite ssh key title if exist.
Lunny Xiao 7fd14bf7bd optimization for team get repos ()
Lunny Xiao 46320f9630 refactor notificationsForUser since xorm In support slice of customerize type ()
Lunny Xiao 0642cb330c Small opitimization for getUserTeams ()
* Small opitimization for getUserTeams

* more compact
Unknwon 134f3e6e09 Security: prevent XSS attach on wiki page
Reported by Miguel Ángel Jimeno.
Bo-Yi Wu 43c94d0a6c test: Add testing for GetUserFork function ()
Bo-Yi Wu a31f64d639 fix: 500 error on /explore/repos page. ()
Bo-Yi Wu 9d2b830275 refactor: small optimize for sql query ()
* refactor: small optimize for sql query

* fix: get owner name if Searcher is not nil or user star page.
Lunny Xiao 837d346090 fix some older Gogs upgrade to Gitea ()