Skip to content

Commit Questions

Geoff Natin edited this page Mar 10, 2017 · 27 revisions

Intent Name: 'lastCommitOnRepo'
Entities involved: 'repoOwner', 'repoName'
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 on <repo>?
  • the last commit <repo>
  • The last commit on <repo> is what
  • Show me the last commit on <repo>
  • Tell me the last commit on <repo>
  • Get the last commit on <repo> for me
  • Display the last commit on <repo>
  • Commit on <repo> the last time
  • Give me <repo>'s last commit
  • Find the last commit on <repo>

Intent Name: 'lastNumberOfCommitsOnRepo'
Entities involved: 'number', 'repoOwner', 'repoName'
GitHub Code:

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

Unique Utterances

  • What are the last <number> commits on <repo>?
  • The last <number> commits on <repo>
  • <repo>'s last <x> commits
  • Show me the last <x> commits on <repo>
  • Tell me the last <x> commits on <repo>
  • Get the last <x> commits on <repo>for me
  • Display the last <x> commits on <repo>
  • <repo>'s last <x> commits are what
  • Tell me <repos>'s last <x> commits
  • Find <repos>'s last <x> commits for me

Intent Name: 'lastCommitByUserOnRepo'
Entities involved: 'user', 'repoOwner', 'repoName'
GitHub Code:

var github = new GitHubClient(new ProductHeaderValue("GitBot"));
var commit = "";
gitbotResponse = ($"The last commit made by {user} on {repoOwner}/{repoName} was: {commit}");

Unique Utterances

  • What was <user>’s last commit on <repo>?
  • The last commit on <repo> by <user>
  • <user>'s last commit on <repo> is what
  • Show me <user>'s last commit on <repo>
  • Tell me the last commit of <repo> on <user>
  • Get the last commit on <repo> by <user> for me
  • Display <user>'s last commit on <repo>
  • <user>'s last commit on <repo> the last time
  • Give me <repo>'s last commit which created by <user>
  • What was the last commit on <repo> made by <user>?

Intent Name: 'timeOfUsersLastCommitOnRepo'
Entities involved: 'user', 'repoOwner', 'repoName' GitHub Code:

var github = new GitHubClient(new ProductHeaderValue("GitBot"));
var time = "";
gitbotResponse = ($"{time} is when {user} last commited on {repoOwner}/{repoName}.");

Unique Utterances

  • When was <user>’s last commit on <repo>?
  • The last commit of <user> on <repo> is when
  • Show me the time of <user>’s last commit on <repo>
  • Tell me when did <user> commit the last time on <repo>
  • when did <user>’s commit to <repo> the last time?
  • Find the time of <user>’s last commit on <repo> for me
  • <user>’s last commit on <repo> is when
  • Get me the time of <user>’s last commit on <repo>
  • Tell me <user>'s last commit on <repo> is at what time

Intent Name: 'numberOfCommitsByUserOnRepo'
Entities involved: 'user', 'repoName', 'repoOwner'
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 <repo>
  • <user>'s committed on <repo> how many times
  • Tell me <user>'s has how many commits on <repo>
  • Find <user>'s number of commits on <repo>

Intent Name: 'lastNumberOfCommitsByUser'
Entities involved: 'user', 'number' 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 by <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
  • Find <user>'s last <x> commits for me

Intent Name: 'lastPersonToCommit'
Entities involved: 'repoOwner', 'repoName'
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 commited to <repo> last
  • Tell me the owner of the <repo>'s last commit
  • Find the last person who committed to <repo>

Clone this wiki locally