aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checktransupdate.py
Commit message (Collapse)AuthorAgeFilesLines
* scripts: add origin commit identification based on specific patternsZhiyu Zhang2025-07-241-1/+37
| | | | | | | | | | | | | This patch adds the functionability to smartly identify origin commit of the translation by matching the following patterns in commit log: 1) update to commit HASH 2) Update the translation through commit HASH If no such pattern is found, script will obey the original workflow. Signed-off-by: Zhiyu Zhang <[email protected]> Reviewed-by: Dongliang Mu <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
* scripts: fix all issues reported by pylintDongliang Mu2024-07-291-72/+140
| | | | | | | | | | | This patch 1) fixes all the issues (not most) reported by pylint, 2) add the functionability to tackle documents that need translation, 3) add logging to adjust the logging level and log file Signed-off-by: Dongliang Mu <[email protected]> Reviewed-by: Yanteng Si <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
* scripts: add scripts/checktransupdate.pyDongliang Mu2024-06-121-0/+203
The checktransupdate.py script helps track the translation status of the documentation in different locales, e.g., zh_CN and verify if these documenation is up-to-date. More specially, it uses `git log` commit to find the latest english commit from the translation commit (order by author date) and the latest english commits from HEAD. If differences occur, report the file and commits that need to be updated. Signed-off-by: Dongliang Mu <[email protected]> Signed-off-by: Cheng Ziqiu <[email protected]> Reviewed-by: Yanteng Si <[email protected]> Reviewed-by: Alex Shi <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]