Commit Graph

4682 Commits (9fae9f0dc21e95209491c96d2e809d8a50a94a21)
 

Author SHA1 Message Date
Ethan Koenig 9fae9f0dc2 Remove redundant query in collaborator API ()
Lunny Xiao 8f1c311b90 ignore static files statstics for linguist
Andrey Nering edfa76d3f5 Merge pull request from joubertredrat/fix-cookie-name
Fix default cookie name
Joubert RedRat a0f5471e21 Fix default cookie name
Andrey Nering ba85f68ea8 Merge pull request from Bwko/NL
Added Dutch translations to the landingpage
Lunny Xiao 7802699f52 fix installation page ssh domain unavilable
Lunny Xiao ba134bd27a fix 500 when delete orgnization and resolved
Andrey Nering 59f736d54c Merge pull request from Bwko/password
At the locales replaced 6 with MIN_PASSWORD_LENGTH
Bwko 98b0688921
At the locales replaced 6 with MIN_PASSWORD_LENGTH
Bwko 6388761129
Added Dutch translations to the landingpage
Bwko 71dee6b7c0 Improve the way how branches are deleted
Delete branch from HeadRepo instead of BaseRepo
Prevent the deletion of a master branch
Show a yes/no overlay when you press the delete branch button
Sandro Santilli 71634452e1 Improve issue references in markdown ()
* Improve issue references in markdown. ()

* Fix build

* Fix lint

* Fix comment typo
Ethan Koenig 2342df183b API Endpoints for collaborators ()
Fabian Zaremba 2e7ccecfe6 Git LFS support v2 ()
* Import github.com/git-lfs/lfs-test-server as lfs module base

Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198

Removed:

Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go
.dockerignore .gitignore README.md

* Remove config, add JWT support from github.com/mgit-at/lfs-test-server

Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83

* Add LFS settings

* Add LFS meta object model

* Add LFS routes and initialization

* Import github.com/dgrijalva/jwt-go into vendor/

* Adapt LFS module: handlers, routing, meta store

