packagist icon indicating copy to clipboard operation
packagist copied to clipboard

Add option to limit branches (hide branch from `composer show`)

Open Radon8472 opened this issue 4 years ago • 1 comments

Like asked before in #865 it would be very good to have a way to exclude branches from beeing shown as versions for composer. E.g. if you have many incomple feature branches they should not be downloadable with composer.

It is no option to always remove the composer.jsons in such branches only to re-add it when the feature is complete.

The best way would be a new option similar to non-feature-branches where you can define branches or wildcard that are not listed in composer show as versions. e.g. like this:

{
    "hide-branches": ["incomplete-feature*"]
}

This should e.g. exclude a branch named like this incomplete-feature/my-stuff from being displayed as version.

Radon8472 avatar Mar 13 '20 08:03 Radon8472

I second this! I think it would be a great option to have.

sudoku-lord avatar May 26 '22 01:05 sudoku-lord