wp-cli / scaffold-package-command

Scaffolds WP-CLI commands with functional tests, full README.md, and more.
MIT License
68 stars 19 forks source link

Support alternate default branches for CI badge #204

Closed danielbachhuber closed 2 years ago

danielbachhuber commented 2 years ago

CI badge generation is currently hardcoded to master:

https://github.com/wp-cli/scaffold-package-command/blob/f5684be0aef1538f5208486716c1a4fced44747d/src/ScaffoldPackageCommand.php#L258-L263

This repo now uses main. trunk is also common.

Done is:

wojsmol commented 2 years ago

@danielbachhuber Detecting for all setups wee be hard but we can add a parameter and set default value to for example main.

danielbachhuber commented 2 years ago

@wojsmol I'm fine with skipping the "default branch detection".