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

Use ctx.metas for SHA hash links #6645

Merged
merged 2 commits into from Apr 16, 2019
Merged

Conversation

mrsdizzie
Copy link
Member

Since #6273 was merged, we now have access to proper context metas always. Update SHA generated links to use these instead of urlPrefix (this was already done for issue links in previous PR).

Update tests as well.

Fixes #4536

Since go-gitea#6273 was merged, we now have access to proper context metas
always. Update SHA generated links to use these instead of urlPrefix.

Update tests as well.

Fixes go-gitea#4536.
@techknowlogick techknowlogick added this to the 1.9.0 milestone Apr 16, 2019
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Apr 16, 2019
@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 16, 2019
@codecov-io
Copy link

Codecov Report

Merging #6645 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6645      +/-   ##
==========================================
+ Coverage   40.53%   40.55%   +0.01%     
==========================================
  Files         406      406              
  Lines       54498    54501       +3     
==========================================
+ Hits        22093    22101       +8     
+ Misses      29370    29363       -7     
- Partials     3035     3037       +2
Impacted Files Coverage Δ
modules/markup/html.go 81% <100%> (+0.11%) ⬆️
models/gpg_key.go 53.88% <0%> (-0.84%) ⬇️
routers/repo/view.go 42.07% <0%> (+0.99%) ⬆️
models/repo_list.go 67.89% <0%> (+1.05%) ⬆️
models/unit.go 14.28% <0%> (+14.28%) ⬆️

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 e98565d...5acb28c. Read the comment docs.

@zeripath zeripath merged commit 1bce189 into go-gitea:master Apr 16, 2019
@lunny
Copy link
Member

lunny commented Apr 16, 2019

@mrsdizzie please send back port to v1.8 if it's possible since this will depend #6273

@mrsdizzie
Copy link
Member Author

@lunny can't backport since #6273 didn't make it into 1.8 (this PR relies on code change from that one)

@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/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong Link when referencing a commit hash on README.md
6 participants