Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer/Packagist ignore branches

So I have the following branches in my Github repo: (follows "git flow")

  • master (latest stable: 1.1.0)
  • develop (2.0.0)
  • feature/feature_in_dev
  • feature/other_feature_in_dev
  • release/1.0.0
  • release/1.1.0

I already know how to create branch aliases, such as for the releases. I could technically remove the composer.json file each time I add a new feature branch and then commit it back in once I am ready to merge it into develop, but that would be very annoying and easy to forget.

My Question: How can I hide the feature branches from Packagist?

like image 720
Nicholas Summers Avatar asked Nov 11 '22 00:11

Nicholas Summers


1 Answers

A branch can be hidden from packagist if the branch doesn't contain a composer.json file in the root folder.

like image 170
Attila Fulop Avatar answered Nov 14 '22 22:11

Attila Fulop