summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Restrict repository indexing by glob match (#7767)guillep2k2019-09-1138-17/+920
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Restrict repository indexing by file extension * Use REPO_EXTENSIONS_LIST_INCLUDE instead of REPO_EXTENSIONS_LIST_EXCLUDE and have a more flexible extension pattern * Corrected to pass lint gosimple * Add wildcard support to REPO_INDEXER_EXTENSIONS * This reverts commit 72a650c8e42f4abf59d5df7cd5dc27b451494cc6. * Add wildcard support to REPO_INDEXER_EXTENSIONS (no make vendor) * Simplify isIndexable() for better clarity * Add gobwas/glob to vendors * manually set appengine new release * Implement better REPO_INDEXER_INCLUDE and REPO_INDEXER_EXCLUDE * Add unit and integration tests * Update app.ini.sample and reword config-cheat-sheet * Add doc page and correct app.ini.sample * Some polish on the doc * Simplify code as suggested by @lafriks
* Update third-party-tools.en-us.md (#8148)techknowlogick2019-09-111-0/+3
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-102-0/+8
|
* Make link last commit massages in repository home page and commit tables (#8006)jaqra2019-09-107-38/+154
| | | | | | | | | | | | | | | | | | | | | * Make link last commit massages in repository home page and commit tables * Use RenderCommitMessageLink instead surround with a * deleted __debug_bin file * Exclude email to link from latest commit title * Exclude email processor from commit table Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * Add class parameter to a html element creator functions. Make links underline dashed that are not commit * fix tests * Show dashed underline when also not hovered
* Fix webhooks to use proxy from environment (#8116)Lauris BH2019-09-101-0/+1
|
* Implement webhook branch filter (#7791)WGH2019-09-0952-19/+3168
| | | | | | | | * Fix validate() function to handle errors in embedded anon structs * Implement webhook branch filter See #2025, #3998.
* Add option to initialize repository with labels (#6061)John Olheiser2019-09-0811-16/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add optional label sets on repo creation * Fix CRLF * Instead of hardcoding default, make it the helper * Move label set init out of repo init Add a new error for the router Combine router label init with repo creation label init Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add issue labels to Swagger for repo creation Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update models/issue_label.go Co-Authored-By: Lauris BH <lauris@nix.lv> * Update models/issue_label.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-071-1/+4
|
* Add reviewrs as participants (#8121)guillep2k2019-09-072-12/+12
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-072-68/+1820
|
* 1148: Take up the full width when viewing the diff in split view. (#8114)pmdematagoda2019-09-071-1/+1
| | | This replicates how the commit view works in split view.
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-062-3/+61
|
* Changelog for 1.9.3 (#8118)guillep2k2019-09-061-0/+15
|
* Fix Go 1.13 private repository go get issue (#8112)Lunny Xiao2019-09-062-3/+20
| | | | | | | | | | * Fix Go 1.13 invalid import path creation Signed-off-by: Rutger Broekhoff <rutger@viasalix.nl> * Apply suggested changes from #8100 Signed-off-by: Rutger Broekhoff <rutger@viasalix.nl>
* Move git diff codes from models to services/gitdiff (#7889)Lunny Xiao2019-09-0515-111/+164
| | | | | | | | | | * move git diff codes from models to services/gitdiff * fix template * fix test * fix template
* feat: highlight issue references with : (#8101)Rinat2019-09-054-3/+11
| | | | | | | | | | | * feat: highlight issue references with : e.g. #1287: my commit msg e.g. ABC-1234: my commit msg * ref: update model regex to consistent with issueNumericPattern * test: check highlight issue with : in commits messages
* Added AppVeyor to the list of CI/CD working with Gitea (#8104)Feodor Fitsner2019-09-051-0/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-054-4/+3
|
* Make AllowedUsers configurable in sshd_config (#8094)jpellegrini2019-09-052-3/+1
| | | | | | | | docker/root/usr/bin/entrypoint already allows for the specification of USER, USER_UID, USER_GID. But since AllowedUsers is hardcoded in sshd_config, one cannot log in as a user different ftom git. This change substitutes ${USER} for git in the sshd_config template. Signed-off-by: Jeronimo Pellegrini <j_p@aleph0.info>
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-054-4/+4
|
* Display description of 'make this repo private' as help text, not as tooltip ↵micw2019-09-056-6/+7
| | | | (#8097)
* Fix broken link (#8091)nu_no2019-09-051-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-041-0/+1
|
* Use vendored go-swagger (#8087)Antoine GIRARD2019-09-04686-17/+143379
| | | | | | | | | | | | | | * Use vendored go-swagger * vendor go-swagger * revert un wanteed change * remove un-needed GO111MODULE * Update Makefile Co-Authored-By: techknowlogick <matti@mdranta.net>
* Strict name matching for Repository.GetTagID() (#8074)guillep2k2019-09-0433-11/+1801
| | | | | | | | * Strict name matching for Repository.GetTagID() * Perform make swagger-check swagger-validate vendor * Add test for GetTagID()
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-032-0/+9
|
* Fixes deformed emoji in pull request reviews (#8047)Mario Lubenka2019-09-032-0/+4
| | | | | | | | | | * Fixes deformed emoji in pull request comments or reviews Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Generate css via command Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-032-0/+15
|
* Add API endpoint for accessing repo topics (#7963)David Svantesson2019-09-0315-100/+849
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create API endpoints for repo topics. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Generate swagger Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add documentation to functions Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Grammar fix Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix function comment Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Can't use FindTopics when looking for a single repo topic, as it doesnt use exact match Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add PUT ​/repos​/{owner}​/{repo}​/topics and remove GET ​/repos​/{owner}​/{repo}​/topics * Ignore if topic is sent twice in same request, refactoring. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix topic dropdown with api changes. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Style fix Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Update API documentation Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Better way to handle duplicate topics in slice Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make response element TopicName an array of strings, instead of using an array of TopicName Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test cases for API Repo Topics. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix format of tests Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix comments Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix unit tests after adding some more topics to the test fixture. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Update models/topic.go Limit multiple if else if ... Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * Engine as first parameter in function Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * Replace magic numbers with http status code constants. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix variable scope Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Test one read with login and one with token Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add some more tests Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Apply suggestions from code review Use empty struct for efficiency Co-Authored-By: Lauris BH <lauris@nix.lv> * Add test case to check access for user with write access Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix access, repo admin required to change topics Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Correct first test to be without token Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Any repo reader should be able to access topics. * No need for string pointer Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-031-1/+40
|
* Avoid ambiguity of branch/directory names for the git-diff-tree command (#8066)Mura Li2019-09-031-2/+1
|
* Add merged commit id on pull view when it's merged (#8062)Lunny Xiao2019-09-032-1/+7
|
* Add change title notification for issues (#8061)guillep2k2019-09-021-0/+3
|
* Search Commits via Commit Hash (#7400)Gary Kim2019-09-022-12/+39
| | | | | | | | | | | | | | | | | | * search commits via commit hash Signed-off-by: Gary Kim <gary@garykim.dev> * Also include all option for hash search Signed-off-by: Gary Kim <gary@garykim.dev> * Remove code duplication in commit search Signed-off-by: Gary Kim <gary@garykim.dev> * Add case ignore to commit hash search Signed-off-by: Gary Kim <gary@garykim.dev>
* Make encoding tests independent of LOCALE settings (#8018)guillep2k2019-09-021-12/+26
| | | | | | | | * Make encoding tests independent of LOCALE settings * Fix fmt * Force CI to restart
* Add tooltip for the visibility checkbox in /repo/create (#8025)Mura Li2019-09-022-1/+2
| | | | | | | | | | * Add tooltip for the visibility checkbox in /repo/create * Change the tooltip wording * Update options/locale/locale_en-US.ini Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update JS dependencies (#8051)silverwind2019-09-022-259/+312
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-0219-20/+49
|
* Make CI work (#8057)guillep2k2019-09-0232-344/+217
| | | | | | | | | | | | | | | | | | | | | | | * Use export GOPROXY=https://goproxy.cn before build * Add go version to generate command * Reproduced the entire build procedure - see notes I've used: sudo go clean -i -r -cache -testcache -modcache make clean make generate make golangci-lint make revive make swagger-check make swagger-validate make test-vendor <--- this now fails make vendor <--- this now produced changes git commit -a <--- this commit * Add fix from #8059 to complete CI tests
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-022-0/+17
|
* Add strike to old header on comment (#8046)jaqra2019-09-031-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-2930-0/+39
|
* Propose some references about ci/cd solutions compatibles with gitea (#7996)Km2019-08-292-3/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Propose some references about ci/cd solutions compatibles with gitea * No note about theirs integration level, only a starting point. * Update docs/content/doc/advanced/ci-cd.en-us.md Improve text Co-Authored-By: Lauris BH <lauris@nix.lv> * Improve link to CI solutions Update docs/content/doc/advanced/ci-cd.en-us.md Co-Authored-By: Lauris BH <lauris@nix.lv> * Update docs/content/doc/advanced/ci-cd.en-us.md Typo in name :/ Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Remove redundant empty line * Invite user to consult new CI/CD page * Link target CI tools * Jenkins and its plugin * Update docs/content/doc/advanced/third-party-tools.en-us.md Simplify link CI/CD Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Update docs/content/doc/advanced/ci-cd.en-us.md Typo Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Provide gitea documentation about drone usage Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Update docs/content/doc/advanced/ci-cd.en-us.md Co-Authored-By: Lauris BH <lauris@nix.lv> * Apply suggestions from code review Co-Authored-By: Lauris BH <lauris@nix.lv>
* Add Ability for User to Customize Email Notification Frequency (#7813)Gary Kim2019-08-2914-14/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Backend Logic for Toggling Email Notification This commit adds the backend logic for allowing users to enable or disable email notifications. The implementation ensures that only issue notification emails get disabled and important emails are still sent regardless of the setting. The UI to toggle this setting has not yet been implemented. * Add UI and complete user email notification enable This commit completes the functionality to allow users to disable their own email notifications. Signed-off-by: Gary Kim <gary@garykim.dev> * Add Third Option for Only Email on Mention Signed-off-by: Gary Kim <gary@garykim.dev> * Readd NOT NULL to new preference string Signed-off-by: Gary Kim <gary@garykim.dev> * Add Tests and Rewrite Comment Signed-off-by: Gary Kim <gary@garykim.dev> * Allow admin to set default email frequency Signed-off-by: Gary Kim <gary@garykim.dev> * Add new config option to docs Signed-off-by: Gary Kim <gary@garykim.dev> * Fix a few mistakes Signed-off-by: Gary Kim <gary@garykim.dev> * Only update required columns Signed-off-by: Gary Kim <gary@garykim.dev> * Simplify an error check Signed-off-by: Gary Kim <gary@garykim.dev> * Make email_notification_preference column in DB be VARCHAR(20) Signed-off-by: Gary Kim <gary@garykim.dev> * Handle errors Signed-off-by: Gary Kim <gary@garykim.dev> * Update models/migrations/v93.go Co-Authored-By: Lauris BH <lauris@nix.lv>
* Fix vendor modules.txt (#8032)Lauris BH2019-08-291-1/+1
|
* Update to mod enabled version goquery (#8021)Antoine GIRARD2019-08-2913-30/+149
| | | | | | * update to mod enabled version goquery * manually set appengine new release
* Update github.com/lafriks/xormstore and tidy up mod.go (#8020)guillep2k2019-08-2820-165/+286
|
* Fix make-generate using non-vendor packages (#8008)Mura Li2019-08-281-1/+1
|
* Changed black to white for (read) number label on issue list (#8000)jaqra2019-08-281-1/+1
| | | | | | * Changed black color to blue for read number label on issue list page * Change color to white
* Update swagger to 0.20.1 (#8010)Antoine GIRARD2019-08-28100-1260/+6411
| | | | | | * update swagger to 0.20.1 * fiw swagger version for validate