Skip to content

Repository Questions

Yasir Zardari edited this page Mar 10, 2017 · 26 revisions

Intent Name: 'numberOfContributorsOnARepo'
Entities involved: 'repository'
GitHub Code:

if (repoOwner == null) { gitbotResponse = ($"I think you mean \"{intent}\" but I didn't see a repoOwner."); break; }                            var contributors = await github.Repository.GetAllContributors(repoOwner, repoName);
if (contributors.Count > 1)
         gitbotResponse = ($"There are {contributors.Count} contributors in {repoName} repo.");
else
         gitbotResponse = ($"There is {contributors.Count} contributor in {repoName} repo.");

Unique Utterances

  • How many contributors are on the <repo>?
  • number contributors <repo>
  • What is the amount of contributors on <repo>?
  • Give me number of contributors on <repo>
  • Tell me the number of contributors on <repo>
  • Get the number of contributors on <repo> for me
  • Display the number of contributors on <repo>
  • amount of contributors on <repo>?
  • Show me number of contributors on <repo>
  • How many contributors on <repo>

Clone this wiki locally