aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [API] Load issue attributes when editing an issue (#6723)John Olheiser2019-04-231-0/+6
|
* Disable web preview for telegram webhook (#6719)techknowlogick2019-04-231-2/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-222-0/+19
|
* Trace Logging on Permission Denied & ColorFormat (#6618)zeripath2019-04-2217-12/+418
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add log.ColorFormat and log.ColorFormatted Structs can now implement log.ColorFormatted to provide their own colored format when logged with `%-v` or additional flags. Signed-off-by: Andrew Thornton <art27@cantab.net> * Add basic ColorFormat to repository and user Signed-off-by: Andrew Thornton <art27@cantab.net> * Add basic ColorFormat to access and unit Signed-off-by: Andrew Thornton <art27@cantab.net> * Add ColorFormat to permission and on trace log it Signed-off-by: Andrew Thornton <art27@cantab.net> * Add log.NewColoredIDValue to make ID value coloring consistent Signed-off-by: Andrew Thornton <art27@cantab.net> * formatting changes * Add some better tracing to permission denied for read issues/pulls Signed-off-by: Andrew Thornton <art27@cantab.net> * Add Trace logging on permission denied Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove isTrace() check from deferred func * Adjust repo and allow logging of team * use FormatInt instead of Itoa * Add blank line Signed-off-by: Andrew Thornton <art27@cantab.net> * Update access.go
* Fix one performance/correctness regression in #6478 found on Rails ↵Filip Navara2019-04-211-38/+33
| | | | | | | | | | | | | | | | repository. (#6686) * Fix flaw in the commit history lookup that caused unnecessary traversal when the repository contains a lot of merge commits. Also return the merge commit as the changed one if the file or directory was changed as part of the merge, eg. through conflict resolution. Signed-off-by: Filip Navara <filip.navara@gmail.com> * Perform history simplification. If a file is present on multiple parents in a merge commit follow only the first parent.
* Backport 1.8.0 changelog (#6697)techknowlogick2019-04-211-25/+27
|
* Show "delete branch" button on closed pull requests (#6570) (#6601)Mario Lubenka2019-04-204-3/+15
| | | | | | | | | | * Show button to delete a pull request branch after a pull request has been closed (#6570) Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update routers/repo/pull.go Co-Authored-By: saitho <mario.lubenka@googlemail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-201-0/+25
|
* Unfortunately MemProvider Init does not actually Init properly (#6692)zeripath2019-04-202-1/+218
| | | | | | | | | | | * Unfortunately MemProvider Init does not actually Init properly Worse all of its members are private and you cannot update them. Simple fix copy it in to modules session. Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix misspelling
* Fix reversion caused by 6314 (#6685)zeripath2019-04-201-1/+0
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Prevent creating empty sessions (#6677)zeripath2019-04-204-1/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent creating empty sessions Signed-off-by: Andrew Thornton <art27@cantab.net> * Update modules/setting/session.go * Remove unnecessary option Signed-off-by: Andrew Thornton <art27@cantab.net> * Add destory to list of ignored misspellings * rename cookie.go -> virtual.go * Delete old file * Add test to ensure that sessions are not created without being logged in Signed-off-by: Andrew Thornton <art27@cantab.net> * fix tests Signed-off-by: Andrew Thornton <art27@cantab.net> * Update integrations/create_no_session_test.go
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-201-0/+16
|
* Unifies pagination template usage (#6531) (#6533)Mario Lubenka2019-04-2021-196/+165
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-203-14/+49
|
* Add option to blame files (#5721)Andrzej Ressel2019-04-1910-2/+631
|
* Add support for MS Teams webhooks (#6632)Daniel Grier2019-04-1914-1/+825
|
* Improve listing performance by using go-git (#6478)Filip Navara2019-04-1944-748/+724
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use go-git for tree reading and commit info lookup. Signed-off-by: Filip Navara <navara@emclient.com> * Use TreeEntry.IsRegular() instead of ObjectType that was removed. Signed-off-by: Filip Navara <navara@emclient.com> * Use the treePath to optimize commit info search. Signed-off-by: Filip Navara <navara@emclient.com> * Extract the latest commit at treePath along with the other commits. Signed-off-by: Filip Navara <navara@emclient.com> * Fix listing commit info for a directory that was created in one commit and never modified after. Signed-off-by: Filip Navara <navara@emclient.com> * Avoid nearly all external 'git' invocations when doing directory listing (.editorconfig code path is still hit). Signed-off-by: Filip Navara <navara@emclient.com> * Use go-git for reading blobs. Signed-off-by: Filip Navara <navara@emclient.com> * Make SHA1 type alias for plumbing.Hash in go-git. Signed-off-by: Filip Navara <navara@emclient.com> * Make Signature type alias for object.Signature in go-git. Signed-off-by: Filip Navara <navara@emclient.com> * Fix GetCommitsInfo for repository with only one commit. Signed-off-by: Filip Navara <navara@emclient.com> * Fix PGP signature verification. Signed-off-by: Filip Navara <navara@emclient.com> * Fix issues with walking commit graph across merges. Signed-off-by: Filip Navara <navara@emclient.com> * Fix typo in condition. Signed-off-by: Filip Navara <navara@emclient.com> * Speed up loading branch list by keeping the repository reference (and thus all the loaded packfile indexes). Signed-off-by: Filip Navara <navara@emclient.com> * Fix lising submodules. Signed-off-by: Filip Navara <navara@emclient.com> * Fix build Signed-off-by: Filip Navara <navara@emclient.com> * Add back commit cache because of name-rev Signed-off-by: Filip Navara <navara@emclient.com> * Fix tests Signed-off-by: Filip Navara <navara@emclient.com> * Fix code style * Fix spelling * Address PR feedback Signed-off-by: Filip Navara <navara@emclient.com> * Update vendor module list Signed-off-by: Filip Navara <navara@emclient.com> * Fix getting trees by commit id Signed-off-by: Filip Navara <navara@emclient.com> * Fix remaining unit test failures * Fix GetTreeBySHA * Avoid running `git name-rev` if not necessary Signed-off-by: Filip Navara <navara@emclient.com> * Move Branch code to git module * Clean up GPG signature verification and fix it for tagged commits * Address PR feedback (import formatting, copyright headers) * Make blob lookup by SHA working * Update tests to use public API * Allow getting content from any type of object through the blob interface * Change test to actually expect the object content that is in the GIT repository * Change one more test to actually expect the object content that is in the GIT repository * Add comments
* API OTP Context (#6674)techknowlogick2019-04-194-4/+56
| | | | | | | | | | | | | | | | | | | | | | * API OTP Context * Update api.go * token * token * fix per discord * copyright header * remove check for token in OTP * Update auth.go * simplify * Update api.go
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-1924-147/+32
|
* Telegram webhook (#4227)techknowlogick2019-04-1813-1/+478
|
* UX + Security current user password reset (#5042)AJ ONeal2019-04-187-57/+100
| | | | | | | | | | | | | | * allow current user to reset their own password * handle reset password edge cases properly and consistently * remove dangling assignment * properly label account recovery instead of reset password * remove 'Click here' from button * update English-only account-recovery templates
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-1823-23/+4
|
* Comments list performance optimization (#5305)Lunny Xiao2019-04-184-40/+553
|
* Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314)Richard Mahn2019-04-1754-563/+4154
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-172-0/+15
|
* Add more title attributes on shortened names (#6647)zeripath2019-04-175-13/+13
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-1729-0/+29
|
* Pre-calculate the absolute path of git (#6575)Mura Li2019-04-172-1/+12
| | | | | | | | * Pre-caculate the absolute path of git * Do not repeat string literals which has been defined somewhere Also make it flexible to accept customized/user-defined value.
* OAuth2 Grant UI (#6625)Jonas Franz2019-04-178-6/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add oauth2 grants ui Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add delete functionality Add translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * Refactor DeleteOAuth2Grant Use results.Close() Signed-off-by: Jonas Franz <info@jonasfranz.software> * Refactor DeleteOAuth2Grant (again) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if user ID is zero Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if grant ID is zero Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add API for manipulating Git hooks (#6436)Segev Finer2019-04-1748-19/+1306
| | | | | | | | | | | | | | | | | | | | | | | | * Add API for manipulating Git hooks Signed-off-by: Segev Finer <segev@codeocean.com> * Replace code.gitea.io/sdk with PR branch temporarily for CI * Switch back to code.gitea.io/sdk@master * Return 403 instead of 404 on no permission to edit hooks in API * Add tests for Git hooks API * Update models/repo_list_test.go Co-Authored-By: segevfiner <segev208@gmail.com> * Update models/repo_list_test.go Co-Authored-By: segevfiner <segev208@gmail.com> * empty line
* Add SUBJECT_PREFIX mailer config option (#6605)zeripath2019-04-174-5/+12
| | | | | | | | * Add SUBJECT_PREFIX mailer config option * Add space between subject prefix and subject (Change from Gogs) Signed-off-by: Andrew Thornton <art27@cantab.net>
* Bump github.com/stretchr/testify from 1.2.2 to 1.3.0 (#6663)Antoine GIRARD2019-04-166-26/+52
| | | | | Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.2.2 to 1.3.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.2.2...v1.3.0)
* update swagger-ui (#6661)Antoine GIRARD2019-04-1612-51/+52
|
* [mod]: Bump gopkg.in/src-d/go-git.v4 from 4.8.0 to 4.10.0 (#6662)Antoine GIRARD2019-04-1628-189/+597
| | | | | Bumps [gopkg.in/src-d/go-git.v4](https://github.com/src-d/go-git) from 4.8.0 to 4.10.0. - [Release notes](https://github.com/src-d/go-git/releases) - [Commits](https://github.com/src-d/go-git/compare/v4.8.0...v4.10.0)
* [docker] let the ssh daemon speak for itself and drop the syslog daemon (#6529)Jakob Ackermann2019-04-164-10/+1
| | | | | | The sshd flag `-e` instructs sshd to output any logs to stderr instead of the syslog. Redirect this output to stdout then. Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Properly escape on the redirect from the web editor (#6657)zeripath2019-04-161-7/+8
|
* update highlight.js (#6658)silverwind2019-04-163-6/+5
|
* Fixes #6659 - Swagger schemes selection default to page's (#6660)Richard Mahn2019-04-161-15/+26
|
* Fix 6655 - there is no need to EscapePound .Link as it is already escaped ↵zeripath2019-04-161-1/+1
| | | | | (#6656) Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix dropdown icon padding (#6651)zeripath2019-04-162-1/+2
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Use ctx.metas for SHA hash links (#6645)mrsdizzie2019-04-163-4/+16
| | | | | | | | Since #6273 was merged, we now have access to proper context metas always. Update SHA generated links to use these instead of urlPrefix. Update tests as well. Fixes #4536.
* Fix wrong GPG expire date (#6643)Antoine GIRARD2019-04-152-6/+162
| | | | | | * fix expire of gpg relative to key creation https://tools.ietf.org/html/rfc4880#section-5.2.3.6 * add test
* Fix forking an empty repository (#6637)Segev Finer2019-04-152-7/+8
| | | | | Fixes #6633 Signed-off-by: Segev Finer <segev@codeocean.com>
* upgrade version of lib/pq to v1.1.0 (#6640)techknowlogick2019-04-1514-161/+526
| | | Adds SCRAM-SHA-256 authentication
* Update UI for topics labels on projects (#6639)하윤2019-04-155-7/+10
|
* Return a UserList from /api/v1/admin/users (#6629)zeripath2019-04-154-13/+50
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-151-0/+3
|
* Add json tags for oauth2 form (#6627)Jonas Franz2019-04-152-8/+31
|
* Remove trailing slash from twitter card (#6619)techknowlogick2019-04-141-1/+1
|
* remove bash requirement in makefile (#6617)techknowlogick2019-04-141-2/+1
|