Skip to content

Python PyGithub how to list projectCard? #1689

Description

@jf-marquis-Adeo

I'm trying to access project card from github api with PyGithub but I'm unable to find how to call the projectcard method (https://developer.github.com/v3/projects/cards/) It seems to be ready to use (https://pygithub.readthedocs.io/en/latest/github_objects/ProjectCard.html)
My code working for projects :

from github import Github

# github access token
g = Github("XXXXX")

repo = g.get_repo("Myrepo")
projects = repo.get_projects(state='open')
for project in projects:
    print('do something with project')

thanks a lot for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions