+ [2017-03-04T22:25:02Z] wpbro nedbat: ok, but if someone resets git hard + that cleaner flag, the directories/extra repos would be wiped, right?
+ [2017-03-04T22:25:52Z] nedbat wpbro: i don't know what that cleaner flag is. the extra dirs would also be wiped if they typed " rm -rf . " which is why I recommend they don't type that :)
+ [2017-03-04T22:29:21Z] nedbat wpbro: i don't see a dangerous flag like that on the reset command.
+ [2017-03-04T22:31:54Z] wpbro ok
+ [2017-03-04T23:08:55Z] ThiefMaster i think people use `git clean` very rarely

message no. 164798

Posted by MikeClassic in #github at 2017-03-04T09:35:47Z

63
+ [2017-03-05T00:30:07Z] ericnoan can I get the total number of open issues with the github API? i know i can get every issue and count them, but that's kinda overkill
+ [2017-03-05T11:24:42Z] twidi ericnoan: on the main api entry point for a repository ( https://api.github.com/repos/user/repository ) you have the key `open_issues_count`
+ [2017-03-05T11:25:35Z] ericnoan yes, but that also includes the open pull requests. i figure i need to count which issues have the "pull_request" value and subtract them from the count
+ [2017-03-05T11:26:49Z] ericnoan anyways, im also interested in getting the number of commits to a repo, but so far I can't see a simple way to get it, i'd need to use the "/repos/:owner/:repo/stats/contributors" endpoint, and add all the contributers commit count together
+ [2017-03-05T11:27:04Z] ericnoan is that the only way to get the number of commits?