Skip to content

Instantly share code, notes, and snippets.

@MatthewRiggott
Created February 28, 2019 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MatthewRiggott/07dfc2c4abdacf75b2ea66ffa9effe7a to your computer and use it in GitHub Desktop.
Save MatthewRiggott/07dfc2c4abdacf75b2ea66ffa9effe7a to your computer and use it in GitHub Desktop.
Automate weekly standup with the power of microsoft speech
# power shell script to use microsoft speech to automate weekly standup
Add-Type -AssemblyName System.Speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$since = "1 weeks ago"
$user = git config user.name
$projectPath = "$env:USERPROFILE\Documents\Visual Studio 2017\Projects"
$projects = New-Object "System.Collections.Generic.List[String]"
$projects.Add("project1")
$projects.Add("my_other_project")
$output = ""
ForEach($proj In $projects) {
Set-Location $projectPath\$proj
$output = $output + (git log --all --pretty=%B --since=$since --author=$user | Out-String)
}
Write-Output $output
# now to reap the sweet sweet rewards
$speak.Speak($output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment