-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix fork repository cycle to self #2860
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2860 +/- ##
=========================================
Coverage ? 26.85%
=========================================
Files ? 89
Lines ? 17607
Branches ? 0
=========================================
Hits ? 4728
Misses ? 12193
Partials ? 686 Continue to review full report at Codecov.
|
routers/repo/pull.go
Outdated
@@ -81,6 +80,31 @@ func getForkRepository(ctx *context.Context) *models.Repository { | |||
orgs = append(orgs, org) | |||
} | |||
} | |||
|
|||
var testForkRepo = forkRepo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please use a more descriptive name than testForkRepo
. Perhaps traverseParentRepo
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
35e4064
to
bf442d4
Compare
LGTM |
LGTM |
Will fix #2858