]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
♻️ Update branch name
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 1 Jan 2025 22:29:40 +0000 (22:29 +0000)
committerSebastián Ramírez <tiangolo@gmail.com>
Wed, 1 Jan 2025 22:29:40 +0000 (22:29 +0000)
scripts/contributors.py

index 87170c2c2dbf41336b4ebd133be8e4e5afdc3598..251558de7f4b15c2242bf4d42f5911773947e1dd 100644 (file)
@@ -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")