Skip to content

feat(cmdutils): Add project and group milestone prompt

Kerri Miller requested to merge github/fork/zemzale/feat-all-milestones into trunk

Created by: zemzale

Description

When creating issues we prompted only project milestones. This would break workflows where group milestones were used.

This PR adds listing of all project related milestones in the prompt. That includes group and parent group milestones. I had to somehow normalize the milestone APIs because they are two different APIs. I didn't look into if the responses are identical(lack of time) but if it's needed we can always expand the current normalized structs to have all the needed attributes. For this, we only need the title and ID so that is all I added.

Request to the group API only happens if the project namespace is group, otherwise the API would 404 with no group found error.

I also made fetching of milestones concurrent to improve the performance a bit.

Related Issue

Resolves #698 (closed)

How Has This Been Tested?

Unit tests and testing against all kinds of group user configurations on Gitlab.com

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)

Merge request reports