From: Sebastián Ramírez Date: Wed, 1 Jan 2025 22:29:40 +0000 (+0000) Subject: ♻️ Update branch name X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77287249c925f7fcec6700a11f30162225a2760f;p=thirdparty%2Ffastapi%2Ffastapi.git ♻️ Update branch name --- diff --git a/scripts/contributors.py b/scripts/contributors.py index 87170c2c2d..251558de7f 100644 --- a/scripts/contributors.py +++ b/scripts/contributors.py @@ -1,4 +1,5 @@ import logging +import secrets import subprocess from collections import Counter from datetime import datetime @@ -285,7 +286,7 @@ def main() -> None: subprocess.run( ["git", "config", "user.email", "github-actions@github.com"], check=True ) - branch_name = "fastapi-people-contributors" + branch_name = f"fastapi-people-contributors-{secrets.token_hex(4)}" logging.info(f"Creating a new branch {branch_name}") subprocess.run(["git", "checkout", "-b", branch_name], check=True) logging.info("Adding updated file")