summaryrefslogtreecommitdiffstats
path: root/integrations
Commit message (Collapse)AuthorAgeFilesLines
* Enforce token on api routes [fixed critical security issue #4357] (#4840)B-OnTheGo2018-09-1015-87/+128
|
* Add sudo functionality to the API (#4809)zeripath2018-09-061-0/+29
|
* Fix redirect with non-ascii branch names (#4764) (#4810)SagePtr2018-09-0644-3/+739
| | | | | | | | * Fix redirect with non-ascii branch names (#4764) * Add integration tests for non-ascii branch redirect * Fix mysql test and coverage test
* Disable merging a WIP Pull request (#4529)Julien Tant2018-08-132-0/+47
| | | | | | | | | | | | | | | | | * prevent pull request to be merged when PR is a WIP * add tests * add helper to prepend WIP: in PR title * move default wip prefixes into settings * use configurable WIP prefixes in javascript and default to first one in templates * add documentation * add unit test on pull model Signed-off-by: Julien Tant <julien@craftyx.fr>
* Add ability to delete a token (#4235)techknowlogick2018-07-062-0/+55
| | | Fix #4234
* Allow administrator to create repository for any organization (#4368)Lauris BH2018-07-051-0/+23
|
* Check that repositories can only be migrated to own user or organizations ↵Lauris BH2018-07-051-0/+27
| | | | | | | | | | (#4366) * Repositories can only migrated to own user or organizations * Add check for organization that user does not belong to * Allow admin to migrate repositories for other users
* hide issues from org private repos w/o team assignment (#4034)David Schneiderbauer2018-06-211-3/+3
|
* fix not respecting landing page setting (#4209)David Schneiderbauer2018-06-151-0/+22
| | | | | | | | * fix not respecting landing page setting * fmt * add landing page test
* Fixed drone command in readme (#4222)Alexey Terentyev2018-06-121-1/+1
| | | Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* LDAP Public SSH Keys synchronization (#1844)Magnus Lindvall2018-05-241-21/+58
| | | | | | | | | | | | | | | | | | | * Add LDAP Key Synchronization feature Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Add migration: add login source id column for public_key table * Only update keys if needed * Add function to only list pubkey synchronized from ldap * Only list pub ssh keys synchronized from ldap. Do not sort strings as ExistsInSlice does it. * Only get keys belonging to current login source id * Set default login source id to 0 * Some minor cleanup. Add integration tests (updete dep testify)
* Refactor User Settings (#3900)David Schneiderbauer2018-05-152-9/+6
| | | | | | | | | | | | | | | | | | | | | | * moved avatar to profile page * combined password change, email and account deletion into account settings page * combined totp, access tokens, linked accounts and openid into security settings page * move access tokens to applications settings page * small change to restart drone build * fix change avatar url on profile page * redirect old settings urls to new ones * enforce only one autofocus attribute on settings pages * set correct redirect status code * fmt fix
* Add LDAP integration tests (#3897)Lauris BH2018-05-111-0/+194
| | | | | | | | | | | | * Add LDAP service for tests * Add LDAP login source and test user sign-in * Add checks to test if user data is correct * Add LDAP user sync test * Add failed user sign-in test
* Added user language setting (#3875)kolaente2018-05-052-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added user language setting * Added translation string for setting * Fixed import order + typo * improved checking if the user has a language saved in the db * The current saved language is now set a default inside the dropdown * fmt * When a user signs in and doesn't have a language saved, the current browser language is saved * updated gitea-sdk * Merge branch 'master' of https://github.com/go-gitea/gitea into save-user-language # Conflicts: # models/migrations/migrations.go # models/migrations/v62.go * Made tests work again * trigger CI * trigger CI * fmt * re-trigger that FUCKING CI SO IT REALLY PICKS UP THE LATEST COMMIT ISTEAD OF PREDENDING TO DO SO * re-trigger that FUCKING CI SO IT REALLY PICKS UP THE LATEST COMMIT ISTEAD OF PREDENDING TO DO SO * When loggin in, only the language col gets updated instead of everything
* Symlink icons (#1416) (#3826)Tris Forster2018-05-0138-0/+730
| | | | | | | | | | | | * Updated vendor code for code.gitea.io/git * Display symlinks correctly for files and directories * Added symlink tests * Applied silverwinds stylesheet patch Signed-off-by: Tris Forster <tris.git@shoddynet.org>
* Improve English grammar and consistency. (#3614)bugreport02018-04-192-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | * Start improving English grammar and consistency. * Apply review comments, push translation further. * Additional review changes; expand translation. * Undo team/organization change, further translation. * Add site administration; review comments; merge. * Update hardcoded branch protection string tests. * Update hardcoded branch deletion string test. * Update another hardcoded translation string test. * Add my nickname to the list of translators. * Implement @lafriks review comments. * Remove (now) unused branch deletion warnings. * Remove (now) unused branch deletion warnings.
* Fix missing translations when updating username. (#3564)bugreport02018-02-251-1/+1
| | | | | | | | * Fix missing translations when updating username. * Fix reserved username translated string test. * Fix 'username reserved' string test a bit more.
* Fix escaping changed title in comments (#3530)Lauris BH2018-02-183-10/+45
| | | | | | | | * Fix escaping changed title in comments * Fix escaping of wiki page titile Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
* Improvements to git integration test (#3466)Ethan Koenig2018-02-061-11/+7
|
* doc: Improve integrations examples (#3416)Antoine GIRARD2018-01-271-4/+38
|
* Fix SSH auth lfs locks (#3152)Antoine GIRARD2018-01-272-7/+5
| | | | | | | | | | * Fix SSH auth LFS locks * Activate SSH/lock test * Remove debug * Follow @lunny recommendation for AfterLoad method
* Add integrations tests from git cli (#3377)Antoine GIRARD2018-01-165-140/+246
| | | | | | | | | | | * test: integration add git cli tests Extracted form for easing review process and debug #3152 * test: integration add git cli big file commit * fix: Don't rewrite key if internal server
* Fix API-Endpoint release (#3012)Marc Brückner2018-01-161-0/+85
| | | | | | | | | * Fixes API-Endpoint release (#3005) * Using context.ReferencesGitRepo(); doing the same in the PATCH route. * Add release create, get and update test
* Remove hardcoded paths to fix randomly failing tests (#3347)Lauris BH2018-01-114-0/+5
| | | | | | * Remove hardcoded paths to fix randomly failing tests * Use correct function for merge path
* Fix randomly failing LFS lock tests in drone (#3346)Lauris BH2018-01-112-0/+2
|
* Add some instructions about running integration tests (#3319)Sandro Santilli2018-01-081-0/+22
| | | | | | | | * Add some instructions about running integration tests * Add missing newline escape * Suggest running a clean build
* Serve .patch for pull requests (#3305)Sandro Santilli2018-01-071-1/+9
| | | | | | | | | * Serve .patch for pull requests Closes #3259 Updates "git" module, for GetFormatPatch * Handle io.Copy error
* Writable deploy keys (closes #671) (#3225)Vlad Temian2018-01-071-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add is_writable checkbox to deploy keys interface * Add writable key option to deploy key form * Add support for writable ssh keys in the interface * Rename IsWritable to ReadOnly * Test: create read-only and read-write deploy keys via api * Add DeployKey access mode migration * Update gitea sdk via govendor * Fix deploykey migration * Add unittests for writable deploy keys * Move template text to locale * Remove implicit column update * Remove duplicate locales * Replace ReadOnly field with IsReadOnly method * Fix deploy_keys related integration test * Rename v54 migration with v55 * Fix migration hell
* Add Pull Request merge options - Ignore white-space for conflict checking, ↵Lauris BH2018-01-052-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rebase, Squash merge (#3188) * Pull request options migration and UI in settings * Add ignore whitespace functionality * Fix settings if pull requests are disabled * Fix migration transaction * Merge with Rebase functionality * UI changes and related functionality for pull request merging button * Implement squash functionality * Fix rebase merging * Fix pull request merge tests * Add squash and rebase tests * Fix API method to reuse default message functions * Some refactoring and small fixes * Remove more hardcoded values from tests * Remove unneeded check from API method * Fix variable name and comment typo * Fix reset commit count after PR merge
* Serve pull request .diff files (#3293)Sandro Santilli2018-01-051-3/+12
| | | | | | | | | | | | * Serve pull request .diff files Closes #3259 * Add test for pull request redirection and .diff access * Typo * There's no need to test for pr.BaseRepo being nil after calling GetBaseRepo
* Responsive view (#2750)Morgan Bazalgette2017-12-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Viewport meta tag * responsive: dashboard * responsive: issues page * responsive: Explore page * responsive: navbar, and some navbar css refactoring * responsive: button for collapsing navbar in mobile view * Mark the hamburger button as active when pressed * better homepage for responsive views * Bring back jump class in navbar The class was necessary, because this way the dropdown doesn't assume the contents of the selected item. * make repository homes responsive * Make file view page responsive * Make forms look good on responsive views * make commits and commit diff view responsive * issues and PRs * responsive wiki * Don't place auto-init far off the page * Minor changes to amend broken stuff minor improvements - make login/sign up in navbar stackable - make navbar in explore and sign in not stackable Change selected class in TestPullCompare Fix typo that happened when rebasing fix dashboard on org view improve profile UI Use clearing on file diff to fix broken UI caused by floating elements remove unresolved merge conflict, and | Sanitize Fix repo home not loading
* Add more bench (#3161)Antoine GIRARD2017-12-243-27/+114
| | | | | | * Improve makefile + Add benchs * Apply recommendations of @ethantkoenig
* Unit tests for routers/repo/issue_label (#3198)Ethan Koenig2017-12-159-17/+24
|
* Make test more robust (#3167)Ethan Koenig2017-12-121-1/+1
|
* Log unexpected responses in integration tests (#3138)Ethan Koenig2017-12-111-2/+28
| | | | | | * Log flash error message in integration tests * Also log short, non-HTML responses
* Fix integration tests (#3141)Ethan Koenig2017-12-111-0/+1
|
* Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. (#3092)Antoine GIRARD2017-12-0810-23/+148
| | | | | | | | | | | | | | | | | | | | | | | | * Add failing test * Fix urls * Improve url in tests * improve testing * Remove debug code * Add deps * LFS corner-case : Search on lower but store with case * Temporary comment of blocking action * fix hooks * Use temporary repo for git client test * Use userPassword in place of hard-coded password
* Fix legacy URL redirects (#3100)Ethan Koenig2017-12-071-2/+4
|
* Delete a user's public key via admin api (closes #3014) (#3059)Vlad Temian2017-12-061-0/+73
| | | | | | | | | | | | | | | | * Delete a user's public key via admin api * Test admin ssh endpoint for creating a new ssh key * Adapt public ssh key test to also test the delete operation * Test that deleting a missing key will result in a 404 * Test that a normal user can't delete another user's ssh key * Make DeletePublicKey return err * Update swagger doc
* Use httptest in integration tests (#3080)Ethan Koenig2017-12-0412-100/+77
|
* Fix git lfs path (#3016)Antoine GIRARD2017-11-291-13/+10
| | | | | | | | * add suffix .git * Remove Content-Type on GET methods * Add migrations to force creation before any further potential migration
* Git LFS lock api (#2938)Antoine GIRARD2017-11-284-16/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement routes * move to api/sdk and create model * Implement add + list * List return 200 empty list no 404 * Add verify lfs lock api * Add delete and start implementing auth control * Revert to code.gitea.io/sdk/gitea vendor * Apply needed check for all lfs locks route * Add simple tests * fix lint * Improve tests * Add delete test + fix * Add lfs ascii header * Various fixes from review + remove useless code + add more corner case testing * Remove repo link since only id is needed. Save a little of memory and cpu time. * Improve tests * Use TEXT column format for path + test * fix mispell * Use NewRequestWithJSON for POST tests * Clean path * Improve DB format * Revert uniquess repoid+path * (Re)-setup uniqueness + max path length * Fixed TEXT in place of VARCHAR * Settle back to maximum VARCHAR(3072) * Let place for repoid in key * Let place for repoid in key * Let place for repoid in key * Revert back
* Various wiki bug fixes (#2996)Ethan Koenig2017-11-2817-0/+509
| | | | | | * Update macaron * Various wiki bug fixes
* Fix comment API paths (#2813)Ethan Koenig2017-11-201-4/+4
|
* Add integration test for user deleting account (#2891)Ethan Koenig2017-11-121-2/+45
|
* Add integration test for logging out (#2892)Ethan Koenig2017-11-111-0/+26
|
* Fix API raw file content access for default branch (#2849)Lauris BH2017-11-041-0/+3
|
* Fix API raw requests for commits and tags (#2841)Lauris BH2017-11-041-0/+28
|
* Issue content should not be updated when closing with comment (#2833)Lauris BH2017-11-032-7/+60
|
* Use different directories for session files in integration tests (#2834)Lauris BH2017-11-032-0/+2
|