packages/netlify-cms-backend-github/src/implementation.js
function getPreviewStatus(statuses, config) {
  const previewContext = config.getIn(['backend', 'preview_context']);
  return statuses.find(({ context }) => {
    return isPreviewContext(context, previewContext);
  });
}
function getPreviewStatus(statuses, config) {
  const previewContext = config.getIn(['backend', 'preview_context']);
  return statuses.find(({ context }) => {
    return isPreviewContext(context, previewContext);
  });
}
function getPreviewStatus ( statuses , config ) { const previewContext = config . getIn ( [ 'backend' , 'preview_context' ] ) ; return statuses . find ( ( { context } ) => { return isPreviewContext ( context , previewContext ) ; } ) ; }
Retrieve a deploy preview URL from an array of statuses. By default, a
matching status is inferred via `isPreviewContext`.
Retrieve a deploy preview URL from an array of statuses . By default a matching status is inferred via isPreviewContext .