今からでも間に合う

技術を学ぶのは今からでも遅くない

memo

def get_pull_requests_ignored_long_time(setup : Setup, date : datetime) :
    credentials = BasicAuthentication('', setup.pat)
    connection = Connection(base_url=setup.org_url, creds=credentials)
    
    # GitClient
    gc : git.git_client.GitClient = connection.clients_v6_0.get_git_client()
    
    criteria = git.models.GitPullRequestSearchCriteria()
    criteria.repository_id = setup.repos_id
    criteria.status = "active"
    prs = gc.get_pull_requests(repository_id= setup.repos_id, search_criteria=criteria, project=setup.project, top=10000)
    
    result = []
    for pr in prs :
        pr : git.models.GitPullRequest
        pr_date : datetime = pr.creation_date
        if pr_date.date() < date.date() :
            result.append(pr)
プライバシーポリシー


d払いポイントGETモール