phylum-dev / cli

Command line interface for the Phylum API
https://phylum.io
GNU General Public License v3.0
99 stars 10 forks source link

Command to set default label #1439

Open kylewillmon opened 1 month ago

kylewillmon commented 1 month ago

The default label for a project determines which job is considered current for a project. This has impacts in search, monitoring notifications, and the policy result shown in the project list. Since it is so important, we need a CLI command to set the default label for a project

kylewillmon commented 1 month ago

I think this should go under phylum project update... But it is a bit of a bummer that the default label is set with the project preferences endpoint and not the project update endpoint... So that command would need to make 2 API calls now if we include default label there.