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

Show branches and tags containing a commit #25152

Closed
delvh opened this issue Jun 8, 2023 · 0 comments · Fixed by #25180
Closed

Show branches and tags containing a commit #25152

delvh opened this issue Jun 8, 2023 · 0 comments · Fixed by #25180
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@delvh
Copy link
Member

delvh commented 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

@delvh delvh added type/proposal The new feature has not been accepted yet but needs to be discussed first. type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Jun 8, 2023
delvh added a commit that referenced this issue Jul 27, 2023
Now, you can see for a commit which existing branches and tags contain it.
You first have to click on the `load branches and tags` button, they are not preloaded by default.
All branches and tags are ordered descending by creation date.
You can even see without much hassle if the given commit is already part of the default branch.

Closes #25152 

## Screenshots

### Initial

![image](https://github.com/go-gitea/gitea/assets/51889757/84db2c0b-aaef-4f69-ab92-0b812793d2ad)

### Loaded

![image](https://github.com/go-gitea/gitea/assets/51889757/a9b84e66-8e44-4c55-b017-c37f4a45f41b)

---------

Co-authored-by: silverwind <[email protected]>
Co-authored-by: wxiaoguang <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant