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

Create Pullrequest from tags #12251

Open
1 of 4 tasks
sharpSteff opened this issue Jul 15, 2020 · 7 comments
Open
1 of 4 tasks

Create Pullrequest from tags #12251

sharpSteff opened this issue Jul 15, 2020 · 7 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@sharpSteff
Copy link

  • Gitea version (or commit ref): 1.10.0+dev-142-g7ca5dd0
  • Git version: latest
  • Operating system: Ubuntu
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite

Description

We have the usecase to create Pullrequests from available tags
via GIT CLI its the same as for branches
git checkout destination_branch
git merge your_tag

However gitea does not show any tags within the pullrequest control

Do I miss something?

@lunny
Copy link
Member

lunny commented Jul 16, 2020

I think even github didn't support this.

@sharpSteff
Copy link
Author

@lunny GitHub has this functionality

Bildschirmfoto 2020-07-16 um 21 29 04

@sharpSteff
Copy link
Author

sharpSteff commented Jul 16, 2020

@lunny
on GITEA you can create a comparison between branches and tags already, with a workaround by editing the url in the compare-window via replacing the target-branch with the tag you like to merge.

Unfortually the "Create PullRequest"-Button is not there :(

@sharpSteff
Copy link
Author

for example
https://try.gitea.io/Butcher/test-repo2/compare/master...1.0.0.0

with 1.0.0.0 is a tag

@sharpSteff
Copy link
Author

sharpSteff commented Jul 17, 2020

As far as my understanding is correct, Gitea makes a difference between a branch-head and a tag.
on git level its just a different prefix (ref/head vs ref/tag)

to get this running, gitea has to threat a tag and a branch-head equally

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jul 18, 2020
@sharpSteff
Copy link
Author

@lunny I added a basic tag-pull-request-functionality on my fork:
https://github.com/sharpSteff/gitea
Just added all tags to the branch-selection-control, because I'm not really familier with this go-templates.

I'll try the forked version with my team to see any compatibility problems with old PRs, etc

@jtran
Copy link
Contributor

jtran commented May 5, 2021

@sharpSteff, see PR #15723. It doesn't enable creating a pull request, but it lets you select tags to compare. So once this gets reviewed, you may want to merge it into your fork.

I also confirmed that GitHub does not currently have a UI to create a pull request from a tag. It's probably just not a very common workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

3 participants