@staticmethod
def _determine_draft_status(git_branch, lsstdoc=None):
    """Determine if the document build is considered a draft based on
        DM's policies given the Git branch or draft status in the lsstdoc-class
        LaTeX document.

        Parameters
        ----------
        git_branch : `str`
            Git branch or tag name.
        lsstdoc : `lsstprojectmeta.tex.lsstdoc.LsstLatexDoc`
            `~lsstprojectmeta.tex.lsstdoc.LsstLatexDoc` instance where, if the
            ``is_draft`` argument is `True`, the draft status is True.

        Returns
        -------
        is_draft : `bool`
            Returns `True` if the build is a draft, and `False` if it is
            not a draft.

        Notes
        -----
        The document **is not** considered a draft if:

        - Branch is ``master``
        - If ``lsstdoc`` is provided and ``lsstdoc.is_draft == False``,
          meaning that the ``lsstdoc`` option is not included in the document's
          class options.
        """
    if git_branch == 'master':
        return False
    if lsstdoc is not None:
        return lsstdoc.is_draft
    return True
