The Wayback Machine - https://web.archive.org/web/20230112180918/https://github.com/go-gitea/gitea/pull/16857
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paginate releases page & set default page size to 10 #16857

Merged
merged 3 commits into from Aug 29, 2021

Conversation

lunny
Copy link
Member

@lunny lunny commented Aug 29, 2021

Reduce the number of releases shown on the releases page from 30 to 10 and add paging.

⚠️ BREAKING ⚠️

Users may change the default value by setting

[repository.release]
DEFAULT_PAGING_NUM=10

@lunny lunny added this to the 1.16.0 milestone Aug 29, 2021
routers/web/repo/release.go Outdated Show resolved Hide resolved
routers/web/repo/release.go Outdated Show resolved Hide resolved
6543
6543 approved these changes Aug 29, 2021
delvh
delvh approved these changes Aug 29, 2021
Copy link
Contributor

@delvh delvh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind changing the title to something like Add default release pagination of 10 releases?
That way I think it would be clearer what this PR is trying to achieve.

EDIT: Thanks.

@zeripath zeripath changed the title Add release default page and set it to 10 Paginate releases page & set default page size to 10 Aug 29, 2021
@6543 6543 merged commit d985d4b into go-gitea:main Aug 29, 2021
2 checks passed
@lunny lunny deleted the lunny/reduce_release_pagesize branch Aug 29, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

5 participants