Ethan Koenig
93a1de4842
Fix repo API bug (#2133)
Don't require token when not necessary
7 jaren geleden
Ethan Koenig
8f1d62ad3b
Fix GET /users/:username/repos endpoint (#2125)
7 jaren geleden
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 jaren geleden
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 jaren geleden
Ethan Koenig
f99489d5c5
Fix API for branches with slashes (#2096)
7 jaren geleden
Lauris BH
783b1967e2
Fix release display and correct paging (#2080)
7 jaren geleden
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 jaren geleden
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.
7 jaren geleden
Lauris BH
32fc44aa83
Make time diff translatable (#2057)
7 jaren geleden
Jonas Franz
441986a473
Fix "Dashboard shows deleted comments" (#1995)
7 jaren geleden
Ethan Koenig
735676267e
Integration tests for issues API (#2059)
7 jaren geleden
Ethan Koenig
2559a34b97
Load label ID in NewLabels (#2045)
7 jaren geleden
Ethan Koenig
3ffedeab03
Fix bug in issue labels API (#2048)
7 jaren geleden
Lunny Xiao
228247511a
repo/editor: fix breadcrumb path cuts parent dirs (#3859) (#2032)
7 jaren geleden
Lunny Xiao
75b5be236a
Display config file path on admin panel (#2030)
7 jaren geleden
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 jaren geleden
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
7 jaren geleden
Lauris Bukšis-Haberkorns
63504bf132
Fix displaying commits and files of PR created from now deleted forked repository
7 jaren geleden
Ethan Koenig
4df1a24096
Let not-logged-in users view releases (#1999)
7 jaren geleden
Bo-Yi Wu
b7812be33a
fix misspell (#1996)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 jaren geleden
Ethan Koenig
8fc64741d9
Fix deleted milestone bug (#1942)
* Fix deleted milestone bug
* Use locale for ghost milestone name
* Fix pointer bug
7 jaren geleden
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
7 jaren geleden
Ethan Koenig
8fcda0442e
Fix search by issue type (#1914)
* Fix search by issue type
7 jaren geleden
Ethan Koenig
5e92b82ac6
Fix uppercase default branch bug (#1965)
7 jaren geleden
Jonas Östanbäck
ad70af1248
Add repo fork swagger (#1941)
7 jaren geleden
Dennis Keitzel
96b4780727
Gracefully handle bare repositories on API operations. (#1932)
Signed-off-by: Dennis Keitzel <github@pinshot.net>
7 jaren geleden
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
7 jaren geleden
Ethan Koenig
afe1f1c4af
Fix 500 in public activity page (#1901)
7 jaren geleden
Ethan Koenig
9ddc35e343
Cache ctx.User in retrieveFeeds (#1902)
7 jaren geleden
Ethan Koenig
971e3a35c1
Require token before checking membership/ownership
7 jaren geleden
Ethan Koenig
f38842320e
Bug fixes for org member API
7 jaren geleden
camlafit
952cb8046f
A missing / to provide a correct endpoint
solve #1899
7 jaren geleden
Bo-Yi Wu
703d18e50d
feat: add check misspelling (#1877)
7 jaren geleden
Ethan Koenig
023cad4461
gofmt (#1868)
7 jaren geleden
Ethan Koenig
817a405118
Fix paginater length (#1866)
7 jaren geleden
Ethan Koenig
2ec5dc1661
Fix 404 for external tracking issues (#1852)
* Fix 404 for external tracking issues
* Fix 404 for new/upload file
7 jaren geleden
Ethan Koenig
b900c04316
Display draft releases (#1854)
* Display draft releases
* Include ctx.User in user cache
* Integration test
7 jaren geleden
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
7 jaren geleden
Antoine GIRARD
976c2a05fa
Fix change introduce by update of go-swagger. (#1727)
7 jaren geleden
Ethan Koenig
4e5ee2b67a
Fix user profile activity feed (#1848)
* Fix user profile activity feed
* gofmt, and avoid overlapping database connections
7 jaren geleden
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 jaren geleden
Rémy Boulanouar
e0c6ab2d44
Add Gitea Webhook (#1755)
* Replace Gogs by Gitea
* Fix missing changes
* Create Gitea webhook and put Gogs webhook apart.
7 jaren geleden
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 jaren geleden
Lunny Xiao
3611a3e552
fix bug to deny to add orgnization as a member of an orgnization or team (#1815)
7 jaren geleden
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 jaren geleden
Ethan Koenig
ff2464c87d
Fix renaming bug (#1786)
7 jaren geleden
Jonas Östanbäck
7b907ed348
Rename RepoCreationNum -> MaxCreationLimit (#1766)
7 jaren geleden
Jonas Östanbäck
85a7396525
Add error direclty when user tries to create new repo and limit already hit (#1767)
7 jaren geleden
Lunny Xiao
6362462da8
fix admin lost permission caused by #947
7 jaren geleden
Jonas Östanbäck
0161e46b5a
Add swagger comment for MirrorSync (#1747)
* Add swagger comment for MirrorSync
* Generate swagger.v1.json
7 jaren geleden