Skip to content

Link to existing PR when trying to open a new PR on the same branches #25494

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

Merged
merged 2 commits into from
Jun 25, 2023

Conversation

sebastian-sauer
Copy link
Contributor

when trying to create a PR for an existing PRs branch combination link to the PR directly and not just to the repo.

Before:
image

After:
image

when trying to create a PR for an existing PRs branch combination
link to the PR directly and not just to the repo.
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 24, 2023
@delvh delvh changed the title Link to existsing PR if a pr for branch already exists Link to existing PR when trying to open a new PR on the same branches Jun 24, 2023
@lunny
Copy link
Member

lunny commented Jun 24, 2023

I think there is already a button there

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 25, 2023
@sebastian-sauer
Copy link
Contributor Author

I think there is already a button there

Yes there is a button, but currently the link does only point to the repo.

As the link shows the number of the existing pr it looks like it will open the existing PR. In my opinion this is not intuitive for the user.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 25, 2023
@lunny lunny added reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. type/bug labels Jun 25, 2023
@lunny lunny enabled auto-merge (squash) June 25, 2023 06:33
@lunny lunny merged commit 7609f2f into go-gitea:main Jun 25, 2023
@GiteaBot GiteaBot added this to the 1.21.0 milestone Jun 25, 2023
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jun 25, 2023
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants