Skip to content

Master branch is detecting separate branch release #576

@eli-alvarado

Description

@eli-alvarado

I created a plugin that multiple clients of ours will be using, however there are cases when a client wants to customize the plugin. to account for this I am using the master branch for the default "global" plugin and then I wanted to create branches for each client that wanted a customized version of the plugin. this way, since most clients are using the "global" plugin, I can update the master branch and they will all receive the updates and if a client with the customized plugin wants a change, then it wouldn't effect the "global" plugin. however I found that when I create a new branch for the customized plugin, if I make updates and create a release then go to one of the sites that's using the "global" plugin, aka the master branch, it says there is an update available which is for the release I did for the customized plugin. I'm not exactly sure why the master branch is picking up what I'm doing in the other branches if it's completely separate.

I tried adjusting the PHP header version to include a unique suffix. so the global plugin has Version: 2.5.1 and the customized version has Version: 2.5.3-client-name. Same thing with the release and the tag names, I followed the same naming convention to create separation but nothing seems to work.

I also set the branch that contains the stable release accordingly.
for master branch (global plugin) I have $myUpdateChecker->setBranch('master');
for client-name branch (customized plugin) I have $myUpdateChecker->setBranch('client-name');.

Please let me know how I can achieve this. for now I am just going to create separate repositories for each client that wants customizations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions