fossas / fossa-cli

Fast, portable and reliable dependency analysis for any codebase. Supports license & vulnerability scanning for large monoliths. Language-agnostic; integrates with 20+ build systems.
https://fossa.com
Other
1.26k stars 173 forks source link

Add command to create a release group release #1409

Closed JeffreyHuynh1 closed 4 months ago

JeffreyHuynh1 commented 4 months ago

Overview

The CLI should offer a way to create release group release from the command line

Acceptance criteria

Testing plan

example .fossa.yml:

releaseGroup:
  title: example-title
  release: example-release-title
  releaseGroupProjects:
    - projectLocator: custom+1/git@github.com/example
      projectRevision: 12345 
      projectBranch: main

Create a release group release:

Risks

Metrics

References

Checklist

JeffreyHuynh1 commented 4 months ago

I'd like to see a more thorough test plan, though. The test plan only tests with one project being added to the release group and does not test any of the failure cases. I.e. it would be good to test what happens if you try to create a release group while missing the --project-branch flag. It would also be good to specifically test with multiple projects being added.

We should also test the delete command that was added in this PR

The delete command was added in prior a PR. We have tests for it here: https://github.com/fossas/fossa-cli/blob/master/test/App/Fossa/ReleaseGroup/DeleteSpec.hs

spatten commented 4 months ago
  * Or are you suggesting a more detailed manual testing plan?

I was suggesting a more detailed manual testing plan. Sorry for the confusion :)