summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-281-0/+1
|
* keep blame view buttons sequence consistent with normal view when view a ↵Lunny Xiao2019-08-271-1/+1
| | | | file (#8007)
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-2714-14/+0
|
* Move line number to :before attr to hide from search on browser (#8002)jaqra2019-08-283-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>
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-272-25/+55
|
* Use "Pull Request" instead of "Merge Request" (#8003)kolaente2019-08-271-1/+1
| | | Signed-off-by: kolaente <k@knt.li>
* Bump eslint-utils from 1.3.1 to 1.4.2 (#7993)dependabot[bot]2019-08-271-4/+7
| | | | | | | Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2. - [Release notes](https://github.com/mysticatea/eslint-utils/releases) - [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2) Signed-off-by: dependabot[bot] <support@github.com>
* Fixes #7945 - makes sure we are only getting tag refs (#7990)Richard Mahn2019-08-261-1/+1
|
* Retry create issue to cope with duplicate keys (#7898)guillep2k2019-08-2639-1415/+2002
| | | | | | * Retry create issue to cope with duplicate keys * Use .SetExpr().Where().Insert()
* Fix adding default Telegram webhook (#7972)Gary Kim2019-08-262-0/+5
| | | | | | | | | | | | * Fix adding default Telegram webhook Fixes #7932 Signed-off-by: Gary Kim <gary@garykim.dev> * Run goimports Signed-off-by: Gary Kim <gary@garykim.dev>
* Adds details about what tags can use the Git tags API (#7989)Richard Mahn2019-08-262-4/+4
|
* swagger/fix: []string are not enum by swagger definition (#7916)Antoine GIRARD2019-08-262-21/+21
| | | | | | | | * []string are not enum by swagger definition * apply suggestion of @guillep2k * re-generate swagger file
* API method to list all commits of a repository (#6408)Mike Schwörer2019-08-266-26/+392
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added API endpoint ListAllCommits (/repos/{owner}/{repo}/git/commits) Signed-off-by: Mike Schwörer <mailport@mikescher.de> * Fixed failing drone build Signed-off-by: Mike Schwörer <mailport@mikescher.de> * Implemented requested changes (PR reviews) Signed-off-by: Mike Schwörer <mailport@mikescher.de> * gofmt Signed-off-by: Mike Schwörer <mailport@mikescher.de> * Changed api route from "/repos/{owner}/{repo}/git/commits" to "/repos/{owner}/{repo}/commits" * Removed unnecessary line * better error message when git repo is empty * make generate-swagger * fixed removed return * Update routers/api/v1/repo/commits.go Co-Authored-By: Lauris BH <lauris@nix.lv> * Update routers/api/v1/repo/commits.go Co-Authored-By: Lauris BH <lauris@nix.lv> * go fmt * Refactored common code into ToCommit() * made toCommit not exported * added check for userCache == nil
* Run CORS handler first for /api routes (#7967)Tamal Saha2019-08-262-9/+8
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* [Branch View] show "New Pull Request" Button only if posible (#7977)65432019-08-263-24/+19
| | | | | | | | * add check Commits Ahead is gt 0 * code format to start drone-ci test again and formate code is also nice :)
* Include description in repository search. (#7942)David Svantesson2019-08-2511-73/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add description in repository search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Refactor SearchRepositoryByName with a general function SearchRepository Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Allow to specify if description shall be included in API repo search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add new app.ini setting for whether to search within repo description. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Search keyword in description (if setting enabled) on: - Explore page - Organization profile page - User profile page - Admin repo page Do not search keyword in description on: - Any non-keyword search (not relevant) - Incremental search (uses API) Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Put parameters related to keyword directly after it Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test cases for including (and not including) repository description in search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Rename test function from TestSearchRepositoryByName to TestSearchRepository. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make setting SEARCH_REPO_DESCRIPTION default to true Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Abort syncrhonization from LDAP source if there is some error. (#7960)David Svantesson2019-08-242-6/+11
| | | Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add support for DEFAULT_ORG_MEMBER_VISIBLE (#7669)guillep2k2019-08-245-7/+24
| | | | | | | | | | | | * Add support for DEFAULT_ORG_MEMBER_VISIBLE * Correct formatting * Improved description in cheat sheet. * Add test for DefaultOrgMemberVisible * Remove dead code
* Move database settings from models to setting (#7806)Lunny Xiao2019-08-2435-377/+424
| | | | | | | | | | | | | | | | | | * move database settings from models to setting * update docs * fix checkout pr * fix tests * fix lint * remove unsupported tidb options * correct wrong variable name * remove tidb totally
* Document possibility to limit API Repo search to topics only. (#7957)David Svantesson2019-08-232-0/+10
| | | Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Allow token as authorization for accessing attachments (#7909)David Svantesson2019-08-241-1/+6
| | | | | | | | * Allow token as authorization for accessing attachments Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Only allow token authentication for attachments if it is a download (GET)
* Support SSH_LISTEN_PORT env var in docker app.ini template (#7829)leigh capili2019-08-243-0/+3
| | | Signed-off-by: leigh capili <leigh@null.net>
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-231-11/+13
|
* Use gitea forked macaron (#7933)Tamal Saha2019-08-23410-13193/+14858
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* Change repo search to use exact match for topic search. (#7941)David Svantesson2019-08-221-1/+5
| | | Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add config option and shortcode for Gitea version (#7940)John Olheiser2019-08-2311-18/+20
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add release notes of 1.9.2 (#7934) (#7939)Lunny Xiao2019-08-221-0/+14
| | | | | * Add release notes of 1.9.2 * add missing issue
* don't convert buffer to string (#7115)Lunny Xiao2019-08-221-1/+1
|