Skip to content

PublishRelease throws exception if no prior release is found #4

@jofme

Description

@jofme

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions