staticman icon indicating copy to clipboard operation
staticman copied to clipboard

Allow multiple branches

Open LorenzBischof opened this issue 4 years ago • 2 comments

Is it possible to specify multiple branches in the config? As far as I can see I have to create multiple endpoints?

LorenzBischof avatar Apr 22 '20 15:04 LorenzBischof

I'm not sure this is possible at this time. Can you describe your use case further?

alexwaibel avatar May 19 '20 20:05 alexwaibel

I am building a pipeline with a develop and master branch. The develop branch is hosted on a different url and is also accessible. I want comments that are made on this "develop website" to also go into the develop branch and comments made on the production site to go into the master branch. To achieve this I would need two different config files: one in the develop branch and one in the master branch. This makes merging changes harder. I now solved this by creating a comments_master and comments_develop endpoint in the config, but that is a little redundant. I hope my use case is clear.

Maybe it would be possible to use anchors and aliases? I will try that in the next few days and report back. http://blogs.perl.org/users/tinita/2019/05/reusing-data-with-yaml-anchors-aliases-and-merge-keys.html

LorenzBischof avatar May 20 '20 08:05 LorenzBischof