-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: filter repositories that are forks #341
Conversation
Add support for filtering out repositories that are forks. See #340.
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.
LGTM, just remove a few lines of dead code.
internal/scm/gitea/repository.go
Outdated
@@ -47,3 +49,7 @@ func (r repository) DefaultBranch() string { | |||
func (r repository) FullName() string { | |||
return fmt.Sprintf("%s/%s", r.ownerName, r.name) | |||
} | |||
|
|||
func (r repository) Fork() bool { |
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.
I assume this is a relic from when an implementation where the filtering was supposed to be done in the multigitter
package instead? I would have been fine with that (only drawback is that there are potential that SCMs allow the filtering to be done at API level). But now this should be dead code?
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.
Same is true for the field in the repository struct?
Remove unused function.
Remove unused field.
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.
LGTM 👍
Thanks for the contribution 😄
Included in release v0.46.0 🎉 |
What does this change
Add support for filtering out repositories that are forks using
--skip-forks
.What issue does it fix
See #340.
Notes for the reviewer
None.
Checklist