mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-25 07:08:11 -05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a87e288c2 | ||
|
|
8aa879ea47 |
@@ -1,5 +1,4 @@
|
|||||||
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
|
||||||
@@ -286,7 +285,7 @@ def main() -> None:
|
|||||||
subprocess.run(
|
subprocess.run(
|
||||||
["git", "config", "user.email", "github-actions@github.com"], check=True
|
["git", "config", "user.email", "github-actions@github.com"], check=True
|
||||||
)
|
)
|
||||||
branch_name = f"fastapi-people-contributors-{secrets.token_hex(4)}"
|
branch_name = "fastapi-people-contributors"
|
||||||
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user