aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-04-05 00:01:08 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-04-05 00:01:08 +0200
commit57f0c2f25da3316efbff63f7f8dc73df20705320 (patch)
treebe6cf69aad498216fa86058b71e2df9a31ebfbd6
parent682da55271b92deb148438450284403feaa21dcc (diff)
downloadgit-bug-57f0c2f25da3316efbff63f7f8dc73df20705320.tar.gz
improve docs
-rw-r--r--cache/filter.go12
-rw-r--r--doc/queries.md2
2 files changed, 7 insertions, 7 deletions
diff --git a/cache/filter.go b/cache/filter.go
index 7b1a6054..b26e7ae1 100644
--- a/cache/filter.go
+++ b/cache/filter.go
@@ -66,12 +66,12 @@ func ActorFilter(query string) Filter {
panic("missing identity in the cache")
}
- if strings.Contains(strings.ToLower(identityExcerpt.Name), query) ||
- query == identityExcerpt.Id || query == strings.ToLower(identityExcerpt.Login) {
+ if query == identityExcerpt.Id ||
+ strings.Contains(strings.ToLower(identityExcerpt.Name), query) ||
+ query == strings.ToLower(identityExcerpt.Login) {
return true
}
}
-
return false
}
}
@@ -87,12 +87,12 @@ func ParticipantFilter(query string) Filter {
panic("missing identity in the cache")
}
- if strings.Contains(strings.ToLower(identityExcerpt.Name), query) ||
- query == identityExcerpt.Id || query == strings.ToLower(identityExcerpt.Login) {
+ if query == identityExcerpt.Id ||
+ strings.Contains(strings.ToLower(identityExcerpt.Name), query) ||
+ query == strings.ToLower(identityExcerpt.Login) {
return true
}
}
-
return false
}
}
diff --git a/doc/queries.md b/doc/queries.md
index 857600e8..b93941d1 100644
--- a/doc/queries.md
+++ b/doc/queries.md
@@ -35,7 +35,7 @@ You can filter based on the person who opened the bug.
### Filtering by participant
-You can filter based on the person who participated in the bug (Opened the bug or added a comment).
+You can filter based on the person who participated in any activity related to the bug (Opened bug or added a comment).
| Qualifier | Example |
| --- | --- |