summaryrefslogtreecommitdiffstats
path: root/models (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-09-09Implement webhook branch filter (#7791)WGH3-3/+90
* Fix validate() function to handle errors in embedded anon structs * Implement webhook branch filter See #2025, #3998.
2019-09-08Add option to initialize repository with labels (#6061)John Olheiser11-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>
2019-09-07[skip ci] Updated translations via CrowdinGiteaBot1-1/+4
2019-09-07Add reviewrs as participants (#8121)guillep2k2-12/+12
2019-09-07[skip ci] Updated translations via CrowdinGiteaBot2-68/+1820
2019-09-071148: Take up the full width when viewing the diff in split view. (#8114)pmdematagoda1-1/+1
This replicates how the commit view works in split view.
2019-09-06[skip ci] Updated translations via CrowdinGiteaBot2-3/+61
2019-09-06Changelog for 1.9.3 (#8118)guillep2k1-0/+15
2019-09-06Fix Go 1.13 private repository go get issue (#8112)Lunny Xiao2-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>
2019-09-06Move git diff codes from models to services/gitdiff (#7889)Lunny Xiao15-111/+164
* move git diff codes from models to services/gitdiff * fix template * fix test * fix template
2019-09-06feat: highlight issue references with : (#8101)Rinat4-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
2019-09-05Added AppVeyor to the list of CI/CD working with Gitea (#8104)Feodor Fitsner1-0/+1
2019-09-05[skip ci] Updated translations via CrowdinGiteaBot4-4/+3
2019-09-05Make AllowedUsers configurable in sshd_config (#8094)jpellegrini2-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>
2019-09-05[skip ci] Updated translations via CrowdinGiteaBot4-4/+4
2019-09-05Display description of 'make this repo private' as help text, not as tooltip ↵micw6-6/+7
(#8097)
2019-09-05Fix broken link (#8091)nu_no1-1/+1
2019-09-04[skip ci] Updated translations via CrowdinGiteaBot1-0/+1
2019-09-04Use vendored go-swagger (#8087)Antoine GIRARD686-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>
2019-09-04Strict name matching for Repository.GetTagID() (#8074)guillep2k33-11/+1801
* Strict name matching for Repository.GetTagID() * Perform make swagger-check swagger-validate vendor * Add test for GetTagID()
2019-09-03[skip ci] Updated translations via CrowdinGiteaBot2-0/+9
2019-09-03Fixes deformed emoji in pull request reviews (#8047)Mario Lubenka2-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>
2019-09-03[skip ci] Updated translations via CrowdinGiteaBot2-0/+15
2019-09-03Add API endpoint for accessing repo topics (#7963)David Svantesson15-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>
2019-09-03[skip ci] Updated translations via CrowdinGiteaBot1-1/+40
2019-09-03Avoid ambiguity of branch/directory names for the git-diff-tree command (#8066)Mura Li1-2/+1
2019-09-03Add merged commit id on pull view when it's merged (#8062)Lunny Xiao2-1/+7
2019-09-03Add change title notification for issues (#8061)guillep2k1-0/+3
2019-09-03Search Commits via Commit Hash (#7400)Gary Kim2-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>
2019-09-03Make encoding tests independent of LOCALE settings (#8018)guillep2k1-12/+26
* Make encoding tests independent of LOCALE settings * Fix fmt * Force CI to restart
2019-09-03Add tooltip for the visibility checkbox in /repo/create (#8025)Mura Li2-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>
2019-09-02Update JS dependencies (#8051)silverwind2-259/+312
2019-09-02[skip ci] Updated translations via CrowdinGiteaBot19-20/+49
2019-09-02Make CI work (#8057)guillep2k32-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
2019-09-02[skip ci] Updated translations via CrowdinGiteaBot2-0/+17
2019-09-02Add strike to old header on comment (#8046)jaqra1-1/+1
2019-08-29[skip ci] Updated translations via CrowdinGiteaBot30-0/+39
2019-08-29Propose some references about ci/cd solutions compatibles with gitea (#7996)Km2-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>
2019-08-29Add Ability for User to Customize Email Notification Frequency (#7813)Gary Kim14-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>
2019-08-29Fix vendor modules.txt (#8032)Lauris BH1-1/+1
2019-08-29Update to mod enabled version goquery (#8021)Antoine GIRARD13-30/+149
* update to mod enabled version goquery * manually set appengine new release
2019-08-28Update github.com/lafriks/xormstore and tidy up mod.go (#8020)guillep2k20-165/+286
2019-08-28Fix make-generate using non-vendor packages (#8008)Mura Li1-1/+1
2019-08-28Changed black to white for (read) number label on issue list (#8000)jaqra1-1/+1
* Changed black color to blue for read number label on issue list page * Change color to white
2019-08-28Update swagger to 0.20.1 (#8010)Antoine GIRARD100-1260/+6411
* update swagger to 0.20.1 * fiw swagger version for validate
2019-08-28[skip ci] Updated translations via CrowdinGiteaBot1-0/+1
2019-08-28keep blame view buttons sequence consistent with normal view when view a ↵Lunny Xiao1-1/+1
file (#8007)
2019-08-28[skip ci] Updated translations via CrowdinGiteaBot14-14/+0
2019-08-28Move line number to :before attr to hide from search on browser (#8002)jaqra3-6/+9
* Move line number to :before attr to hide from search on browser * Use same variable in WriteString Co-Authored-By: Lauris BH <lauris@nix.lv>
2019-08-27[skip ci] Updated translations via CrowdinGiteaBot2-25/+55