Created
February 28, 2019 19:29
-
-
Save MatthewRiggott/07dfc2c4abdacf75b2ea66ffa9effe7a to your computer and use it in GitHub Desktop.
Automate weekly standup with the power of microsoft speech
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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