Skip to content

Conversation

mrsdizzie
Copy link
Member

Add some validation checks for external tracker URL format.

Attempts to check for simple typos by making sure there is a matching open/close brace for placeholder variable names if the opposite is present.

Fixes #7068

@codecov-io
Copy link

codecov-io commented May 30, 2019

Codecov Report

Merging #7089 into master will increase coverage by 0.02%.
The diff coverage is 90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7089      +/-   ##
==========================================
+ Coverage   41.72%   41.74%   +0.02%     
==========================================
  Files         443      443              
  Lines       60149    60158       +9     
==========================================
+ Hits        25095    25112      +17     
+ Misses      31778    31769       -9     
- Partials     3276     3277       +1
Impacted Files Coverage Δ
routers/repo/setting.go 9.34% <0%> (ø) ⬆️
modules/validation/helpers.go 93.75% <100%> (+1.44%) ⬆️
routers/repo/view.go 43.03% <0%> (+1.01%) ⬆️
models/repo_list.go 73.09% <0%> (+1.01%) ⬆️
models/unit.go 67.56% <0%> (+5.4%) ⬆️

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 592924a...8263e09. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 30, 2019
@techknowlogick techknowlogick added this to the 1.9.0 milestone May 30, 2019
@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 May 30, 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 May 31, 2019
@zeripath zeripath merged commit de6ef14 into go-gitea:master May 31, 2019
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this pull request Jul 18, 2019
* Validate External Tracker URL Format

Add some validation checks for external tracker URL format.

Fixes go-gitea#7068

* Don't make {index} a hard requirement

* Fix Description

* make fmt

* move regex to package level

* fix copyright date
@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.

Check tracker url syntax
7 participants