tools: handle unknown git mode as an addition
Err on the side of reporting a file as new instead of existing, so
that the report output includes more detail instead of a one-liner.
@@ -132,7 +132,7 @@ func (s *Stats) ProcessOne(pr *github.PullRequest) error {
// if this is a new enhancement.
var isNew bool
for _, f := range modifiedFiles {
- if f.Mode == "A" {
+ if f.Mode == "A" || f.Mode == "?" {
isNew = true
break
}
