Skip to content

Conversation

richmahn
Copy link
Contributor

@richmahn richmahn commented Apr 4, 2019

Makes "New Pull Request" button on a Repo's Pull Requests page have the correct link as the "New Pull Request" button on the repo's home page (file listing) has. See #6514 for more details.

@codecov-io
Copy link

codecov-io commented Apr 4, 2019

Codecov Report

Merging #6515 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6515      +/-   ##
==========================================
- Coverage   40.37%   40.35%   -0.02%     
==========================================
  Files         405      405              
  Lines       54260    54260              
==========================================
- Hits        21905    21896       -9     
- Misses      29340    29349       +9     
  Partials     3015     3015
Impacted Files Coverage Δ
modules/log/event.go 64.46% <0%> (-1.53%) ⬇️
models/repo_list.go 66.84% <0%> (-1.06%) ⬇️
routers/repo/view.go 41.08% <0%> (-1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89cc7c6...9b377fa. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 4, 2019
Copy link
Contributor

@zeripath zeripath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I think I understand what you're saying - and I think I agree but eurgh PR compare URLs are confusing.

I really think they need a good review of what they should be doing in general. The compare endpoint should also have a UI to easily allow you to change it.

@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 Apr 7, 2019
@richmahn
Copy link
Contributor Author

richmahn commented Apr 8, 2019

@zeripath I agree. When my org wanted this fix, I actually started to try to make the compare page more like GitHubs, where you can pick any fork and any branch of that fork, but alas they just wanted it to simply compare the upstream with whatever fork they were viewing. It would be nice that this behaved like GitHub and I thought everything in Gitea was suppose to be as similar as possible with GitHub. Another problem is that on GitHub, even when you're on your fork, the number of forks of the repo (shown in the top right) should be total forks of upstream and all forks, not just that fork.

Anyway, just a quick fix to make it so the user doesn't have to edit the compare URL themselves as you figured out.

@lafriks lafriks added the type/enhancement An improvement of existing functionality label Apr 8, 2019
@zeripath
Copy link
Contributor

zeripath commented Apr 9, 2019

@adelowo what do you think?

@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 Apr 9, 2019
@zeripath zeripath merged commit 2664adf into go-gitea:master Apr 9, 2019
@techknowlogick techknowlogick modified the milestones: 1.8.0, 1.9.0 Apr 17, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants