go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.1k stars 5.49k forks source link

Pull request Reference #13134

Open zhoutt96 opened 4 years ago

zhoutt96 commented 4 years ago

Description

In bitbucket: they have two refs for each pull request, shown as below. 0cac01dd5ba4741a14cfb7d28bc4873aefebc4eb refs/pull-requests/#/from 4d19d85730dc74d23c3d92fa7392a1e389d017f4 refs/pull-requests/#/merge

In your project, only found refs/pull/#/head which points to lastest commit of head branch, how about the refs/pull-requests/#/merge refs? ...

Screenshots

zeripath commented 4 years ago

We don't currently have this - but the merge commit id is stored in the pull_request table.