How to use the libmozdata.release_calendar.get_calendar function in libmozdata

To help you get started, we’ve selected a few libmozdata examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozilla / relman-auto-nag / auto_nag / utils.py View on Github external
def get_release_calendar():
    return rc.get_calendar()
github mozilla / relman-auto-nag / auto_nag / scripts / workflow / p2_merge_day.py View on Github external
def must_run(self, date):
        cal = rc.get_calendar()
        for c in cal:
            if date == c["merge"]:
                return True
        return False
github mozilla / relman-auto-nag / auto_nag / scripts / code_freeze_week.py View on Github external
def must_run(self, date):
        for c in get_calendar():
            # if freeze is the 2019-03-11, then the tool must run the day after
            # until 2019-03-2018 (a week after)
            freeze = c["soft freeze"]
            if freeze <= date <= freeze + relativedelta(days=6):
                return True
        return False