From 7f8b26c97b88fe879f30589ae9e66dfb8ba38a06 Mon Sep 17 00:00:00 2001 From: bdattoma Date: Wed, 7 Aug 2024 15:16:27 +0200 Subject: [PATCH] add script description --- ods_ci/utils/scripts/detect_rc.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ods_ci/utils/scripts/detect_rc.py b/ods_ci/utils/scripts/detect_rc.py index 3568d1652..b82dd1982 100755 --- a/ods_ci/utils/scripts/detect_rc.py +++ b/ods_ci/utils/scripts/detect_rc.py @@ -1,3 +1,13 @@ +""" +The script compares the given build date (e.g. received in the UMB message) and +the code freeze date which is reported in Smartsheet. +If the date is over the the code freeze, the build is considered a Release Candidate. + +Output: +- returns code 0 if the build is RC +- returns code 1 if the build is NOT RC +""" + import argparse from datetime import datetime import smartsheet