Create Pullrequest from tags #5742

Open
opened 2025-11-02 06:34:42 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @sharpSteff on GitHub (Jul 15, 2020).

  • 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?

Originally created by @sharpSteff on GitHub (Jul 15, 2020). - Gitea version (or commit ref): 1.10.0+dev-142-g7ca5dd0 - Git version: latest - Operating system: Ubuntu - Database (use `[x]`): - [ ] PostgreSQL - [x] 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?
GiteaMirror added the type/proposal label 2025-11-02 06:34:42 -06:00
Author
Owner

@lunny commented on GitHub (Jul 16, 2020):

I think even github didn't support this.

@lunny commented on GitHub (Jul 16, 2020): I think even github didn't support this.
Author
Owner

@sharpSteff commented on GitHub (Jul 16, 2020):

@lunny GitHub has this functionality

Bildschirmfoto 2020-07-16 um 21 29 04
@sharpSteff commented on GitHub (Jul 16, 2020): @lunny GitHub has this functionality <img width="642" alt="Bildschirmfoto 2020-07-16 um 21 29 04" src="https://user-images.githubusercontent.com/30927510/87714094-8e5cc180-c7ab-11ea-912c-f1c8e5954f61.png">
Author
Owner

@sharpSteff commented on GitHub (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 commented on GitHub (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 :(
Author
Owner

@sharpSteff commented on GitHub (Jul 16, 2020):

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

with 1.0.0.0 is a tag

@sharpSteff commented on GitHub (Jul 16, 2020): for example https://try.gitea.io/Butcher/test-repo2/compare/master...1.0.0.0 with 1.0.0.0 is a tag
Author
Owner

@sharpSteff commented on GitHub (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

@sharpSteff commented on GitHub (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
Author
Owner

@sharpSteff commented on GitHub (Jul 19, 2020):

@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

@sharpSteff commented on GitHub (Jul 19, 2020): @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
Author
Owner

@jtran commented on GitHub (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.

@jtran commented on GitHub (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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5742