(&self, name: &str)
| 109 | } |
| 110 | |
| 111 | pub fn find_topic(&self, name: &str) -> Option<ExternalId> { |
| 112 | let FetchTopicLiveSearchResult { |
| 113 | synonyms: matches, .. |
| 114 | } = FetchTopicLiveSearch { |
| 115 | limit: 10, |
| 116 | repos: RepoIds::from(vec![RepoId::wiki()]), |
| 117 | search: Search::parse(name).unwrap(), |
| 118 | viewer: actor(), |
| 119 | } |
| 120 | .call(&self.git) |
| 121 | .unwrap(); |
| 122 | |
| 123 | let row = matches.iter().find(|row| row.name == name); |
| 124 | |
| 125 | row.map(|m| m.id.to_owned()) |
| 126 | } |
| 127 | |
| 128 | fn write(&self) { |
| 129 | let options = dir::CopyOptions { |
no test coverage detected