Open j-wags opened 2 months ago
It appears to have something to do with how the old project boards are repo-specific (ex https://github.com/openforcefield/qca-dataset-submission/projects/2
) and the new ones are accessed on the org level (ex https://github.com/orgs/openforcefield/projects/2
).
Ah, and pygithub doesn't support the new style of projects yet https://github.com/PyGithub/PyGithub/issues/2140
To get REST access to the project board contents using the V2 API, I had to get the project ID. It wasn't at all clear how to do this in the browser, so I made a token at the org level with read access to org:project, then ran
import subprocess
cmd = [
"curl", "--request", "POST",
"--url", "https://api.github.com/graphql",
"--header", f"Authorization: Bearer {token}",
"--data", '{"query":"query{organization(login: \\"openforcefield\\") {projectV2(number: 2){id}}}"}'
]
subprocess.run(cmd)
and got the node ID of the board (which I don't think is a secret, it's just a pain to get)
{"data":{"organization":{"projectV2":{"id":"PVT_kwDOARrkss4Am84U"}}}}
Something about lifecycle management actions is currently failing with the following error. I'm able to reproduce locally.