Currently the preview link generator manually constructs preview links for Markdown and YAML files in the PR. This is problematic because it doesn't create preview links for snippets, include files, or XML (API reference) files. Also, why try to recreate the link manually when we can just pull it from the build report - it's more reliable.
Instead, just copy the preview links that are generated by the OPS build into the table that's inserted in the PR description.
https://github.com/[gewarren/preview-on-learn](https://github.com/gewarren/preview-on-learn) has all the logic to obtain the build report from the OPS build status and parse it for preview links.
Currently the preview link generator manually constructs preview links for Markdown and YAML files in the PR. This is problematic because it doesn't create preview links for snippets, include files, or XML (API reference) files. Also, why try to recreate the link manually when we can just pull it from the build report - it's more reliable.
Instead, just copy the preview links that are generated by the OPS build into the table that's inserted in the PR description.
https://github.com/[gewarren/preview-on-learn](https://github.com/gewarren/preview-on-learn) has all the logic to obtain the build report from the OPS build status and parse it for preview links.