-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 Pull Request button or status of latest PR in branch list #6990
Show Pull Request button or status of latest PR in branch list #6990
Conversation
Signed-off-by: Mario Lubenka <[email protected]>
Signed-off-by: Mario Lubenka <[email protected]>
Signed-off-by: Mario Lubenka <[email protected]>
Failing due to the Git for libravatar being down. :( |
Should work again. Can someone restart the build? :) |
restarted |
Codecov Report
@@ Coverage Diff @@
## master #6990 +/- ##
==========================================
+ Coverage 41.24% 41.24% +<.01%
==========================================
Files 464 464
Lines 62846 62867 +21
==========================================
+ Hits 25922 25931 +9
- Misses 33533 33544 +11
- Partials 3391 3392 +1
Continue to review full report at Codecov.
|
Could we give a link to that PR? |
Also something to check: Github disables the branch delete button on branches with open pull requests (probably because the PR would become invalid). Maybe this is something we should consider doing too. |
…request status Signed-off-by: Mario Lubenka <[email protected]>
Didn't to that for now, since the user has to confirm in the popup he REALLY wants to delete the branch. ;) |
Signed-off-by: Mario Lubenka <[email protected]>
Signed-off-by: Mario Lubenka <[email protected]>
Needs one more approval. :) |
Please see https://github.com/go-gitea/gitea/pull/6990/files#r294051752 and also CI pointed that. Otherwise LGTM. |
Signed-off-by: Mario Lubenka <[email protected]>
Can we still get this into 1.9.0? Would help us a lot cleaning merged or closed branches. :) |
I think we can move this to v1.9 since it finished before our freeze time but haven't assign milestone. |
…tea#6990) * Show Pull Request button or status of latest PR in branch list Signed-off-by: Mario Lubenka <[email protected]> * Do not show pull request button on deleted branches Signed-off-by: Mario Lubenka <[email protected]> * Do not show commit divergence on deleted branches Signed-off-by: Mario Lubenka <[email protected]> * Use XORMs Get instead of limit * Links pull request ID and use smaller labels for displaying the pull request status Signed-off-by: Mario Lubenka <[email protected]> * Handle error when getting latest pull request Signed-off-by: Mario Lubenka <[email protected]> * Indent template Signed-off-by: Mario Lubenka <[email protected]> * Check error when loading issue Signed-off-by: Mario Lubenka <[email protected]>
Resolves #4547.
If a branch already has a pull request it will be shown instead of the "Create PR" button with its status (open, merged, closed). Similarly to GitHub, the latest pull request for a branch will be shown there.
Deleted branches will not have the pull request button.
Also, as a little follow-up on #6695, I've also hidden the commit divergence section for deleted branches as it won't contain useful information since the branch is deleted.
Screenshot