gitrob icon indicating copy to clipboard operation
gitrob copied to clipboard

Feature Request - Add -include-forks feature

Open dcepler opened this issue 6 years ago • 1 comments

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

  1. When running gitrob without -include-forks following command should report 2 repositories which is the existing behavior gitrob -no-expand-orgs dcepler-net
  2. When running gitrob with -include-forks following command should report 3 repositories gitrob -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 avatar Aug 27 '18 19:08 dcepler

@dcepler This has been merged into the new fork

mattyjones avatar May 23 '20 02:05 mattyjones