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

Change order that PostProcess Processors are run #6445

Merged
merged 2 commits into from
Mar 27, 2019

Conversation

mrsdizzie
Copy link
Member

Make sure Processors that work on full links are run first so that
something matching another pattern doesn't alter a link before we get to
it, for example:

https://stackoverflow.com/questions/2896191/what-is-go-used-fore

Fixes #4813

Make sure Processors that work on full links are run first so that
something matching another pattern doesn't alter a link before we get to
it, for example:

 https://stackoverflow.com/questions/2896191/what-is-go-used-fore

Fixes go-gitea#4813
@techknowlogick techknowlogick added this to the 1.8.0 milestone Mar 27, 2019
@techknowlogick techknowlogick modified the milestones: 1.8.0, 1.9.0 Mar 27, 2019
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Mar 27, 2019
@techknowlogick
Copy link
Member

@mrsdizzie Can you run make fmt?

@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 Mar 27, 2019
@mrsdizzie
Copy link
Member Author

ugh sorry dunno how I missed that, fixed!

@techknowlogick techknowlogick merged commit c8650ae into go-gitea:master Mar 27, 2019
@codecov-io
Copy link

Codecov Report

Merging #6445 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #6445      +/-   ##
=========================================
- Coverage    39.4%   39.4%   -0.01%     
=========================================
  Files         393     393              
  Lines       53264   53264              
=========================================
- Hits        20990   20989       -1     
- Misses      29287   29290       +3     
+ Partials     2987    2985       -2
Impacted Files Coverage Δ
modules/markup/html.go 83.29% <ø> (ø) ⬆️
models/unit.go 0% <0%> (-14.29%) ⬇️
routers/repo/view.go 41.08% <0%> (-1%) ⬇️
models/repo_list.go 67.89% <0%> (+1.05%) ⬆️
modules/process/manager.go 81.15% <0%> (+4.34%) ⬆️

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 d771769...dfaed2b. Read the comment docs.

@techknowlogick
Copy link
Member

@mrsdizzie it's ok, happens to all of us. Thanks for the PR 😄 Please backport to release/v1.8 branch. @jolheiser Is working on the RC2 changelog and so we probably can get this change in.

mrsdizzie added a commit to mrsdizzie/gitea that referenced this pull request Mar 27, 2019
Make sure Processors that work on full links are run first so that
something matching another pattern doesn't alter a link before we get to
it, for example:

 https://stackoverflow.com/questions/2896191/what-is-go-used-fore

Fixes go-gitea#4813
@techknowlogick techknowlogick added the backport/done All backports for this PR have been created label Mar 27, 2019
techknowlogick pushed a commit that referenced this pull request Mar 27, 2019
Make sure Processors that work on full links are run first so that
something matching another pattern doesn't alter a link before we get to
it, for example:

 https://stackoverflow.com/questions/2896191/what-is-go-used-fore

Fixes #4813
@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
backport/done All backports for this PR have been created 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.

URLs not show correct in rendered content for issue and wiki page
5 participants