- 15 Oct, 2021 6 commits
-
-
Loïc Dachary authored
-
zeripath authored
There is a slight race in checking of a context deadline exceed in #16467 which leads to a 500 on the repository page. The solution is to check the error coming back from `*LogNameStatusRepoParser.Next()` and if it is the `ContextDeadlineExceeded` break from the loop. Fix #17314 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
zeripath authored
This PR adds two buttons to the stats and the end of the diffs list to load the (some of) the remaining incomplete diff sections. Contains #16775 Signed-off-by:
Andrew Thornton <art27@cantab.net> ## Screenshots ### Show more button at the end of the diff  ### Show more button at the end of the diff stats box 
-
Lunny Xiao authored
* multiple tokens support for migrating from github * improve code and token description * Fix bug * Add comment for get client
-
wxiaoguang authored
Frontend refactor: move Vue related code from `index.js` to `components` dir, and remove unused codes. (#17301) * frontend refactor * Apply suggestions from code review Co-authored-by:
delvh <dev.lh@web.de> * Update templates/base/head.tmpl Co-authored-by:
delvh <dev.lh@web.de> * Update docs/content/doc/developers/guidelines-frontend.md Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> * fix typo * fix typo * refactor PageData to pageData * Apply suggestions from code review Co-authored-by:
delvh <dev.lh@web.de> * Simply for the visual difference. Co-authored-by:
delvh <dev.lh@web.de> * Revert "Apply suggestions from code review" This reverts commit 4d78ad9b0e96ca180e0823de17659a2e0814c099. Co-authored-by:
delvh <dev.lh@web.de> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
6543 <6543@obermui.de>
-
GiteaBot authored
-
- 14 Oct, 2021 4 commits
-
-
Maximilian Weiler authored
This PR makes sure that direct matches in the user search always show on top of the result list. The following places were checked to follow the desired behavior now: - Search when adding a user to a team - Search when adding a user as a collaborator to a repository Signed-off-by:
Maximilian Weiler <16721506+maweil@users.noreply.github.com>
-
David Jimenez authored
* Don't panic if we fail to parse a U2FRegistration data Downgrade logging statement from Fatal to Error so that errors parsing U2FRegistration data does not panic; instead, the invalid key will be skipped and we will attempt to parse the next one, if available. Signed-off-by:
David Jimenez <dvejmz@sgfault.com>
-
Lunny Xiao authored
-
GiteaBot authored
-
- 13 Oct, 2021 2 commits
-
-
zeripath authored
* Ensure that git daemon export ok is created for mirrors There is an issue with #16508 where it appears that create repo requires that the repo does not exist. This causes #17241 where an error is reported because of this. This PR fixes this and also runs update-server-info for mirrors and generated repos. Fix #17241 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
zeripath authored
core.protectNTFS protects NTFS from files which may be difficult to remove or interact with using the win32 api, however, it also appears to prevent such files from being entered into the git indexes - fundamentally causing breakages with PRs that affect these files. However, deliberately setting this to false may cause security issues due to the remain sparse checkout of files in the merge pipeline. The only sensible option therefore is to provide an optional setting which admins could set which would forcibly switch this off if they are affected by this issue. Fix #17092 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 12 Oct, 2021 4 commits
-
-
zeripath authored
Fix #17294 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
wxiaoguang authored
It makes Admin's life easier to filter users by various status. * introduce window.config.PageData to pass template data to javascript module and small refactor move legacy window.ActivityTopAuthors to window.config.PageData.ActivityTopAuthors make HTML structure more IDE-friendly in footer.tmpl and head.tmpl remove incorrect <style class="list-search-style"></style> in head.tmpl use log.Error instead of log.Critical in admin user search * use LEFT JOIN instead of SubQuery when admin filters users by 2fa. revert non-en locale. * use OptionalBool instead of status map * refactor SearchUserOptions.toConds to SearchUserOptions.toSearchQueryBase * add unit test for user search * only allow admin to use filters to search users
-
Romain authored
* Add endpoint * Add swagger response + generate swagger * Stop execution if user / org is not found * Add tests Co-authored-by:
6543 <6543@obermui.de>
-
GiteaBot authored
-
- 11 Oct, 2021 3 commits
-
-
Viktor Kuzmin authored
Co-authored-by:
6543 <6543@obermui.de> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
wxiaoguang authored
-
GiteaBot authored
-
- 10 Oct, 2021 2 commits
-
-
wxiaoguang authored
* issue content history * Use timeutil.TimeStampNow() for content history time instead of issue/comment.UpdatedUnix (which are not updated in time) * i18n for frontend * refactor * clean up * fix refactor * re-format * temp refactor * follow db refactor * rename IssueContentHistory to ContentHistory, remove empty model tags * fix html * use avatar refactor to generate avatar url * add unit test, keep at most 20 history revisions. * re-format * syntax nit * Add issue content history table * Update models/migrations/v197.go Co-authored-by:
6543 <6543@obermui.de> * fix merge Co-authored-by:
zeripath <art27@cantab.net> Co-authored-by:
6543 <6543@obermui.de> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
GiteaBot authored
-
- 09 Oct, 2021 1 commit
-
-
GiteaBot authored
-
- 08 Oct, 2021 6 commits
-
-
techknowlogick authored
-
a1012112796 authored
- Update default branch if needed - Update protected branch if needed - Update all not merged pull request base branch name - Rename git branch - Record this rename work and auto redirect for old branch on ui Signed-off-by:
a1012112796 <1012112796@qq.com> Co-authored-by:
delvh <dev.lh@web.de>
-
qwerty287 authored
-
zeripath authored
One of the biggest reasons for slow repository browsing is that we wait until last commit information has been generated for all files in the repository. This PR proposes deferring this generation to a new POST endpoint that does the look up outside of the main page request. Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
99rgosse authored
Co-authored-by:
zeripath <art27@cantab.net> Co-authored-by:
Lauris BH <lauris@nix.lv> Co-authored-by:
6543 <6543@obermui.de>
-
Jimmy Praet authored
Fixes #17249
-
- 07 Oct, 2021 6 commits
-
-
qwerty287 authored
Adds an option like for adding multiple issues to a milestone. Closes #17216
-
Jimmy Praet authored
Add missing issue_id = ? to where clause Fixes #17251
-
zeripath authored
It is possible that a keyring can contain duplicate keys on a keyring due to jpegs or other layers. This currently leads to a confusing error for the user - where we report a duplicate key insertion. This PR simply coalesces keys into one key if there are duplicates. Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
6543 <6543@obermui.de>
-
Jimmy Praet authored
Remove '/' suffix from organization dashboard link Fixes #17250
-
techknowlogick authored
Co-authored-by:
delvh <dev.lh@web.de> Co-authored-by:
6543 <6543@obermui.de>
-
pricly-yellow authored
close #17181 * for all pull requests API return permissions of caller * for all webhook return empty permissions Signed-off-by:
Danila Kryukov <pricly_yellow@dismail.de> Co-authored-by:
delvh <dev.lh@web.de> Co-authored-by:
6543 <6543@obermui.de>
-
- 06 Oct, 2021 3 commits
-
-
finga authored
Although #17124 fixed the same issue for the feed, some other parts with the same issue were found. Co-authored-by:
finga <finga@onders.org>
-
wxiaoguang authored
-
6543 authored
- this fixes the CI release upload issues, as the docker image for this is freshly built (unlike the mostly unmaintained "official" drone plugins), thus containing current CA certs needed for letsencrypt since 2021-09-31. - woodpecker is a drone-ci fork maintained partially by @6543. it's API compatible with current drone plugins afaik
-
- 05 Oct, 2021 3 commits
-
-
wxiaoguang authored
Avatar refactor, move avatar code from `models` to `models.avatars`, remove duplicated code (#17123) Why this refactor The goal is to move most files from `models` package to `models.xxx` package. Many models depend on avatar model, so just move this first. And the existing logic is not clear, there are too many function like `AvatarLink`, `RelAvatarLink`, `SizedRelAvatarLink`, `SizedAvatarLink`, `MakeFinalAvatarURL`, `HashedAvatarLink`, etc. This refactor make everything clear: * user.AvatarLink() * user.AvatarLinkWithSize(size) * avatars.GenerateEmailAvatarFastLink(email, size) * avatars.GenerateEmailAvatarFinalLink(email, size) And many duplicated code are deleted in route handler, the handler and the model share the same avatar logic now.
-
n authored
This removes the Dashboard/Home buttons and adds its text to the title of the logo. Co-authored-by:
Alexey 〒erentyev <axifnx@gmail.com>
-
Romain authored
close #17011 If user create an issue with button in project view, after issue is created the user is redirect to project view.
-