johnpbloch / wordpress-core

Other
169 stars 40 forks source link

Add branch alias feature #23

Closed vinkla closed 2 years ago

vinkla commented 5 years ago

It would be great if one could specify for example ^5.3 before it is released and point it against the master branch using Composer's branch alias feature.

This way developers may use the master branch as 5.3 until the 5.3 tag has been released. When the stable version of 5.3 has been released, Composer will use that tag instead.

It is done by specifying a branch-alias field under extra in the composer.json file:

"extra": {
    "branch-alias": {
        "dev-master": "5.3-dev"
    }
}

I would gladly open a pull request adding this feature but I need some guidance. I'm guessing this could be added via the johnpbloch/build-wp repository?