Pull Requests view shows PRs in archived repos #13777

Closed
opened 2025-11-02 10:53:00 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Infinoid on GitHub (Dec 3, 2024).

Description

The Pull Request view serves as a TODO list of sorts. It's quite nice. However, it gets cluttered up when partial tickets are still open when a dead project is archived.

Steps to reproduce:

  • Have a team (org) with a repository
  • One of your team members opens a PR
  • Comment on the PR
  • Archive the repository
  • Open the Pull Request view
  • Choose the "Reviewed by you" menu option
  • See the PR that can no longer be closed

I don't know if this affects all of the Pull Request menu options. While writing up this report, I noticed that it affects the Issues ("Mentioning you" and "Created by you") views, too.

These things are not actionable, and I guess they will live forever. So, could we exclude them from the lists and the counts?

I think a workaround is to close everything manually before archiving a dead project repo. Is that what we should do?

Thanks!

Gitea Version

1.22.4

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

PR view showing a partial PR in a dead (archived) repo:

image

Issue view showing multiple open issues from that same dead (archived) repo:

image

Git Version

No response

Operating System

No response

How are you running Gitea?

self hosted container

Database

PostgreSQL

Originally created by @Infinoid on GitHub (Dec 3, 2024). ### Description The Pull Request view serves as a TODO list of sorts. It's quite nice. However, it gets cluttered up when partial tickets are still open when a dead project is archived. Steps to reproduce: * Have a team (org) with a repository * One of your team members opens a PR * Comment on the PR * Archive the repository * Open the Pull Request view * Choose the "Reviewed by you" menu option * See the PR that can no longer be closed I don't know if this affects all of the Pull Request menu options. While writing up this report, I noticed that it affects the Issues ("Mentioning you" and "Created by you") views, too. These things are not actionable, and I guess they will live forever. So, could we exclude them from the lists and the counts? I think a workaround is to close everything manually before archiving a dead project repo. Is that what we should do? Thanks! ### Gitea Version 1.22.4 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots PR view showing a partial PR in a dead (archived) repo: ![image](https://github.com/user-attachments/assets/67d50a37-f10e-47d1-9edd-65afb2fd3754) Issue view showing multiple open issues from that same dead (archived) repo: ![image](https://github.com/user-attachments/assets/84427e8f-2566-4f6a-a737-3d93afac18f5) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? self hosted container ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 10:53:00 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13777