mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-28 16:49:26 -05:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
405f3beed4 | ||
|
|
12f7cb957e | ||
|
|
77287249c9 | ||
|
|
29b24209b6 |
5
.github/workflows/contributors.yml
vendored
5
.github/workflows/contributors.yml
vendored
@@ -21,7 +21,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Dump GitHub context
|
- name: Dump GitHub context
|
||||||
env:
|
env:
|
||||||
@@ -50,8 +49,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
limit-access-to-actor: true
|
limit-access-to-actor: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.FASTAPI_PEOPLE }}
|
||||||
- name: FastAPI People Contributors
|
- name: FastAPI People Contributors
|
||||||
run: python ./scripts/contributors.py
|
run: python ./scripts/contributors.py
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.FASTAPI_PEOPLE }}
|
||||||
|
|||||||
@@ -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", "github-actions@github.com"], check=True
|
["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}")
|
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