gitrob
gitrob copied to clipboard
Feature Request - Add -include-forks feature
Currently gitrob excludes scanning of repositories that are forked into an organization. This could be problematic as those that forked the repository might commit items into the fork that gitrob would normally identify.
Propose adding switch -include-forks
that will toggle the behavior.
Code change should be simple by including the option and changing condition here: https://github.com/michenriksen/gitrob/blob/master/core/github.go#L70
While scanning of the forked repository in the organization might cause some more noise, it does add potential benefit by including all repositories that are public for an organization.
Expected Behavior
When the switch -include-forks
is added gitrob will not exclude repositories repositories that are forked into the organization.
Testing Steps
- When running gitrob without
-include-forks
following command should report 2 repositories which is the existing behaviorgitrob -no-expand-orgs dcepler-net
- When running gitrob with
-include-forks
following command should report 3 repositoriesgitrob -no-expand-orgs -include-forks dcepler-net
Specifications
- Gitrob version: 2.0.0-beta
- Operating system: macOS 10.13.6
- Go version: 1.11
@dcepler This has been merged into the new fork