1 changed files with 2 additions and 1 deletions
@ -1,4 +1,5 @@ |
|||||
import logging |
import logging |
||||
|
import secrets |
||||
import subprocess |
import subprocess |
||||
from collections import Counter |
from collections import Counter |
||||
from datetime import datetime |
from datetime import datetime |
||||
@ -285,7 +286,7 @@ def main() -> None: |
|||||
subprocess.run( |
subprocess.run( |
||||
["git", "config", "user.email", "[email protected]"], check=True |
["git", "config", "user.email", "[email protected]"], 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}") |
logging.info(f"Creating a new branch {branch_name}") |
||||
subprocess.run(["git", "checkout", "-b", branch_name], check=True) |
subprocess.run(["git", "checkout", "-b", branch_name], check=True) |
||||
logging.info("Adding updated file") |
logging.info("Adding updated file") |
||||
|
Loading…
Reference in new issue