Skip to content

Commit Questions

zhao-yue edited this page Mar 10, 2017 · 27 revisions

Intent Name: 'lastCommit'
Entities involved: 'commit'
GitHub Code:

var github = new GitHubClient(new ProductHeaderValue("GitBot"));
var commits = await github.Repository.Commit.Get(repoOwner, repoName, "master");
 gitbotResponse = ($"The last commit was at {commits.Commit.Committer.Date.TimeOfDay} on {commits.Commit.Committer.Date.Day}/{commits.Commit.Committer.Date.Month}/{commits.Commit.Committer.Date.Year} by {commits.Commit.Author.Name}: \"{commits.Commit.Message}\"");

Unique Utterances

  • What is the last commit of <repo>?
  • the last commit <repo>
  • The last commit of <repo> is what
  • Show me the last commit of <repo>
  • Tell me the last commit of <repo>
  • Get the last commit of <repo> for me
  • Display the last commit of <repo>
  • commit of <repo> the last time
  • give me <repo>'s last commit
  • represent the last commit of <repo>

Intent Name: 'numberOfCommitsByUserOnRepo'
Entities involved: 'commit'
GitHub Code:

var github = new GitHubClient(new ProductHeaderValue("GitBot"));
var total = "";
gitbotResponse = ($"{user} has made {total} commits on {repoOwner}/{repoName}.");

Unique Utterances

  • How many commits has <user> made on <repo>?
  • <user> made how many commits on <repo>
  • The number of commits <user> made on <repo>
  • Show me the number of <user>'s commits on <repo>
  • Tell me the quantity of <user>'s commits on <repo>
  • Get the number of <user>'s commits on <repo> for me
  • Display the number of <user>'s commits on `
  • <user>'s commits on ` has how many
  • Tell me <user>'s has how many commits on `
  • represent <user>'s number of commits on `

Intent Name: 'lastNumberOfCommitsByUser'
Entities involved: 'commit'
GitHub Code:

var github = new GitHubClient(new ProductHeaderValue("GitBot"));
var commits = "";
gitbotResponse = ($"Here are the last {number} commits by {user} on {repoOwner}/{repoName}:{commits}.");

Unique Utterances

  • What is <user>'s last <x> commits?
  • the last <x> commits of <user>
  • <user>'s last <x> commits
  • Show me the last <x> commits of <user>
  • Tell me the last <x> commits of <user>
  • Get the last <x> commits of <user>for me
  • Display the last <x> commits by <user>
  • <user>'s last <x> commits are what
  • Tell me <user>'s last <x> commits
  • represent <user>'s last <x> commits for me

Intent Name: 'lastPersonToCommit'
Entities involved: 'commit'
GitHub Code:

var github = new GitHubClient(new ProductHeaderValue("GitBot"));
var commits = await github.Repository.Commit.Get(repoOwner, repoName, "master");
gitbotResponse = ($"The last person to commit on {repoOwner}/{repoName} was {commits.Commit.Committer.Name}");

Unique Utterances

  • What is the last person to commit of <repo>?
  • the last person to commit <repo>
  • who made the last commit of <repo>
  • Show me the person committed to <repo> last time
  • Tell me who committed to <repo> last time
  • Get the last person that committed to <repo> for me
  • Display the last person committed to <repo>
  • Who commits to <repo> last time
  • Tell me the owner of the <repo>'s last commit
  • represent the last person that committed to <repo>

Clone this wiki locally