Skip to content

feat!: support roles assignments - #240

Open
typed-sigterm wants to merge 1 commit into
OpenRailAssociation:mainfrom
typed-sigterm:feat/roles
Open

typed-sigterm wants to merge 1 commit into
OpenRailAssociation:mainfrom
typed-sigterm:feat/roles

Conversation

@typed-sigterm

Copy link
Copy Markdown
Contributor

Resolve #95. Tested with my org.

It might be a breaking change because someone may already manually assigned roles, but the existng assignments will be removed if they're not in config.

@mxmehl
mxmehl self-requested a review August 12, 2026 13:57
@mxmehl

mxmehl commented Sep 16, 2026

Copy link
Copy Markdown
Member

Thanks for proposing this. To be honest, I am a bit hesitant towards adding manual REST API calls, but would prefrer using PyGithub as much as possible. This is why I proposed adding this to upstream in PyGithub/PyGithub#3578

Regarding your PR, I didn't have time for a thorough review yet, but you may want to check if we have the slug of all teams when we operate with the organization roles, especially if we create a new team and directly add an org role to it.

Also, it'd be great if you could rebase and fix the small lint issues. But provided we get the org roles features into pygithub soon, it might make sense to wait for that to be released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suppport GitHub organization roles

2 participants