Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage GitHub projects as well #81

Open
nmerget opened this issue Feb 20, 2025 · 1 comment
Open

Manage GitHub projects as well #81

nmerget opened this issue Feb 20, 2025 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@nmerget
Copy link

nmerget commented Feb 20, 2025

I would be great if we could manage GitHub Projects as well.

Based on the configuration it could be like this:

Project Team:
  ...
  projects:
    roadmap:
      id: 1
      role: (admin | write | read)
    backlog:
      id: 2
      role: (admin | write | read)

Sadly the projects have an ID string with 1. Therefore, I would suggest using a name for better understanding.
Otherwise it could lead to issues if you forget a comment:

Project Team:
  ...
  projects:
    1: (admin | write | read) # This is the roadmap
    2: (admin | write | read) # This is the backlog
@mxmehl
Copy link
Member

mxmehl commented Feb 20, 2025

Thank you for the idea. My experience with GH projects is limited so I probably need to look into it more. I am optimistic that just like the teams and repos you do not have to provide IDs but rather names.

From the API docs it seems that the new Projects API is only available via GraphQL, not REST. The pygithub library we're using does not seem to support this yet: PyGithub/PyGithub#2140

For the maintainability of this project I'd like to keep the amount of custom API requests as low as possible. Right now we only use a custom GraphQL query for gathering the collaborator permissions.

@mxmehl mxmehl added enhancement New feature or request help wanted Extra attention is needed labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants