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

500 on PR list: wrong number of args for IsWorkInProgress: want 1 got 0 #29886

Closed
sebthom opened this issue Mar 18, 2024 · 1 comment
Closed
Labels

Comments

@sebthom
Copy link

sebthom commented Mar 18, 2024

Description

In the pinned issue #29773 the advice is given to use the nightly 1.21 build, however while this fixes one issue, it now breaks the list of PRs of repos and fails to render with:

An error occurred:

Render failed, failed to render template: repo/issue/list, error: template error: builtin(bindata):shared/issueicon:10:37 : executing "shared/issueicon" at <.PullRequest.IsWorkInProgress>: wrong number of args for IsWorkInProgress: want 1 got 0
----------------------------------------------------------------------
			{{if and .PullRequest .PullRequest.IsWorkInProgress ctx}}
			                                  ^
----------------------------------------------------------------------

Gitea Version

1.21-nightly (1.21.8+17-g00ea9af8e)

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

Debian / Dockerized

How are you running Gitea?

Self hosted

Database

SQLite

@silverwind
Copy link
Member

Right, that's a separate bug. I'm suprised that no test had caught it.

lunny added a commit that referenced this issue Mar 18, 2024
@lunny lunny closed this as completed Mar 18, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants