Show branches and tags containing a commit #10993

Closed
opened 2025-11-02 09:24:18 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @delvh on GitHub (Jun 8, 2023).

Feature Description

It is nice to see which branches and tags contain a commit.
That way, you can easily see which versions are affected, i.e. if they have a given feature or bug.
To reduce the load, I recommend calculating these values dynamically only when the user specifically requested them.
That also minimizes the visual space for users that don't need it as well.
I recommend doing a similar approach as GitHub UI-wise (except perhaps that we don't show anything until the user clicked on the corresponding button as we can either show everything or nothing and nothing in between).
In the backend, we need a route that takes a commit and returns the following response:

{
  "branches": [{"name": "", "webLink": "", "APILink": ""}],
  "tags": [{"name": "", "webLink": "", "APILink": ""}],
}

Screenshots

Unexpanded on GitHub:
grafik
Expanded on GitHub:
grafik

Originally created by @delvh on GitHub (Jun 8, 2023). ### Feature Description It is nice to see which branches and tags contain a commit. That way, you can easily see which versions are affected, i.e. if they have a given feature or bug. To reduce the load, I recommend calculating these values dynamically only when the user specifically requested them. That also minimizes the visual space for users that don't need it as well. I recommend doing a similar approach as GitHub UI-wise (except perhaps that we don't show anything until the user clicked on the corresponding button as we can either show everything or nothing and nothing in between). In the backend, we need a route that takes a commit and returns the following response: ```json { "branches": [{"name": "", "webLink": "", "APILink": ""}], "tags": [{"name": "", "webLink": "", "APILink": ""}], } ``` ### Screenshots Unexpanded on GitHub: ![grafik](https://github.com/go-gitea/gitea/assets/51889757/cadf2ad1-8330-48e0-85f9-1391ce51897e) Expanded on GitHub: ![grafik](https://github.com/go-gitea/gitea/assets/51889757/6b379b11-7a46-44ea-a5d0-66922267f896)
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 09:24:18 -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#10993