Skip to content

An empty release (no issues) should lead to a draft instead of a release error - configurable #495

Open
@davidzwa

Description

Detailed Description

I currently experience trouble releasing releases that carry no issues. In my PoV GRM should not decide that this is not allowed. The same holds for non-existing milestones.

Context

In my opinion GRM should simply be a passthrough for existing Github actions that create a release (f.e. the archived action https://github.com/actions/create-release/releases). If things are not according to what GRM was designed for (no issues, only excluded issues, no milestone), it would be lovely if the tool could still create the release but in draft mode.

My scenario: I have expensive 1 hour builds that fail due to misconfigured github labels. I tried to mitigate a lot, but I've come to the conclusion that without the strictness on GRM's end I would not have to wait for long builds/releases to complete to be presented with a release creation error. (This is not a rant, purely describing my situation)

Possible Implementation

We could simply toggle createDraftNoIssues, ignoreNoIssues ignoreNoMilestone. We could also add a warning text to the release body "No issues were closed for milestone/release x.y.z".
Alternatively we could easily add mutually exclusive configuration options that allow users to choose.

Your Environment

  • Version Used:
  • Edition Used: .NET Core (Github Actions, git-actions dist)
  • Operating System and version: Ubuntu 20.04

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions