Antoine GIRARD
4f9a28e1f5
Make repo private to no interfere with other tests ( #2467 )
7 years ago
Antoine GIRARD
7c417bbb0d
Only check at least one email gpg key ( #2266 )
...
* Only require one email (possibly not yet validated)
* Update message error and check validation of commit
* Add integrations tests
* Complete integration for import
* Add pre-check/optimization
* Add some test (not finished)
* Finish
* Fix fixtures
* Fix typo
* Don't guess key ID
7 years ago
Lauris BH
a569d3dedc
Fix migration from pre-v15 to 1.2.0 ( #2460 )
7 years ago
Ethan Koenig
b689bb6180
Webhooks for repo creation/deletion ( #1663 )
...
* Webhooks for repo creation/deletion
* add createHookTask
* Add handles for GetSlackPayload and GetDiscordPayload
7 years ago
Lunny Xiao
04ec79579c
fix orgnization webhooks ( #2422 )
...
* fix org webhooks
* remove trace code
7 years ago
Lunny Xiao
5de94a67cf
some refactors for issue and comments ( #2419 )
7 years ago
Lunny Xiao
3e6fed368b
fix webhook test ( #2415 )
...
* fix webhook test
* fix error message
* fix typo
7 years ago
Lauris BH
edb95faba2
Fix releases to be counted from database not tags ( #2389 )
7 years ago
Morlinest
8e61823ec4
Fix tests code to prevent some runtime errors ( #2381 )
...
* Fix tests code to prevent some runtime errors
* Reduce nesting
7 years ago
Lunny Xiao
ced50e0ec1
Implementation of discord webhook ( #2402 )
...
* implementation of discord webhook
* fix webhooks
* fix typo and unnecessary color values
* fix typo
* fix imports and revert changes to webhook_slack.go
7 years ago
Lunny Xiao
e41da3845d
fix duplicated feed ( #2370 )
7 years ago
Morlinest
0f2c98adcd
Fix "index out of range" runtime error in repo_list tests ( #2376 )
7 years ago
Manuel
d9d8fad230
Add UseCompatSSHURI setting ( #2356 )
...
* Add UseCompatSSHURI setting
Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com> (+1 squashed commits)
Squashed commits:
[dda2dc79] Add ForceCloneSSHURL setting
Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com>
* Make protocol if construct more readable
Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com>
7 years ago
Lunny Xiao
f61a1d210c
Fix missing collabrative repos ( #2367 )
...
* fix missing collabrative repos
* fix bug of collabrative
* fix SQL quotes
7 years ago
Zsombor
da230a2872
Add possibility to record branch or tag information in an issue ( #780 )
7 years ago
Lunny Xiao
64b7068846
Add more test for login links and fix a bug on action retrieve ( #2361 )
...
* add more test for login links and fix a bug on action retrieve
7 years ago
Ethan Koenig
fd6e91077a
Fix SQL condition bug in GetFeeds(..) ( #2360 )
7 years ago
Bwko
1a5fe4326f
Add collaborative repositories to the dashboard ( #2205 )
...
* Add collaborative repositories to the dashboard
Remove some unused code from the Dashboard func
* fix some bug and some refactor
* fix tests
7 years ago
Lunny Xiao
2c6a0fdca8
update latest xorm version to vendor ( #2353 )
7 years ago
Ethan Koenig
7907786040
Trigger sync webhooks on UI commit ( #2302 )
...
* Trigger sync webhooks on UI commit
* Also fix UI upload/delete
7 years ago
Lunny Xiao
f960e19c59
Only update needed columns when update user ( #2296 )
...
* only update needed columns when update user
* fix missing update_unix column
7 years ago
Lunny Xiao
921d90fd8b
fix 500 error when view an issue which's milestone deleted ( #2297 )
7 years ago
G
34df9deff1
Convert xorm literal queries to method calls ( #2253 )
7 years ago
Ethan Koenig
7e0654bd9e
Fix counts on issues dashboard ( #2215 )
...
* Fix counts on issues dashboard
* setupSess -> setupSession
* Unit test
* Load repo owners for issues
7 years ago
Ethan Koenig
f29458bd3a
EnableUnit() -> UnitEnabled() ( #2242 )
7 years ago
G
66e8262530
Replace calls to xorm UseBool with Where ( #2237 )
7 years ago
Ethan Koenig
fd45a032a7
Fix bare-repo bugs ( #2199 )
...
* Fix bare-repo bugs
* Integration tests
* Unused import
7 years ago
Ethan Koenig
a27863b6d1
Fix issue updated_unix bug ( #2204 )
7 years ago
Ethan Koenig
5f37944dff
Fix unclosed session bug ( #2214 )
7 years ago
Lauris BH
1d032f5220
Fix compiling without sqlite and gcc ( #2177 )
7 years ago
Ethan Koenig
48898e5d0b
Fix PR nil-dereference bug ( #2195 )
...
* Fix PR nil-dereference bug
* Revert to original error format
7 years ago
Lauris BH
dde0052ca2
Fix key usage time update if the key is used in parallel for multiple operations ( #2185 )
7 years ago
Lauris BH
f33e6ae09e
Remove unit types commits and settings ( #2161 )
...
* Remove unit types commits and settings
* Can not limit units in administrator teams
* Limit changing units only to teams with read and write access mode
* Small code optimization
7 years ago
Lauris BH
b639fa1648
Ignore invalid issue numbers in commit messages. Fixes #2022 ( #2150 )
7 years ago
Ethan Koenig
858324c21a
Fix username rendering bug ( #2122 )
...
* Fix username rendering bug
* XSS integration test
* Migration to unescape user full names
7 years ago
Antoine GIRARD
30787e48f2
Improve org error handling ( #2117 )
...
* Improve ErrOrgNotExist type
Return new error type
Use good error check
Use new method to check error
Update tests
* Fix unchanged method name report
7 years ago
Ethan Koenig
a52cd59727
Fix unchecked error bug ( #2110 )
7 years ago
Lauris BH
f189ccd2d6
Fix git hooks update to receive required arguments. Fixes #2090 ( #2095 )
...
* Changed migration calling so that migrations can use models package
7 years ago
Ethan Koenig
eae9154811
Fix SQL bug in models.PullRequests
7 years ago
Lauris BH
12cb6cd3c9
Merge pull request #2087 from Bwko/fix_error_exit
...
Fix exit status 1 not handled @ getMergeCommit (#2087 )
7 years ago
Bwko
b36849dc1f
Fix exit status 1 not handled @ getMergeCommit
7 years ago
Andrey Nering
935b40fd8e
Merge pull request #2083 from ethantkoenig/check_err/org_avatar
...
Don't ignore gravatar error
7 years ago
Ethan Koenig
05e3726415
Use default avatar on error
7 years ago
Lauris BH
783b1967e2
Fix release display and correct paging ( #2080 )
7 years ago
Lunny Xiao
33f3165296
remove unnecessary blank lines and wrong error log
7 years ago
iszla
3f9016430f
Pagination on releases page ( #2035 )
...
* Added count to GetReleasesByRepoID so pagination will work
* Separated it out to a new function, can then also leave the API part unaffected
* Remove extra whitespace added in untouched function
* Added comment and corrected name in error handler
* Account for if the user is owner or not in the count
* Also check if repo is draft
* revert back to the correct count in the ReleasesToDisplay loop
* Fixed lint error regarding else with return statement
* Use Cond struct instead of string, corrected name in error handler
* Removed unused return variable names
7 years ago
Lauris BH
32fc44aa83
Make time diff translatable ( #2057 )
7 years ago
Dan Magnus Lindvall
79daf31058
Setting to disable authorized_keys backup ( #1856 )
...
* Add setting to disable authorized_keys backup when rewriting public keys
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Update default value to comply with documentation
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Use tmp-file instead of bak-file for saving manually added keys.
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Change casing
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Change casing and build bakpath with sprintf only
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Only close file once
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Do not modify calcFingerprint
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Fix casing
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Change style from disable to enable
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Change name, just SSH_BACKUP_AUTHORIZED_KEYS
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Do not check for directory existence if backup is disabled
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
7 years ago
Ethan Koenig
80707c4736
Fix default ghost assignee bug ( #2069 )
7 years ago
Jonas Franz
441986a473
Fix "Dashboard shows deleted comments" ( #1995 )
7 years ago
Ethan Koenig
2559a34b97
Load label ID in NewLabels ( #2045 )
7 years ago
Győrvári Gábor
f2afed3098
Enable assignee e-mail notification ( #2003 )
...
* Enable assignee e-mail notification
* Check assignee and doer to avoid self made comment notifications.
* Assignee not always defined
* New method to avoid error when assignee deleted
* Assignee empty check
7 years ago
Ethan Koenig
902a749fd9
Fix fast-forward PR bug ( #1989 )
7 years ago
Lunny Xiao
d71fad2ab7
Fix #2001 and fix issue comments hidden ( #2016 )
...
* revert #2001 and fix issue comments hidden
* fix #2001
* fix import
* improve comment type
* reduce unnecessary join
* fix comment on FindCommentsOptions
7 years ago
Lauris BH
6db387a21e
Refactor session close as xorm already does everything needed internally ( #2020 )
7 years ago
Lauris BH
165cf33771
Wrong PR merge commit ID saved ( #2007 )
7 years ago
Ethan Koenig
255adc40ae
Don't show non-comments in comments API ( #2001 )
7 years ago
Lauris BH
1a906f800d
Fix GPG email checking to be case insensitive ( #1988 )
7 years ago
Lunny Xiao
e2ec4b7c23
fix bu ong normal user visit public repo ( #1984 )
7 years ago
Ethan Koenig
8fc64741d9
Fix deleted milestone bug ( #1942 )
...
* Fix deleted milestone bug
* Use locale for ghost milestone name
* Fix pointer bug
7 years ago
Ethan Koenig
ce9b86082c
Consolidate boilerplate in integration tests ( #1979 )
7 years ago
Ethan Koenig
8fcda0442e
Fix search by issue type ( #1914 )
...
* Fix search by issue type
7 years ago
Kim "BKC" Carlbäcker
bf48c8ebdd
SQLite has a query timeout. Hopefully fixes most 'database locked' errors ( #1961 )
...
* SQLite has a query timeout. Fixes 'database locked' errors
7 years ago
Lunny Xiao
31b5e9177f
fix collborators lack of units on orgnization repositories ( #1968 )
...
* fix collborators lack of units on orgnization repositories
* also change log level to debug
7 years ago
Ethan Koenig
57cabb3ad3
Fix diff of renamed and modified file ( #1967 )
7 years ago
Antoine GIRARD
274149dd14
Switch to keybase go-crypto (for some elliptic curve key) + test ( #1925 )
...
* Switch to keybase go-crypto (for some elliptic curve key) + test
* Use assert.NoError
and add a little more context to failing test description
* Use assert.(No)Error everywhere 🌈
and assert.Error in place of .Nil/.NotNil
7 years ago
Ethan Koenig
96152c38b1
Fix bug in Action.loadRepo() ( #1959 )
7 years ago
Ethan Koenig
b38b61bbc1
Fix import order ( #1951 )
7 years ago
Andrey Nering
635273cea6
Merge pull request #1829 from ethantkoenig/no_branches
...
Commitless repos should be bare
7 years ago
Ethan Koenig
9fbdd7d787
Fix engine bug in getIssueByID ( #1934 )
7 years ago
Ethan Koenig
e0a63a20e0
Fix errors caused by force push ( #1927 )
7 years ago
Dennis Keitzel
96b4780727
Gracefully handle bare repositories on API operations. ( #1932 )
...
Signed-off-by: Dennis Keitzel <github@pinshot.net>
7 years ago
Ethan Koenig
73836ce8c4
Fix ghost user bug ( #1913 )
...
Fix bug where unassigned issues would appear to be assigned to a ghost user
7 years ago
Dan Magnus Lindvall
ff7424179e
Delete Public SSH Key tmp file after calculating fingerprint ( #1855 )
...
* Delete public key tmp file after calculating fingerprint
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Move line
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Remove defer statement
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Readd defer statement and move remove
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Delete space
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
7 years ago
Sandro Santilli
f6b58964d7
Include formatting check to the `make test` (and thus also `check`) rule ( #1366 )
...
* Include formatting check to the `make check` rule
... and give it its own standalone target too (make fmt-check)
Show diff on fmt-check failure
Do not allow running "fmt-check" with incompatible go version
Also simplify the `fmt` rule
* Forbid running "make fmt" with Go version != 1.7 or 1.8
* Ignore bindata.go for spelling and formatting checks
also remove duplicated variable assignment for GOFILES
* Run `make fmt`
7 years ago
Phil Hopper
6ec07a6bd7
Make `LocalCopyPath` a setting instead of a hard-coded path ( #1881 )
7 years ago
Ethan Koenig
ca9169fbe9
Migration to fix existing owner team units ( #1873 )
7 years ago
Bo-Yi Wu
703d18e50d
feat: add check misspelling ( #1877 )
7 years ago
Andrey Nering
ed31dff5ab
Merge pull request #1874 from ethantkoenig/typo/issue_test
...
Fix misspelled variables
7 years ago
Ethan Koenig
9f9289fc68
Run unused test
7 years ago
Ethan Koenig
1a09afc729
Fix misspelled variables
7 years ago
Ethan Koenig
3e74b5cf51
Rename misnamed migration ( #1867 )
7 years ago
Ethan Koenig
b900c04316
Display draft releases ( #1854 )
...
* Display draft releases
* Include ctx.User in user cache
* Integration test
7 years ago
Ethan Koenig
036ce3f813
Fix bug in removeOrgRepo ( #1858 )
7 years ago
Ethan Koenig
4e5ee2b67a
Fix user profile activity feed ( #1848 )
...
* Fix user profile activity feed
* gofmt, and avoid overlapping database connections
7 years ago
Ethan Koenig
a977ab7889
Don't ignore error in getMergeCommit ( #1843 )
7 years ago
Ethan Koenig
336e311a7c
Fix locking bug in removeOrgRepo ( #1842 )
7 years ago
Ethan Koenig
5554165a0c
Fix pull request compare link ( #1832 )
...
* Fix pull request compare link
* Integration test
7 years ago
Ethan Koenig
bfb44f8854
Fix status table race condition ( #1835 )
7 years ago
Ethan Koenig
474d636794
Update code.gitea.io/git ( #1824 )
...
* Update code.gitea.io/git
* Update function calls
* govendor fetch
7 years ago
Ethan Koenig
367ff327ed
Use ghost users in issues/PRs ( #1831 )
7 years ago
Timo Myyrä
2525195749
use writeTmpKeyFile in calcFingerprint ( #1828 )
...
this makes calcFingerprint use SSH.KeyTestpath instead of os temp dir.
7 years ago
Jonas Östanbäck
b93568cce4
xxx_active_code_live setting in printed in hours and minutes instead … ( #1814 )
...
* xxx_active_code_live setting in printed in hours and minutes instead of just hours
* Update app.ini description of xxx_code_lives settings
7 years ago
Rémy Boulanouar
e0c6ab2d44
Add Gitea Webhook ( #1755 )
...
* Replace Gogs by Gitea
* Fix missing changes
* Create Gitea webhook and put Gogs webhook apart.
7 years ago
Ethan Koenig
c85ff532e9
Commitless repos should be bare
7 years ago
Ethan Koenig
bafd778c25
Fix invalid reference in feeds template ( #1820 )
...
* Fix invalid reference in feeds template
* Comment for GetActAvatar
* Add integration test
7 years ago
Ethan Koenig
7e6ff69c00
Fix 500 for GET /teams/:id endpoints ( #1811 )
...
* Fix 500 for GET /teams/:id endpoints
* Integration test for GET /team/:id
* Clean up integration test
7 years ago
Ethan Koenig
39348cd27e
Give all units to owner team ( #1812 )
7 years ago
Ethan Koenig
9c66d1d9ea
Fix deadlock in updateRepository ( #1813 )
7 years ago
Ethan Koenig
0c332f0480
Fix activity feed ( #1779 )
...
* Fix activity feed
Preserve actions after user/repo name change
* Add missing comment
* Fix migration, and remove fields completely
* Tests
7 years ago