support fuzzy matching of directories when using non master directory structure
The current workflow for yield_for_code_snippet assumes all snippets are always in the master branch.
The lookup path for the snippet directory would be (in order):
repo-name
repo-name-branch-name
repo-name-org-name-branch-name
When we moved from master to develop/release pattern, our document generation starting failing in the Concourse pipeline.
This is because our input name was platform-automation-develop instead of the assumed platform-automation-master as noted above.
This change supports the fact that inputs (from the generated pipeline), do not support that format.
It will perform precedence lookup, as above, and then do a best match for a directory.
This means that our workflow of develop/release will be supported and we do not break existing master patterns.
[#161320648]
Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.
The labels on this github issue will be updated when the story is started.
support fuzzy matching of directories when using non
master
directory structureThe current workflow for
yield_for_code_snippet
assumes all snippets are always in themaster
branch. The lookup path for the snippet directory would be (in order):When we moved from
master
todevelop
/release
pattern, our document generation starting failing in the Concourse pipeline. This is because our input name wasplatform-automation-develop
instead of the assumedplatform-automation-master
as noted above.This change supports the fact that inputs (from the generated pipeline), do not support that format. It will perform precedence lookup, as above, and then do a best match for a directory. This means that our workflow of
develop
/release
will be supported and we do not break existingmaster
patterns. [#161320648]