Commits on Nov 27, 2022
-
Implement FSFE REUSE for golang files (#21840)
Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <[email protected]>
Commits on Aug 7, 2022
Commits on Jun 8, 2022
Commits on Jan 20, 2022
-
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
Commits on Dec 27, 2020
-
Dump github/gitlab/gitea repository data to a local directory and res…
…tore to gitea (#12244) * Dump github/gitlab repository data to a local directory * Fix lint * Adjust directory structure * Allow migration special units * Allow migration ignore release assets * Fix lint * Add restore repository * stage the changes * Merge * Fix lint * Update the interface * Add some restore methods * Finish restore * Add comments * Fix restore * Add a token flag * Fix bug * Fix test * Fix test * Fix bug * Fix bug * Fix lint * Fix restore * refactor downloader * fmt * Fix bug isEnd detection on getIssues * Refactor maxPerPage * Remove unused codes * Remove unused codes * Fix bug * Fix restore * Fix dump * Uploader should not depend downloader * use release attachment name but not id * Fix restore bug * Fix lint * Fix restore bug * Add a method of DownloadFunc for base.Release to make uploader not depend on downloader * fix Release yml marshal * Fix trace information * Fix bug when dump & restore * Save relative path on yml file * Fix bug * Use relative path * Update docs * Use git service string but not int * Recognize clone addr to service type
Commits on Nov 17, 2020
-
HTTP cache rework and enable caching for storage assets (#13569)
This enabled HTTP time-based cache for storage assets, primarily avatars. I have not observed If-Modified-Since from browsers during tests but I guess it's good to support regardless. It introduces a new generic httpcache module that can handle both time-based and etag-based caching. Additionally, manifest.json and robots.txt are now also cachable.
Commits on Nov 7, 2020
-
Signed-off-by: jolheiser <[email protected]>
Commits on Oct 11, 2020
-
Update golangci-lint to version 1.31.0 (#13102)
This PR updates golangci-lint to the latest version 1.31.0. The upgrade introduced a new check for which I've fixed or disabled most cases. Signed-off-by: kolaente <[email protected]>
Commits on Aug 18, 2020
-
Add a storage layer for attachments (#11387)
* Add a storage layer for attachments * Fix some bug * fix test * Fix copyright head and lint * Fix bug * Add setting for minio and flags for migrate-storage * Add documents * fix lint * Add test for minio store type on attachments * fix test * fix test * Apply suggestions from code review Co-authored-by: guillep2k <[email protected]> * Add warning when storage migrated successfully * Fix drone * fix test * rebase * Fix test * display the error on console * Move minio test to amd64 since minio docker don't support arm64 * refactor the codes * add trace * Fix test * remove log on xorm * Fi download bug * Add a storage layer for attachments * Add setting for minio and flags for migrate-storage * fix lint * Add test for minio store type on attachments * Apply suggestions from code review Co-authored-by: guillep2k <[email protected]> * Fix drone * fix test * Fix test * display the error on console * Move minio test to amd64 since minio docker don't support arm64 * refactor the codes * add trace * Fix test * Add URL function to serve attachments directly from S3/Minio * Add ability to enable/disable redirection in attachment configuration * Fix typo * Add a storage layer for attachments * Add setting for minio and flags for migrate-storage * fix lint * Add test for minio store type on attachments * Apply suggestions from code review Co-authored-by: guillep2k <[email protected]> * Fix drone * fix test * Fix test * display the error on console * Move minio test to amd64 since minio docker don't support arm64 * don't change unrelated files * Fix lint * Fix build * update go.mod and go.sum * Use github.com/minio/minio-go/v6 * Remove unused function * Upgrade minio to v7 and some other improvements * fix lint * Fix go mod Co-authored-by: guillep2k <[email protected]> Co-authored-by: Tyler <[email protected]>
Commits on Apr 5, 2020
-
Prevent support libraries from compiling into Gitea (#10964)
* Prevent support libraries from compiling into Gitea * Fix tag position * Fix golangci-lint errors * Refactor to make it work Co-authored-by: Guillermo Prandi <[email protected]>
Commits on Apr 3, 2020
-
Rename scripts to build and add revive command as a new build tool co…
…mmand (#10942) Co-authored-by: techknowlogick <[email protected]>
Commits on Feb 2, 2020
-
Implement "embedded" command to extract static resources (#9982)
* draft * Implement extract command * Fix nits and force args on extract * Add !bindata stub, support Windows, fmt * fix vendored flag * Remove leading slash for matching * Add docs * Fix typos * Add embedded view command Co-authored-by: zeripath <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
Commits on Jan 29, 2020
-
Queue: Make WorkerPools and Queues flushable (#10001)
* Make WorkerPools and Queues flushable Adds Flush methods to Queues and the WorkerPool Further abstracts the WorkerPool Adds a final step to Flush the queues in the defer from PrintCurrentTest Fixes an issue with Settings inheritance in queues Signed-off-by: Andrew Thornton <[email protected]> * Change to for loop * Add IsEmpty and begin just making the queues composed WorkerPools * subsume workerpool into the queues and create a flushable interface * Add manager command * Move flushall to queue.Manager and add to testlogger * As per @guillep2k * as per @guillep2k * Just make queues all implement flushable and clean up the wrapped queue flushes * cope with no timeout Co-authored-by: Lauris BH <[email protected]>
Commits on Jan 25, 2020
-
chore: update default version (#9916)
* chore: update default version * use develop Co-Authored-By: 6543 <[email protected]> * Update main.go Co-Authored-By: guillep2k <[email protected]> Co-authored-by: 6543 <[email protected]> Co-authored-by: guillep2k <[email protected]>
Commits on Jan 11, 2020
-
Add a new command doctor to check if some wrong configurations on git…
…ea instance (#9095) * add doctor * Add a new command doctor to check if some wrong configurations on gitea instance * fix import * use regex match authorized_keys on doctor * Add documentation
Commits on Jun 12, 2019
Commits on Jun 8, 2019
-
Add command to convert mysql database from utf8 to utf8mb4 (#7144)
* add command to convert mysql database from utf8 to utf8mb4 * Update cmd/convert.go Co-Authored-By: John Olheiser <[email protected]> * Update cmd/convert.go Co-Authored-By: John Olheiser <[email protected]> * Update cmd/convert.go Co-Authored-By: John Olheiser <[email protected]> * Update models/convert.go Co-Authored-By: John Olheiser <[email protected]> * Update models/convert.go Co-Authored-By: John Olheiser <[email protected]> * Update cmd/convert.go Co-Authored-By: John Olheiser <[email protected]> * Update cmd/convert.go Co-Authored-By: John Olheiser <[email protected]>
Commits on May 14, 2019
-
Add work path CLI option (#6922)
Makes it possible to set the work path as a CLI option instead of relying on environment variables which are somewhat opaque
Commits on Apr 29, 2019
Commits on Apr 2, 2019
-
-
Better logging (#6038) (#6095)
* Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <[email protected]> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <[email protected]> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <[email protected]> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <[email protected]> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <[email protected]> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
Commits on Jan 24, 2019
-
Include Go toolchain to --version (#5830)
* Include Go version * fix import order
Commits on Nov 1, 2018
-
-
fix: Accept web-command cli flags if web-command is commited (#5200)
* fix: Accept web-command cli flags if web-command is commited * Added flags of default cmd CmdWeb to app-wide flags * If command *is* specified app-wide flags are ignored Resolves: #5065 Signed-off-by: Berengar W. Lehr <[email protected]> * Removed style breaking newline * broken windows need to be fixed * provides requested change
Commits on Oct 31, 2018
Commits on Feb 18, 2018
-
Implements generator cli for secrets (#3531)
Signed-off-by: Codruț Constantin Gușoi <[email protected]>
Commits on Feb 3, 2018
Commits on Jan 10, 2018
Commits on Nov 27, 2017
-
Update hard-coded version to 1.4.0-dev (#2988)
Now that 1.3.0 is out the new target is 1.4.0
Commits on Sep 21, 2017
Commits on Feb 28, 2017
-
Fix for #828: Embed build tags (#1051)
* Fix for #828 Add build tags to ldflags and print in version output Signed-off-by: Jonas Östanbäck <[email protected]> * Reworked formatBuiltWith function Signed-off-by: Jonas Östanbäck <[email protected]> * Add tags to version information in admin panel Signed-off-by: Jonas Östanbäck <[email protected]> * Added new variable for use on admin page. Signed-off-by: Jonas Östanbäck <[email protected]> * Fixed incorrect indentation
Commits on Feb 25, 2017
-
Move push update to post-receive and protected branch check to pre-re…
…ceive (#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