Lunny Xiao
3e6fed368b
fix webhook test ( #2415 )
...
* fix webhook test
* fix error message
* fix typo
8 years ago
Ethan Koenig
491f0ebc58
Fix route handler order ( #2409 )
...
* Fix route handler order
* Fix more routes
8 years ago
Lunny Xiao
15d3872281
fix missing orgnization discord webhook ( #2414 )
8 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
8 years ago
Lunny Xiao
e41da3845d
fix duplicated feed ( #2370 )
8 years ago
Lunny Xiao
f61a1d210c
Fix missing collabrative repos ( #2367 )
...
* fix missing collabrative repos
* fix bug of collabrative
* fix SQL quotes
8 years ago
Zsombor
da230a2872
Add possibility to record branch or tag information in an issue ( #780 )
8 years ago
David Schneiderbauer
174255e74e
Log failed authentication attempts with remote address for fail2ban ( #2334 )
...
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
8 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
8 years ago
Antoine GIRARD
fd8e8a421a
Improve swagger doc ( #2274 )
...
* Add swagger comment for adminCreateOrg
* Add swagger comment for admin route
* add hook swagger doc
* Add tags
* Add auth
* Fix name of responses
* Edit name method
* Update vendor
* make generate-swagger
8 years ago
Sandro Santilli
2c3a229a3c
Add OpenID configuration in install page ( #2276 )
8 years ago
David Schneiderbauer
5707ad3bb7
Add AppURL without trailing slash to TOTP issuer parameter to prevent conflicting accounts on multiple gitea installations ( #2335 )
...
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
8 years ago
Morlinest
e08d1fcc15
Fix variable name typo ( #2327 )
8 years ago
Michael Kuhn
934dd41fa6
Make SHOW_USER_EMAIL also apply to profiles ( #2258 )
...
The e-mail address is currently only hidden from the explore page.
8 years ago
Ethan Koenig
7907786040
Trigger sync webhooks on UI commit ( #2302 )
...
* Trigger sync webhooks on UI commit
* Also fix UI upload/delete
8 years ago
Morlinest
951fb572a7
Fix and improve dashboard repo UI ( #2285 )
...
* Fix and improve dashboard repo UI
* Change order of scripts loading
* Remove "mirror" tab
* Remove single tab panel for "org user"
* Add localization strings
* Create vue component and change event for search
* Add "mirrors" filter
8 years ago
Ethan Koenig
29f3a6e492
Fix rendering of external links ( #2292 )
8 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
8 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
8 years ago
Ethan Koenig
f29458bd3a
EnableUnit() -> UnitEnabled() ( #2242 )
8 years ago
Bwko
1193627014
Fix Commits nil pointer dereference ( #2203 )
8 years ago
Florian / sinnlosername
27c2dcf60e
Fixed robots.txt 404 error ( #2226 )
...
* Update routes.go
* Update routes.go
8 years ago
Ethan Koenig
49df677c47
Check for access in /repositories/:id ( #2227 )
...
* Check for access in /repositories/:id
* Integration test
8 years ago
Lunny Xiao
04c4028aea
fix some bug
8 years ago
Ethan Koenig
fd45a032a7
Fix bare-repo bugs ( #2199 )
...
* Fix bare-repo bugs
* Integration tests
* Unused import
8 years ago
Moritz Heiber
7e12aac61c
Only allow token authentication with 2FA enabled ( #2184 )
...
* Don't allow for plain username/password authentication when 2FA is enabled
* Removed debugging statement
* Don't assume a token belongs to a given user, handle two-factor errors properly
* Simplified user/token matching, refactored error handling for two-factor authentication
* Change authentication response to avoid bruteforcing
* Add TODO item as a comment for changing the response for security purposes
8 years ago
Bwko
8f171210b9
Revert "Add ability to fork your own repos ( #761 )" ( #2193 )
8 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
8 years ago
Christian Weiske
c4ccf16c43
Fix OpenID registration route ( #2160 )
...
Fixes #2101
8 years ago
Aaron Walker
6a3c03762a
API: support '/orgs/:org/repos' ( #2047 )
...
* API: support '/orgs/:org/repos'
8 years ago
Ethan Koenig
93a1de4842
Fix repo API bug ( #2133 )
...
Don't require token when not necessary
8 years ago
Ethan Koenig
8f1d62ad3b
Fix GET /users/:username/repos endpoint ( #2125 )
8 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
8 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
8 years ago
Ethan Koenig
f99489d5c5
Fix API for branches with slashes ( #2096 )
8 years ago
Lauris BH
783b1967e2
Fix release display and correct paging ( #2080 )
8 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
8 years ago
Shuanglei Tao
d389ed25a5
Fix: `http: multiple response.WriteHeader calls` ( #2038 )
...
We can't change the http status code here, because the response has been written.
8 years ago
Lauris BH
32fc44aa83
Make time diff translatable ( #2057 )
8 years ago
Jonas Franz
441986a473
Fix "Dashboard shows deleted comments" ( #1995 )
8 years ago
Ethan Koenig
735676267e
Integration tests for issues API ( #2059 )
8 years ago
Ethan Koenig
2559a34b97
Load label ID in NewLabels ( #2045 )
8 years ago
Ethan Koenig
3ffedeab03
Fix bug in issue labels API ( #2048 )
8 years ago
Kim "BKC" Carlbäcker
cc6b3f60c6
Fix displaying commits and files of PR created from now deleted fork ( #2023 )
...
Fix displaying commits and files of PR created from now deleted fork
8 years ago
Lunny Xiao
228247511a
repo/editor: fix breadcrumb path cuts parent dirs ( #3859 ) ( #2032 )
8 years ago
Lunny Xiao
75b5be236a
Display config file path on admin panel ( #2030 )
8 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
8 years ago
Lauris BH
0a5dc640a1
Make branch deletion URL more like GitHub's, fixes #1397 ( #1994 )
...
* Make branch deletion URL more like GitHub's, fixes #1397
* Add PR branch deletion integration test
* Do not allow deleting protected branch
* Change http error code to 403 if user has no write rights to repository
* Add check to not panic if forked repository has alrady been deleted
8 years ago
Lauris Bukšis-Haberkorns
63504bf132
Fix displaying commits and files of PR created from now deleted forked repository
8 years ago
Ethan Koenig
4df1a24096
Let not-logged-in users view releases ( #1999 )
8 years ago
Bo-Yi Wu
b7812be33a
fix misspell ( #1996 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 years ago
Ethan Koenig
8fc64741d9
Fix deleted milestone bug ( #1942 )
...
* Fix deleted milestone bug
* Use locale for ghost milestone name
* Fix pointer bug
8 years ago
Antoine GIRARD
2bcd9471c9
Separate generate swagger + fix sed os specific ( #1791 )
...
* Separate generate-swagger
* Remove go generate rules
* Add missing definition replacement + remove use of -i sed flag
for compatibility with mac os default sed version.
This is a little hacky a better solution could be use.
* Use custom SED_INPLACE
depending of platform detection
* Use SED_INPLACE for swagger-ui also
8 years ago
Ethan Koenig
8fcda0442e
Fix search by issue type ( #1914 )
...
* Fix search by issue type
8 years ago
Ethan Koenig
5e92b82ac6
Fix uppercase default branch bug ( #1965 )
8 years ago
Jonas Östanbäck
ad70af1248
Add repo fork swagger ( #1941 )
8 years ago
Dennis Keitzel
96b4780727
Gracefully handle bare repositories on API operations. ( #1932 )
...
Signed-off-by: Dennis Keitzel <github@pinshot.net>
8 years ago
silverwind
f2fcd9dcd8
Support CRLF when splitting code lines for display ( #1862 )
...
* Support CRLF when splitting code lines for display
* refactor, fix mixed match
* fmt
* split on both LF and CRLF, use raw literals in regexes
* simplify
8 years ago
Ethan Koenig
afe1f1c4af
Fix 500 in public activity page ( #1901 )
8 years ago
Ethan Koenig
9ddc35e343
Cache ctx.User in retrieveFeeds ( #1902 )
8 years ago
Andrey Nering
65cf6cc848
Merge pull request #1905 from ethantkoenig/fix/org_api_auth
...
Require token before checking membership/ownership
8 years ago
Andrey Nering
a70073e768
Merge pull request #1904 from ethantkoenig/fix/org_api
...
Bug fixes for org member API
8 years ago
Ethan Koenig
971e3a35c1
Require token before checking membership/ownership
8 years ago
Ethan Koenig
f38842320e
Bug fixes for org member API
8 years ago
camlafit
952cb8046f
A missing / to provide a correct endpoint
...
solve #1899
8 years ago
Bo-Yi Wu
703d18e50d
feat: add check misspelling ( #1877 )
8 years ago
Ethan Koenig
023cad4461
gofmt ( #1868 )
8 years ago
Ethan Koenig
817a405118
Fix paginater length ( #1866 )
8 years ago
Ethan Koenig
2ec5dc1661
Fix 404 for external tracking issues ( #1852 )
...
* Fix 404 for external tracking issues
* Fix 404 for new/upload file
8 years ago
Ethan Koenig
b900c04316
Display draft releases ( #1854 )
...
* Display draft releases
* Include ctx.User in user cache
* Integration test
8 years ago
Rémy Boulanouar
62f600cf1c
Display all organization from user settings ( #1739 )
...
* Display all organization from user settings
* fix Tab selection
* Update locale_en-US.ini
* Add a condition for display Create organization button
* Remove french translation
* Remove unnecessary admin flag
8 years ago
Antoine GIRARD
976c2a05fa
Fix change introduce by update of go-swagger. ( #1727 )
8 years ago
Ethan Koenig
4e5ee2b67a
Fix user profile activity feed ( #1848 )
...
* Fix user profile activity feed
* gofmt, and avoid overlapping database connections
8 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
8 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.
8 years ago
Andrey Nering
e67ece26f0
Merge pull request #1750 from andreynering/dashboard-search-org-repos
...
More fixes for dashboard search
8 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
8 years ago
Lunny Xiao
3611a3e552
fix bug to deny to add orgnization as a member of an orgnization or team ( #1815 )
8 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
8 years ago
Ethan Koenig
ff2464c87d
Fix renaming bug ( #1786 )
8 years ago
Jonas Östanbäck
7b907ed348
Rename RepoCreationNum -> MaxCreationLimit ( #1766 )
8 years ago
Jonas Östanbäck
85a7396525
Add error direclty when user tries to create new repo and limit already hit ( #1767 )
8 years ago
Lunny Xiao
6362462da8
fix admin lost permission caused by #947
8 years ago
Jonas Östanbäck
0161e46b5a
Add swagger comment for MirrorSync ( #1747 )
...
* Add swagger comment for MirrorSync
* Generate swagger.v1.json
8 years ago
Andrey Nering
8906b2891b
Fix test
...
There was a panic when there's no logged in user
8 years ago
Lunny Xiao
fd6034aaf2
Add units to team ( #947 )
...
* add units to team
* fix lint
* finish team setting backend
* finished permission controll on routes
* fix import blank line
* add unit check on ssh/http pull and push and fix test failed
* fix fixtures data
* remove unused code
8 years ago
Andrey Nering
dc2b28ed76
Show repos acording to user/organization
8 years ago
Andrey Nering
8917f47347
Fix org repos not showing on dashboard search
8 years ago
Jonas Östanbäck
e214728725
Add new text for reset password flash ( #1718 )
...
* Forgot password should use ResetPwdCodeLives, not ActiveCodeLives
* Improve documentation for different send mail functions related to password reset
* Improve documentation in conf/app.ini regarding xxx_CODE_LIVE_MINUTES settings
8 years ago
Lauris BH
524885dd65
LDAP user synchronization ( #1478 )
8 years ago
Lauris BH
51d0becb42
Add configuration option for default permission to create Organizations ( #1686 )
8 years ago
Lunny Xiao
2bb8b3a562
fix bug when push a branch name with / & fix an integration test bug ( #1689 )
8 years ago
Lauris BH
79494047b0
Show commit status icon in commits table ( #1688 )
...
* Show commit status icon in commits table
* Add comments
* Fix icons
* Few more places where commit table is displayed
* Change integration test to use goquery for parsing html
* Add integration tests for commit table and status icons
* Fix status to return lates status correctly on all databases
* Rewrote lates commit status selects
8 years ago
Lunny Xiao
930d1759ae
Remove env user salt since no need to use ( #1515 )
...
* remove env user salt since no need to use
* remove unused variable from update.go
8 years ago
Lauris BH
2e17dda8bb
Remove sha1 hash display in repository table and add latest commit GPG check ( #1678 )
8 years ago
silverwind
935caa7f95
Download files to their original filename ( #1676 )
8 years ago
Bo-Yi Wu
75f1afd1fd
fix: tag contain character ) will http 500 on release page ( #1670 )
8 years ago
Ethan Koenig
a5f28a4544
gofmt ( #1662 )
8 years ago
Lunny Xiao
1773e88643
Drop db operations from hook commands ( #1514 )
...
* move all database operations from hook command to web command and instead of internal routes
* bug fixed
* adjust the import path sequences
* remove unused return value on hookSetup
8 years ago
Antoine GIRARD
3edb0c5894
Generate swagger json ( #1402 )
...
- Generate swagger.json into public/
- Add swagger-ui auto-installation
- Add footer link to local swagger-ui
- Add /swagger url for using app url.
- Fix Swagger-UI version via git tag
8 years ago