bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

commit 0ddbf1019c034eeaa70ed055a498463b66e2887d
parent e042af6b9e83e97e9d9d62a084867af51d33e436
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Mon,  5 Jan 2026 15:56:44 +0530

[2026-01-05] : .\{root} : changed the auto folder add logic

Diffstat:
Mdeploy_pipeline.py | 18+++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/deploy_pipeline.py b/deploy_pipeline.py @@ -158,7 +158,23 @@ def git_workflow_bsc(): print("[Info] No changes detected in 'bsc'. Skipping commit/push.") return - changed_dirs = [os.path.dirname(f.replace('/', os.sep)) for f in changed_files] + # 1. Filter out docs/index.html (it's auto-generated) + relevant_files = [f for f in changed_files if "docs/index.html" not in f.replace('\\', '/')] + + # 2. Separate "docs" files from "source code" files + # We check if a file starts with "docs/" + non_docs_files = [f for f in relevant_files if not f.replace('\\', '/').startswith('docs/')] + + # 3. Decision Logic: + # If we have non-docs changes (like Semester_1/code.c), we prioritize those paths. + # We ignore 'docs/' changes in the path calculation so it doesn't default to Root. + if non_docs_files: + files_to_check = non_docs_files + else: + # If ONLY docs changed (or only index.html changed), use whatever we have + files_to_check = relevant_files if relevant_files else changed_files + + changed_dirs = [os.path.dirname(f.replace('/', os.sep)) for f in files_to_check] if not changed_dirs: common_path = ""
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror