satis icon indicating copy to clipboard operation
satis copied to clipboard

Is it possible to disable display of branches in the web build?

Open danielbachhuber opened this issue 8 years ago • 4 comments

We're using Satis right now to build the WP-CLI Package Index, and would like to disable the display of branches in the built web HTML:

image

I saw the skip-dev argument for generating archives. Is there an equivalent way to only display tagged releases?

Thanks in advance!

From https://github.com/wp-cli/wp-cli/issues/3701

danielbachhuber avatar Feb 07 '17 17:02 danielbachhuber

Yeah you could limit the requirements to something other than '*'...

alcohol avatar Feb 07 '17 21:02 alcohol

In your satis configuration you can set the "minimum-stability" to "stable" to only see tagged releases. The option defaults to "dev" in satis (where in composer it defaults to stable) that's why you see all the branches.

https://github.com/composer/satis/blob/master/src/Console/Command/BuildCommand.php#L68

aaukt avatar Feb 08 '17 07:02 aaukt

That will work too, but then you will no longer get dev-master either.

alcohol avatar Feb 08 '17 07:02 alcohol

I've worked out that dev-master || >=0.0.0 is the requirement I need for packages.

Is it possible to set this requirement globally? We're using a script to generate satis.json from a list of URLs. While the package names most commonly correlate with their URLs, it's not guaranteed, so I'm not sure I can easily set the requirement for each package.

danielbachhuber avatar Feb 08 '17 14:02 danielbachhuber