Skip to content

Automatically assign milestone to monthly planning issue

Append the milestone quick action to the description template, so that it gets assigned automatically.

The milestone is calculated dynamically by the script, so we cannot add it in the issue template to be applied.

To test locally, open a Ruby console (irb):

template = File.read('.gitlab/issue_templates/tw-milestone-plan.md')
assign_milestone = "/milestone %\"14.10\""
description = template + assign_milestone
File.open('new_template.md', 'w') { |f| f.write description }

Check the new file new_template.md and it should have the milestone assignment at the end.

Merge request reports

Loading