* Move LFS routes to /user/repo/info/lfs/*

* Add request header checks to LFS BatchHandler / PostHandler

* Implement LFS basic authentication

* Rework JWT secret generation / load

* Implement LFS SSH token authentication with JWT

Specification: https://github.com/github/git-lfs/tree/master/docs/api

* Integrate LFS settings into install process

* Remove LFS objects when repository is deleted

Only removes objects from content store when deleted repo is the only
referencing repository

* Make LFS module stateless

Fixes bug where LFS would not work after installation without
restarting Gitea

* Change 500 'Internal Server Error' to 400 'Bad Request'

* Change sql query to xorm call

* Remove unneeded type from LFS module

* Change internal imports to code.gitea.io/gitea/

* Add Gitea authors copyright

* Change basic auth realm to "gitea-lfs"

* Add unique indexes to LFS model

* Use xorm count function in LFS check on repository delete

* Return io.ReadCloser from content store and close after usage

* Add LFS info to runWeb()

* Export LFS content store base path

* LFS file download from UI

* Work around git-lfs client issue with unauthenticated requests

Returning a dummy Authorization header for unauthenticated requests
lets git-lfs client skip asking for auth credentials
See: https://github.com/github/git-lfs/issues/1088

* Fix unauthenticated UI downloads from public repositories

* Authentication check order, Finish LFS file view logic

* Ignore LFS hooks if installed for current OS user

Fixes Gitea UI actions for repositories tracking LFS files.
Checks for minimum needed git version by parsing the semantic version
string.

* Hide LFS metafile diff from commit view, marking as binary

* Show LFS notice if file in commit view is tracked

* Add notbefore/nbf JWT claim

* Correct lint suggestions - comments for structs and functions

- Add comments to LFS model
- Function comment for GetRandomBytesAsBase64
- LFS server function comments and lint variable suggestion

* Move secret generation code out of conditional

Ensures no LFS code may run with an empty secret

* Do not hand out JWT tokens if LFS server support is disabled
Lunny Xiao 4b7594d9fa Provide button to delete merged pull request ()
* provide button to delete merged pull request

* golint fix
Philip Couling d4924d45d6 Implement sendmail ()
* Implemented sendmail. This piggybacks on existing configuration to keep the change simple

* Changed privicy of new sendSMTP and sendSendmail functions

* Fixed Lint errors

* Seperated SMTP and sendmail into their own senders

* Making new structs private as they should not be used externally now

* Added sendmail setting to ini file

* Minor code cleanup
Ethan Koenig 8de8ec027d Update sdk
Ethan Koenig 9847b38518 Organization webhook API endpoints
Bwko fa3abc22c0 Added sorting to organizations, repos & users page ()
Bwko c1e92eeb72 Simplified MinPasswordLength check ()
Bwko a345a03d99 Added sorting to the labels & milestones page ()
Bwko f27d87d93b Added minimum password length to app.ini ()
Ethan Koenig d0932ef147 Bug fixes for Issues filters ()
Correctly handle simultaneous assignee/poster filters, and conflicting assignee filters
Ethan Koenig 8a4161c723 API Endpoint for watching ()
btrepp 25b5ffb6af Enables mssql support ()
* Enables mssql support

Port of dlobs work in gogs.
Enables options in index.js
Enables MSSQL as a database option in go.
Sets ID to 0 on initial migration. Required for
MSSQL insert statements.

Signed-off-by: Beau Trepp <beautrepp@gmail.com>

* Vendors in denisenkom/go-mssqldb

Includes golang.org/x/crypto/md4
as this is required by go-msssqldb

Signed-off-by: Beau Trepp <beautrepp@gmail.com>
Thomas Boerger f2ff0ee846 Raised version to 1.1.0 ()
Thomas Boerger 6aacf4d2f0 Properly handle drone tags and release/* branches ()
Thomas Boerger 7b67347104
Fixed drone tagging
Lunny Xiao b0c6217c4d Fix broken godoc link and add arch in English README ()
* fix broken godoc link and add arch in English README

* typo
Lunny Xiao eaa7b3c3f5 update zh readme ()
Thomas Boerger 770e8310bd Simplified README and added a release badge ()
* Dropped the status from readme, it's anway always outdated

* Added version badge

* Cleaned the install instructions

* Dropped paragraphs that should be documented on the docs

* Simplified the content, refer to the website

* Dropped the logo, lets show screenshots

* Fixed TRANSLATORS link
Thomas Boerger 1e6dd98d51 Integrated an initial changelog ()
Lunny Xiao a822bba3e1 Add default values for settings ()
* add default values for settings

* more default values

* more default settings and labels resource

* mv locale to options
Ethan Koenig ec1fe1183d Fix race condition in unit test ()
Joubert RedRat dfb547099d Change screenshoots to Gitea ()
Lunny Xiao a12da66dfb resolved ()
Thomas Boerger b33078fa33 Bindata is optional and over-writable on restart ()
* Moved conf assets into options folder

* Dropped old bindata

* Started to integrate options bindata and accessors

* Do not enforce a builtin app.ini

* Replaced bindata calls with options

* Dropped bindata task from makefile, it's the generate task now

* Always embedd app.ini to provide sane config defaults

* Use sane defaults for the configuration

* Defined default value for SSH_KEYGEN_PATH

* Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini

* Fixed new paths in latest test additions

* Drop bindata with make clean task

* Set more proper default values
Lunny Xiao c21e2c4151 fix tag webhook 404 error ()
Lunny Xiao 0e1392501d Check if file is a symlink with web editor () ()
* Check if file is a symlink with web editor ()

* editor checks for symlinks

* translate file_is_a_symlink message

* credit translation author

* fix error constant
Lunny Xiao e0ecd9fd93 fix bug log.smtp receiver configure error () ()
Lunny Xiao 65b1875d2b New settings option for a custom SSH host () ()
* New settings option for a custom SSH host ()

* let default ssh listen addr empty
Lunny Xiao 11df7ebfc5 init script gentoo ()
* init script for gentoo ()

* replace Gogs to Gitea

* remove override port number

* remove port
Lunny Xiao 47a7529d96 update code.gitea.io/git ()
Lunny Xiao 0c5c34d7dd UpdateIssueUsersByMentions was calling database write operations while ()
a transaction session was in progress. MailParticipants was failing
silently because of the SQLITE_LOCKED error. Make sure failures in
MailParticipants enter the log, and pass on the transaction context.

issue: let caller pass in database context, and use it
issue_comment: obtain database context to pass to UpdateIssueMentions
issue_comment: log any error from call to MailParticipants
issue_mail: pass on database context to UpdateIssueMentions
Ethan Koenig 4c89a9c33c Bug fixes and tests for modules/base ()
Also address other TODOs
Kim "BKC" Carlbäcker df7fa4e995 issue comment api fix ()
* ListAllInRepo & Delete Issue-Comments

* Moar data in issue-comments
Alexander Lunegov d5d21b67d2 Fix string format verbs ()
Lunny Xiao c46eb3f5b3 Fix homepage docs link broken ()
* fix homepage docs link broken

* fix homepage docs links after docs updated
Lunny Xiao f8d94cb440 Update locales ()
* Update locales

* replace Gogs to Gitea
Lunny Xiao 2197d298cb Add Korean support ()
* Add Korean support

* replace Gogs to Gitea