ljharb / repo-report

CLI to list all repos a user has access to, and report on their configuration in aggregate.
MIT License
24 stars 11 forks source link

Major code refactor and add detail command #28

Closed thehanimo closed 3 years ago

thehanimo commented 3 years ago
diananova commented 3 years ago

the fields and mappedFields combination is great! The code looks good to me. I guess I can close my pr, cause you already kind of integrated it here.

diananova commented 3 years ago

@thehanimo hey maybe I could get rid of some fields that Jordan mentioned?

thehanimo commented 3 years ago

Yes that'd be awesome. Also maybe reply to the comments on what the properties really stand for? You can find it all here https://docs.github.com/en/graphql/reference/objects

ljharb commented 3 years ago

Note, I put "not sure" on purpose, if you think any of those fields do make sense to keep, please push back and help me understand why :-)

diananova commented 3 years ago

I wrote down my opinion on which fields can be removed, thinking from a maintainer's perspective and what info they would find useful.

It's important to remember the purpose of this tool: to find settings that are different from our "default" and to be able to change those settings easily.

NO:

YES:

COMMENTS:

TODO:

diananova commented 3 years ago

@thehanimo let me know what you think so I can go ahead and delete the irrelevant fields.

ljharb commented 3 years ago

@diananova your summary makes sense to me, thanks for enumerating it all!

thehanimo commented 3 years ago

@ljharb I've updated it all based on @diananova's comment. Couldn't find the "only collabs can edit wiki" metric in the GraphQL API.