Mario Lubenka
24fa56830f
Enable switching to a different source branch when PR already exists ( #7823 )
...
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
6 years ago
David Svantesson
0fa9ea516a
Rewrite existing repo units if setting is not included in api body ( #7811 )
...
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
6 years ago
Gary Kim
9b95b41aa8
Prevent Commit Status and Message From Overflowing On Branch Page ( #7800 ) ( #7808 )
...
Signed-off-by: Gary Kim <gary@garykim.dev>
6 years ago
Antoine GIRARD
38e799779f
api: fix multiple bugs with statuses endpoints ( #7785 ) ( #7807 )
...
* fix commit statuses api url
* search refs before passing sha
* adjust tests
* directly search tags and branches names + remove un-needed check in NewCommitStatus
* fix comment
* de-duplicate code
* test: use relative setting.AppURL
* Update routers/api/v1/repo/status.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
* remove return
* Update routers/api/v1/repo/status.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
6 years ago
WGH
4f39e56795
Fix Slack webhook fork message ( #7774 ) ( #7783 )
...
The order of forkee and fork was mixed up.
6 years ago
Lunny Xiao
7b92f91e88
Fix approvals counting ( #7757 ) ( #7777 )
...
* fix approvals counting
* fix tests
* fmt
6 years ago
Lunny Xiao
aea49d0b92
fix rename failed when rewrite public keys ( #7761 ) ( #7769 )
6 years ago
zeripath
1b5908fb6a
Fix dropTableColumns sqlite implementation ( #7710 ) ( #7765 )
...
* Fix dropTableColumns sqlite implementation
* use droptables and its index dropping support in v78 and v85
* golang-ci fixes
* Add migration from gitea 1.3.3 for sqlite which reveals the droptables bug - thus showing this works
6 years ago
zeripath
65a76b7cb0
Be more strict with git arguments ( #7715 ) ( #7762 )
...
* Be more strict with git arguments
* fix-up commit test
* use bindings for branch name
6 years ago
Lunny Xiao
c6f1825fe9
add pagination for admin api get orgs and fix only list public orgs bug ( #7742 ) ( #7752 )
6 years ago
guillep2k
4f5dbc4d00
Backport: fix repo_index_status lingering when deleting a repository ( #7738 )
6 years ago
Lauris BH
4ee8982e91
Fix milestone completness calculation when migrating ( #7725 ) ( #7732 )
6 years ago
guillep2k
0d10482168
Fixes indexed repos keeping outdated indexes when files grow too large ( #7731 )
...
* Fixes indexed repos keeping outdated indexes when files grow too large
Co-Authored-By: zeripath <art27@cantab.net>
6 years ago
guillep2k
6d441de2bd
Backport: skip non-regular files (e.g. submodules) on repo indexing ( #7717 )
...
* Backport: skip non-regular files (e.g. submodules) on repo indexing
* Include "executable" files in the index, as they are not necessarily binary
6 years ago
Lunny Xiao
d15e49f7ff
improve branches list performance and fix protected branch icon when no-login ( #7695 ) ( #7704 )
6 years ago
zeripath
39da4ac6d4
Correct wrong datetime format for git ( #7689 ) ( #7690 )
6 years ago
techknowlogick
8f29011723
1.9.0 Changelog ( #7676 )
6 years ago
Lunny Xiao
ee43d20d3b
fix duplicated webhook when creating issue with assignees ( #7681 ) ( #7684 )
6 years ago
Lunny Xiao
99ffd826e5
upgrade macaron/captcha to fix random error problem ( #7407 ) ( #7683 )
6 years ago
David Svantesson
93bac4e10d
Backport of #7675 . ( #7682 )
...
Move add to hook queue for created repo to outside xorm session.
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
6 years ago
6543
9fbb898058
Show protection symbol if needed on default branch ( #7660 ) ( #7668 )
...
* backport issue showing portection symbol if needet at default branch
* sugestion to use range .Branches
d57973a804
6 years ago
6543
0a9794a6bc
hide delete/restore button on archived repos [backport] ( #7660 )
...
* hide delete/restore button on archived repos
close issue #7653
* backport vor v1.9
* hide column also
* move protected icon to first colum
backport parts of https://github.com/go-gitea/gitea/pull/7461
* backport comit divergenze fix
https://github.com/go-gitea/gitea/issues/7625
6 years ago
Lunny Xiao
d4044b9c98
fix bug on migrating milestone from github ( #7665 ) ( #7666 )
6 years ago
Antoine GIRARD
1e6d2e47e9
css: use flex to fix floating paginate ( #7656 ) ( #7662 )
6 years ago
Lunny Xiao
d827b0bfb7
change length of some repository's columns ( #7652 ) ( #7655 )
6 years ago
renothing
d789170e31
fix wrong email when use gitea as OAuth2 provider ( #7640 ) ( #7647 )
...
when you use gitea as OAuth2 provider, the /api/v1/user should return
user primary email as identifier, which is unique in OAuth2 clients.
this patch use convert.ToUser replace all u.APIFormat in api requests,
return primary email when caller is yourself or admin.
6 years ago
Andreas Shimokawa
9bbe3eb0b4
reserve .well-known username ( #7638 )
6 years ago
silverwind
650fdceb5a
Fix syntax highlight initialization ( #7617 ) ( #7626 )
...
* Fix syntax highlight initialization
Previously hljs was initialized via a function that relies on the
DOMContentLoaded event, registerd after jQuery's 'ready' event. I assume
that with the recent jQuery update, DOMContentLoaded may not be
guaranteed to fire after 'ready'. Fixed this via vanilla JS initalization.
Fixes: https://github.com/go-gitea/gitea/issues/7559
* semicolon
6 years ago
Lunny Xiao
4c69e158e5
Fix bug create/edit wiki pages when code master branch protected ( #7580 ) ( #7623 )
...
* fix bug create/edit wiki pages when code master branch protected
* improve FullPushingEnvironment function
6 years ago
zeripath
b7e41f7b8f
Fix panic on push at #7611 ( #7615 ) ( #7618 )
...
* Fix panic in #7611
Use pr.IssueID instead of pr.Issue.ID as Issue may not be loaded and is unnecessary
* Only fetch the head branch from the remote
6 years ago
zeripath
5a3d9861ba
Handle ErrUserProhibitLogin in http git ( #7586 , #7591 ) ( #7590 )
...
* Handle ErrUserProhibitLogin in http git (#7586 )
* Use 403
6 years ago
zeripath
adb43358bc
fix #7568 ( #7587 ) ( #7589 )
6 years ago
silverwind
d6a980501b
Fix file header overflow in file and blame views ( #7562 ) ( #7579 )
6 years ago
Richard Mahn
103a66ae83
Fixes #7564 - Malformed URLs in API git/commits response ( #7565 ) ( #7567 )
6 years ago
silverwind
426fd2a816
Fix empty commits now showing in repo overview ( #7521 ) ( #7563 )
...
* Fix empty commits now showing in repo overview
* add test
* make fmt
6 years ago
Lunny Xiao
337f2625ac
Fix markdown invoke sequence ( #7513 ) ( #7560 )
6 years ago
Lunny Xiao
5ebf4990a5
Fix repository's pull request count error ( #7518 ) ( #7524 )
...
* fix pr count error
* fix tests
6 years ago
Lunny Xiao
3fd07a0be6
remove duplicated webhook trigger ( #7511 ) ( #7516 )
6 years ago
Antoine GIRARD
d372539f79
Backport drone fix from #7480 and #7496 ( #7504 )
...
* don't make release-version deps on transalations since translations is only triggered by push on master (#7496 )
* drone/docker: Use a more standard format (#7480 )
* drone/docker: Use a more standard format
Based on the plugin drone structure itself : ebce953fc4/.drone.yml (L9)
Use autotag : http://plugins.drone.io/drone-plugins/drone-docker/#autotag
* use latest plugins/docker:linux-amd64
* remove useless cache_from
* Don't depends on translations step
6 years ago
Richard Mahn
91e24a3a10
Fixes #7474 - Handles all redirects for Web UI File CRUD ( #7478 ) ( #7507 )
...
* Fixes #7474 - Handles all redirects for Web UI File CRUD
* Fixes lint errors
* Typo fix
* Adds unit tests for a few helper functions
* Fixes per review
* Fix for new branch creation and to unit test
* Fixes the template used for errors on delete
6 years ago
Richard Mahn
a29e667eff
Backport for #7475 - settings error ( #7483 )
6 years ago
Matti R
92b993c91f
Fetch refs for successful testing for tag ( #7388 )
6 years ago
techknowlogick
33b1027c76
1.9.0-rc2 changelog ( #7467 )
...
* 1.9.0-rc2 changelog
* Update CHANGELOG.md
6 years ago
mrsdizzie
b45f9260bf
Fix regex for issues in commit messages ( #7444 ) ( #7466 )
...
* Fix regex for issues in commit messages
Use same regex as markup for matching in commits.
Fixes #7438
* make fmt
6 years ago
Allen Wild
ee1a8d7b41
cmd/serv: actually exit after fatal errors ( #7460 )
...
Regression in 356854fc5f
, where
a log.Fatal call was removed. log.Fatal calls os.Exit(1) as intended,
but without it the fail() function returns normally and execution
continues past the fatal error, causing a panic.
This is visible as a go panic log and stack trace returned to the SSH
client, which is not only ugly, it leaks server and build system
information.
Fix by removing the stray return statement so that the fail() function
always calls os.Exit(1).
Backport: 2186a99c76
Fixes: https://github.com/go-gitea/gitea/issues/7457
Signed-off-by: Allen Wild <allenwild93@gmail.com>
6 years ago
Gary Kim
ba19a35b6b
Fix an issue with some pages throwing 'not defined' js exceptions #7450 ( #7453 )
...
Fix an issue introduced by cc8e7dd355
Signed-off-by: Gary Kim <gary@garykim.dev>
6 years ago
silverwind
cc8e7dd355
fix Dropzone.js integration ( #7445 ) ( #7448 )
6 years ago
Cherrg
f52840623c
backport of #7393 - create class for inline positioned lists ( #7439 )
...
see #7393
affects #6464
Signed-off-by: Michael Gnehr michael@gnehr.de
6 years ago
silverwind
97d4a38e01
Diff: Fix indentation on unhighlighted code ( #7435 ) ( #7443 )
...
There was a missing space before the `nohighlight` class which made the
previous class concatenate wrongly as `wrapnohighlight` in the template.
6 years ago
techknowlogick
60ccd87d6e
backport #7425 - jquery 3 ( #7442 )
6 years ago