diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-02-01 22:25:22 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-02-05 10:07:32 +0200 |
| commit | 5568f9d12b31e5de5a456d7f06eceb95631cb4e5 (patch) | |
| tree | 2e6f0b774418be0c8bcf62e4840009554b1dec97 /tools/releasedate.py | |
| parent | 3d1ff4bfdb159583a62e72ccb359a8508c4cbb2e (diff) | |
doc: Add a commands snippet to workflow about what to do in the 1st phase
What we should do when creating stabilization branch from the master.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'tools/releasedate.py')
| -rw-r--r-- | tools/releasedate.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tools/releasedate.py b/tools/releasedate.py index 37780501c3..3df1ea48fb 100644 --- a/tools/releasedate.py +++ b/tools/releasedate.py @@ -36,21 +36,23 @@ if __name__ == "__main__": print("Last release was (scheduled) on %s" % last.isoformat()) rel = upcoming.pop(0) - freeze, rc1, rc2 = rel - w2 * 3, rel - w2 * 2, rel - w2 + freeze, stabilization, rc = rel - w2 * 3, rel - w2 * 2, rel - w2 if now == rel: print("It's release day! 🎉") - elif now >= rc2: + elif now >= rc: print( - "%d days until release! (rc2 since %s)" - % ((rel - now).days, rc2.isoformat()) + "%d days until release! (RC since %s)" % ((rel - now).days, rc.isoformat()) + ) + elif now >= stabilization: + print( + "%d days until RC. (stabilization branch created since %s)" + % ((rc - now).days, stabilization.isoformat()) ) - elif now >= rc1: - print("%d days until rc2. (rc1 since %s)" % ((rc2 - now).days, rc1.isoformat())) elif now >= freeze: print( - "%d days until rc1, master is frozen since %s" - % ((rc1 - now).days, freeze.isoformat()) + "%d days until stabilization branch, master is frozen since %s" + % ((stabilization - now).days, freeze.isoformat()) ) else: print( |
