staticman
staticman copied to clipboard
Allow multiple branches
Is it possible to specify multiple branches in the config? As far as I can see I have to create multiple endpoints?
I'm not sure this is possible at this time. Can you describe your use case further?
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