In the following line, there is a risk that 'LatestRelease' is null, therefore throwing an exception.
|
$releaseNote = Get-ReleaseNotes -token $token -tag_name "$tag" -previous_tag_name $($latestRelease.tag_name) |
I've managed to reproduce it a few times, and think it should be an easy fix. I will make a pull request with a fix soon