summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Commit list display tweaks (#14043)silverwind2020-12-182-36/+14
| | | | | | | | | | - Make plain <pre> inherit our monospace fonts, overriding fomantic's css reset which means expanded commit messages now follow the font settings. - Adjust link styling and keyword highlighting in commit message - Consolidate .commit-summary styles to single selector group Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Accept multiple SSH keys in single LDAP SSHPublicKey attribute (#13989)zeripath2020-12-183-9/+91
| | | | | | | | * Accept multiple SSH keys in single LDAP SSHPublicKey attribute Fix #13984 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Show status check for merged PRs (#13975)Cirno the Strongest2020-12-183-28/+41
| | | | | | | | | | | * Show status check for merged PRs * Handle PRs with no commits * Styling Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: 6543 <6543@obermui.de>
* Add whiteline after label on Signing Verification Settings (#14042)Cirno the Strongest2020-12-181-1/+1
|
* [Refactor] CombinedStatus and CommitStatus related functions & structs (#14026)65432020-12-1817-206/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * RM unused struct * rename (*CommitStatus) loadRepo() -> loadAttributes() * move ToCommitStatus into its own file * use CommitStatusState instead of StatusState * move CombinedStatus convertion into convert package * let models.GetLatestCommitStatus use repoID direct and accept ListOptions * update swagger docs * fix tests * Fix swagger docs * rm page * fix swagger docs!!! * return json null * always return json * rename api.Status to api.CommitStatus * fix swagger docs * sec swagger fix
* Fix panic in BasicAuthDecode (#14046)silverwind2020-12-172-0/+12
| | | | | | | | | | * Fix panic in BasicAuthDecode If the string does not contain ":" that function would run into an `index out of range [1] with length 1` error. prevent that. * Update BasicAuthDecode() Co-authored-by: 6543 <6543@obermui.de>
* Makefile cleanup & double golangci-lint timeout (#14044)silverwind2020-12-171-4/+2
| | | | | | | | * Makefile cleanup The xmldom dependency is no longer required since #13680. Also, whitespace cleanup. * double the golangci-lint timeout
* Clean up SVG (#13680)techknowlogick2020-12-1711-182/+35
| | | | | | | | | | | | | | | * Clean up SVG * update per feedback * fix css style * Delete gitea.png * no new line at end of file * fix newline? Co-authored-by: 6543 <6543@obermui.de>
* Fix bug in commit verification introduced in #13673 (#14040)zeripath2020-12-171-1/+5
| | | | | | | | There is a slight bug in the commit_reader introduced in #13673 whereby commit messages which have a final unterminated line miss their final line. This PR fixes this. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Dashboard search tweaks (#14008)silverwind2020-12-173-34/+34
| | | | | | | - Fix color of inactive pagination parts caused by overreaching CSS selector. - Slightly reduce horizontal padding on list items - Add spacing around pagination and move it outside of <ul>
* Diff and code review refactors and improvements (#13922)silverwind2020-12-175-278/+124
| | | | | | | | | | | | | | | | * Diff CSS refactors and misc tweaks - Simplify Diff CSS styling - Add color variables for diff - Fix vertical centering of inline comment button - Slightly adjust text colors, e.g. in comment header * Code review improvments * selector tweak * fix diff issues, add inactive bg color Co-authored-by: 6543 <6543@obermui.de>
* Dropdown triangle fixes (#14028)silverwind2020-12-172-6/+20
| | | | | | | | | | | * Dropdown triangle fixes Fomantic's CSS assumes the dropdown triangles are fonts but we've recently swapped them for SVG so we need to wrestle a bit with Fomantic to get it to display properly and not cause buttons to resize. Fixes: https://github.com/go-gitea/gitea/issues/14014 * move css and add link
* Use native git variants by default with go-git variants as build tag (#13673)zeripath2020-12-1781-1492/+3952
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move last commit cache back into modules/git Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove go-git from the interface for last commit cache Signed-off-by: Andrew Thornton <art27@cantab.net> * move cacheref to last_commit_cache Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove go-git from routers/private/hook Signed-off-by: Andrew Thornton <art27@cantab.net> * Move FindLFSFiles to pipeline Signed-off-by: Andrew Thornton <art27@cantab.net> * Make no-go-git variants Signed-off-by: Andrew Thornton <art27@cantab.net> * Submodule RefID Signed-off-by: Andrew Thornton <art27@cantab.net> * fix issue with GetCommitsInfo Signed-off-by: Andrew Thornton <art27@cantab.net> * fix GetLastCommitForPaths Signed-off-by: Andrew Thornton <art27@cantab.net> * Improve efficiency Signed-off-by: Andrew Thornton <art27@cantab.net> * More efficiency Signed-off-by: Andrew Thornton <art27@cantab.net> * even faster Signed-off-by: Andrew Thornton <art27@cantab.net> * Reduce duplication * As per @lunny Signed-off-by: Andrew Thornton <art27@cantab.net> * attempt to fix drone Signed-off-by: Andrew Thornton <art27@cantab.net> * fix test-tags Signed-off-by: Andrew Thornton <art27@cantab.net> * default to use no-go-git variants and add gogit build tag Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @6543 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Cause NotifyMigrateRepository to emit a repo create webhook (#14004)zeripath2020-12-171-0/+12
| | | | | | | | | | | | * Cause NotifyMigrateRepository to emit a repo create webhook This PR simply makes NotifyMigrateRepository emit a Create Repo webhook. The reason for no new payload is that the information sent to NotifyMigrateRepository is only essentially the same as NotifyCreateRepository Fix #13996 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Always wait for the cmd to finish (#14006)zeripath2020-12-171-0/+1
| | | | | | | | | | After cancelling the context we still need to wait for the command to finish otherwise zombie processes may occur Fix #13987 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* fix label of --id in admin delete user (#14005)zeripath2020-12-172-7/+39
| | | | | | | | | | | | | | | | | | | | | * fix label of --id in admin delete user This pr fixes the label descriptor of `gitea admin delete user` but also adds a `--username` option. Fix #13995 Signed-off-by: Andrew Thornton <art27@cantab.net> * fix-spacing Signed-off-by: Andrew Thornton <art27@cantab.net> * Add delete email support Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* docs(docker): fix diff format. (#14035)Bo-Yi Wu2020-12-171-16/+16
| | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* HotFix: Hide private partisipation in Orgs (#13994)65432020-12-173-11/+40
| | | | | * HotFix: Hide private partisipation in Orgs * refactor & add node to fuc GetOrganizations
* Add FAQ link to Issue template (#14020)65432020-12-161-2/+3
|
* Fix webhook list styling (#14001)Cirno the Strongest2020-12-162-4/+13
| | | | | * Fix webhook list styling * As per @silverwind
* Send webhook when tag is removed via Web UI (#14015)Cirno the Strongest2020-12-161-0/+9
| | | | | * Send webhook when tag is removed via Web UI * Stray code
* Send push event when tag is created or deleted (#13999)Cirno the Strongest2020-12-161-1/+17
| | | | Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix correct diff view for PR review comments in PR view page (#14002)Jimmy Praet2020-12-161-7/+7
| | | | | | | Fixes #13683. The diff snippet that provides context for a code review comment on the pull request timeline page used to be calculated based on the headCommitID. But in 1.13, with PR #13448, this changed to the commitID from the blame for the commented line, which seems to cause these incorrect review comment diff snippets. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Store repository data in data path if not previously set (#13991)techknowlogick2020-12-155-13/+8
| | | | | | | | | | | | | * Store repository data in data path if not previously set * update docs * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-authored-by: silverwind <me@silverwind.io> * update docs Co-authored-by: silverwind <me@silverwind.io>
* add @noerw to maintainers (#13997)Norwin2020-12-151-0/+1
| | | | | | | * add @noerw to maintainers * format Co-authored-by: 6543 <6543@obermui.de>
* [API] Add ref to create/edit issue options & deprecated assignee (#13992)65432020-12-153-6/+27
| | | | | * API: Add ref to create/edit issue options * deprecate Assignee in favour of Assignees
* Standardise logging of failed authentication attempts in internal SSH (#13962)zeripath2020-12-152-8/+62
| | | | | | | | | Continuing on from #13953 continue to improve and standardise logging from internal SSH. Also updates the fail2ban setup Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix markdown checkboxes on Blink (#13988)silverwind2020-12-152-2/+8
| | | | | | Blink still requires a vendor prefix for `mask-image` and `mask-size`, so add that here to fix the rendering. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Hide command line instructions when merge form is visible (#13956)Cirno the Strongest2020-12-153-3/+10
| | | | | | | * Hide commandline instructions when merge form is visible * As per @silverwind Co-authored-by: zeripath <art27@cantab.net>
* Trim the branch prefix from action.GetBranch (#13981)zeripath2020-12-141-1/+2
| | | | | | | | | | | | | | | | | | | * Trim the branch prefix from action.GetBranch #13882 has revealed that the refname of an action is actually only a refname pattern and necessarily a branch. For examplem pushing to refs/heads/master will result in action with refname refs/heads/master but pushing to master will result in a refname master. The simplest solution to providing a fix here is to trim the prefix therefore this PR proposes this. Signed-off-by: Andrew Thornton <art27@cantab.net> * Update models/action.go Co-authored-by: a1012112796 <1012112796@qq.com> Co-authored-by: a1012112796 <1012112796@qq.com>
* Add emoji in label to project boards (#13978)Rakshith Ravi2020-12-141-1/+1
| | | | | | | | | * Update view.tmpl Added rendering of emoji to project label * Add RenderEmojiPlain to the title and remove has-emoji Co-authored-by: zeripath <art27@cantab.net>
* Do not display org avatar near icon for internal repos (#13957)Cirno the Strongest2020-12-131-5/+0
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* add thumbnail preview section to issue attachments (#13826)bobemoe2020-12-136-81/+56
| | | | | | | | | | | | | | | | * add thumbnail preview section to attachments * dont show thumbnail if the image is already shown inline * update router to pass the `content` to the attachemnts template * limit attachment preview height to 150px (same as width) * remove unused css (referance removed in https://github.com/go-gitea/gitea/pull/11141/files#diff-9faae32445ed9673de2830c9fc35e93f44487f0a0068202988adaf00a5bac850L66 ) * dont show divider after edit if no attachemnts Co-authored-by: James <inbox.dev@jhodges.co.uk> Co-authored-by: 6543 <6543@obermui.de>
* [API] Add Ref to Issue (#13946)zeripath2020-12-135-0/+8
| | | | | | | | | | * Add Ref to api.Issue This PR adds Ref to api.Issue and adds the backend parts to the migrator. Fix #13918 Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-131-5/+5
|
* Removes dangling < on emails/list.tmpl (#13970)WeebDataHoarder2020-12-131-1/+1
| | | This dangling character was leftover from commit c85bb6263503ebd335863f413214a775973a1fac from PR #13860
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-131-1/+1
|
* Markdown task list improvements (#13952)silverwind2020-12-135-16/+60
| | | | | | | | | | | | * Markdown task list improvements - Remove `.ui` class and wrappers to prevent fomantic from messing with it. - Change rendered HTML to match GitHub. - Add custom styling for the checkboxes. * fix unittest Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Whenever the password is updated ensure that the hash algorithm is too (#13966)zeripath2020-12-123-4/+4
| | | | | | | | | | | `user.HashPassword` may potentially - and in fact now likely does - change the `passwd_hash_algo` therefore whenever the `passwd` is updated, this also needs to be updated. Fix #13832 Thanks @fblaese for the hint Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-121-0/+9
|
* Possible fix the webhook API creation (#13960)Lunny Xiao2020-12-122-3/+7
| | | | | * Possible fix the webhook API creation * Fix api create webhook bug
* Fix missing username on dashboard context switch navbar (#13959)Cirno the Strongest2020-12-121-0/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-122-1/+15
|
* Enforce setting HEAD in wiki to master (#13950)zeripath2020-12-121-0/+2
| | | | | | | | | | The default branch in wikis must be master - therefore forcibly set the HEAD to master. Fix #13846 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Diff stat improvements (#13954)silverwind2020-12-124-43/+29
| | | | | | | | | | | | * Diff stat improvements - Combine number to just total number of changes - Add tooltip over stats bar - Increase contrast on file name - Refactor classes and CSS to be more reusable * misc tweaks * make count bold
* Update github.com/blevesearch/bleve v1.0.13 -> v1.0.14 (#13947)65432020-12-12101-922/+858
|
* Report permissions denied in internal SSH (#13953)zeripath2020-12-111-5/+14
| | | | | | | This PR standardizes reporting of permission denied from the internal ssh. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Ensure that HEAD is updated to match default branch in template generation ↵zeripath2020-12-112-0/+9
| | | | | | | (#13948) Fix #13912 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Ensure that pusher is not nil preventing panic in push (#13945)zeripath2020-12-111-0/+6
| | | | | | | | | | | PR #13381 refactored notification actions to call NotifyCreateRef and NotifyDeleteRef in a slightly different manner. This leads to the pusher not being set before the call. This PR ensures that the pusher is updated before the call. Fix #13940 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Reorganize Chroma styles (#13934)silverwind2020-12-117-751/+189
| | | | This moves the Chroma styles into separate files with base,light and dark variants. Should work exactly as before.