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

Recognize more characters in crossreferenced repo name #3413

Merged
merged 2 commits into from Jan 27, 2018

Conversation

lafriks
Copy link
Member

@lafriks lafriks commented Jan 26, 2018

Fixes #3412

@lafriks lafriks added this to the 1.4.0 milestone Jan 26, 2018
@codecov-io
Copy link

codecov-io commented Jan 26, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@9e87fe8). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3413   +/-   ##
=========================================
  Coverage          ?   35.64%           
=========================================
  Files             ?      281           
  Lines             ?    40552           
  Branches          ?        0           
=========================================
  Hits              ?    14456           
  Misses            ?    23962           
  Partials          ?     2134
Impacted Files Coverage Δ
modules/markup/html.go 54.56% <ø> (ø)

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 9e87fe8...ddae727. Read the comment docs.

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 26, 2018
@@ -43,7 +43,7 @@ var (
IssueAlphanumericPattern = regexp.MustCompile(`( |^|\()[A-Z]{1,10}-[1-9][0-9]*\b`)
// CrossReferenceIssueNumericPattern matches string that references a numeric issue in a different repository
// e.g. gogits/gogs#12345
CrossReferenceIssueNumericPattern = regexp.MustCompile(`( |^)[0-9a-zA-Z]+/[0-9a-zA-Z]+#[0-9]+\b`)
CrossReferenceIssueNumericPattern = regexp.MustCompile(`( |^)[0-9a-zA-Z-_\.]+/[0-9a-zA-Z-_\.]+#[0-9]+\b`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Before anyone researches this: did that already - both RegisterForm and CreateRepoForm in modules/auth use AlphaDashDot as a rule in the binding field, which in turn inside macaron is converted into "Every string that matches this should be rejected".

Copy link
Contributor

@thehowl thehowl left a comment

Choose a reason for hiding this comment

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

LGTM

@tboerger tboerger 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 Jan 26, 2018
@lunny
Copy link
Member

lunny commented Jan 27, 2018

LGTM. (Off topic: why the CI Successfully this PR?)

@tboerger tboerger 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 Jan 27, 2018
@lafriks
Copy link
Member Author

lafriks commented Jan 27, 2018

@lunny it does succeed time to time :)

@lafriks lafriks merged commit a0c397d into go-gitea:master Jan 27, 2018
@lafriks lafriks deleted the fix/xref_repo_name branch January 27, 2018 12:33
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 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.

The use of dash (-) in repository names breaks cross-referencing in issues
5 participants