brobeson / ActionRelease

Automate releasing a new version of a GitHub workflow or action
MIT License
0 stars 0 forks source link

Update milestones #3

Open brobeson opened 6 months ago

brobeson commented 6 months ago

Version

1.0.1

New step

if "Next Version" milestone exists:
  if "Next Version" milestone has open issues:
    report error - all issues must be closed
  else if "Next Version" milestone has closed issues:
    rename "Next Version" milestone to "vA.B.C"
    close "vA.B.C" milestone
    create new "Next Version milestone

Tasks

Marketplace Action

No response

brobeson commented 3 months ago
flowchart
getVersionMilestone[Get version milestone]
--> getNextMilestone[Get next release milestone]
--> versionExists{Version milestone exists?}
-- yes --> nextExists{Next milestone exists?}
  -- yes --> moveIssues[Move open issues from version to next]
  nextExists-- no --> ejectIssues[Move open issues to no milestone]
versionExists-- no -->createVersion[Create version milestone]
--> moveIssuesToVersion[Move closed issues to version milestone]
--> closeVersion[Close version milestone]
ejectIssues --> closeVersion
moveIssues --> closeVersion