Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for get_repo (0.04 sec)

  1. scripts/label_approved.py

        logging.basicConfig(level=logging.DEBUG)
    else:
        logging.basicConfig(level=logging.INFO)
    logging.debug(f"Using config: {settings.model_dump_json()}")
    g = Github(settings.token.get_secret_value())
    repo = g.get_repo(settings.github_repository)
    for pr in repo.get_pulls(state="open"):
        logging.info(f"Checking PR: #{pr.number}")
        pr_labels = list(pr.get_labels())
        pr_label_by_name = {label.name: label for label in pr_labels}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Jun 17 07:50:19 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. scripts/deploy_docs_status.py

        logging.basicConfig(level=logging.INFO)
        settings = Settings()
    
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(auth=Auth.Token(settings.github_token.get_secret_value()))
        repo = g.get_repo(settings.github_repository)
        use_pr = next(
            (pr for pr in repo.get_pulls() if pr.head.sha == settings.commit_sha), None
        )
        if not use_pr:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 05:56:53 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. scripts/topic_repos.py

        logging.basicConfig(level=logging.INFO)
        settings = Settings()
    
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.github_token.get_secret_value(), per_page=100)
        r = g.get_repo(settings.github_repository)
        repos = g.search_repositories(query="topic:fastapi")
        repos_list = list(repos)
        final_repos: list[Repo] = []
        for repo in repos_list[:100]:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 12:34:01 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. scripts/sponsors.py

    def main() -> None:
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.pr_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
    
        tiers = get_individual_sponsors(settings=settings)
        keys = list(tiers.keys())
        keys.sort(reverse=True)
        sponsors = []
        for key in keys:
            sponsor_group = []
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 12:34:01 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  5. scripts/contributors.py

    def main() -> None:
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.github_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
    
        pr_nodes = get_pr_nodes(settings=settings)
        contributors_results = get_contributors(pr_nodes=pr_nodes)
        authors = contributors_results.authors
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 12:34:01 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  6. scripts/notify_translations.py

        else:
            logging.basicConfig(level=logging.INFO)
        logging.debug(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.github_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
        if not settings.github_event_path.is_file():
            raise RuntimeError(
                f"No github event file available at: {settings.github_event_path}"
            )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. scripts/people.py

    def main() -> None:
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.github_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
    
        discussion_nodes = get_discussion_nodes(settings=settings)
        experts_results = get_discussions_experts(discussion_nodes=discussion_nodes)
    
        authors = experts_results.authors
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. scripts/translate.py

        print("Pushing branch")
        subprocess.run(["git", "push", "origin", branch_name], check=True)
        print("Creating PR")
        g = Github(github_token)
        gh_repo = g.get_repo(github_repository)
        body = (
            message
            + "\n\nThis PR was created automatically using LLMs."
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  9. tests/test_repeated_dependency_schema.py

    app = FastAPI()
    
    
    def get_header(*, someheader: str = Header()):
        return someheader
    
    
    def get_something_else(*, someheader: str = Depends(get_header)):
        return f"{someheader}123"
    
    
    @app.get("/")
    def get_deps(dep1: str = Depends(get_header), dep2: str = Depends(get_something_else)):
        return {"dep1": dep1, "dep2": dep2}
    
    
    client = TestClient(app)
    
    schema = {
        "components": {
            "schemas": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Mar 06 12:18:57 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top