Skip to content

Conversation

@stevehipwell
Copy link
Collaborator

@stevehipwell stevehipwell commented Nov 29, 2024

Resolves #2314
Resolves #2224


Before the change?

  • No support for organization org roles

After the change?

  • Added support for organization or roles
  • Data sources
    • github_organization_repository_role
    • github_organization_repository_roles
    • github_organization_role
    • github_organization_role_teams
    • github_organization_users
    • github_organization_roles
    • github_organization_security_managers
  • Resources
    • github_organization_repository_role
    • github_organization_role
    • github_organization_role_team
    • github_organization_role_user

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@stevehipwell stevehipwell force-pushed the organization-roles branch 3 times, most recently from 78ab564 to 468dc74 Compare December 2, 2024 13:01
@stevehipwell stevehipwell force-pushed the organization-roles branch 2 times, most recently from ff32898 to be0f2aa Compare December 9, 2024 11:19
@stevehipwell stevehipwell marked this pull request as ready for review December 9, 2024 11:20
@stevehipwell stevehipwell force-pushed the organization-roles branch 3 times, most recently from b04dee2 to bc23c8e Compare December 12, 2024 17:20
@jtnz
Copy link

jtnz commented Jan 30, 2025

JFYI I think that this will conflict with github_repository_collaborators and will need a note in the docs to warn users.

I tried this out today (manually assigned an org role to a team) and on the next TF apply run it proceeded to spend the next ~45mins trying to remove the team from every repo in the organization. It finished happily (and with no actual affect), but the next run it does the same thing. I believe the problem is in the GH API. It mashes all team access together and offers no way to differentiate why the teams are in the list ("direct access" vs "organization access").

@stevehipwell
Copy link
Collaborator Author

@jtnz github_repository_collaborators has an input to allow it to not conflict with organization roles; the docs likely should belong on github_repository_collaborators (check out #2551 where these are already being updated). This is a GitHub issue and not provider related, due to the way the API works there isn't an easy way to filter org role users out at the repo level.

@jtnz
Copy link

jtnz commented Feb 6, 2025

@stevehipwell Haha, yeah, I just found this in 6.5.0. Thanks

@felixlut
Copy link
Contributor

felixlut commented Apr 8, 2025

@stevehipwell are you still working on this? I've had this old PR open for a while, and it looks like there is some overlap here (my PR fixes organizational role team assignments).

@stevehipwell
Copy link
Collaborator Author

@felixlut I am still working on this, but given the scarcity of maintainer attention I've not rebased my PRs.

@nafisdev
Copy link

is there a way to expedite this. I need this ASAP. I have a workaround, but having tough time managing the states.

@istathar
Copy link

Hilariously, Google's Gemini AI keeps recommending that I use the github_team_organization_role resource because it read this PR and thinks that the ability to specify such a role assignment is a part of the GitHub Terraform provider.

(I find myself in a position to test this, if the maintainers need someone to check it against their real world use case. Let us know if we can be of any help to get this merged and released?)

@nafisdev
Copy link

just yesterday, i reached out to one of the maintainers and asked to expedite this. I hope they are reviewing it now.

@Bradley-McCallion
Copy link

Please let me know if there is any support needed on getting this merged, such a must for this terraform provider!

@deepsihag
Copy link

How can we get some traction on this? Seems like many are available to extend the support if needed.

@zlobober
Copy link

+1

Let me tag @kfcampbell as one of the mergers of recent pull requests. This feels like an important feature, could you please expedite this one?

@nickfloyd nickfloyd moved this to On Deck in Terraform Provider Oct 14, 2025
@nickfloyd nickfloyd moved this from On Deck to In Progress in Terraform Provider Oct 20, 2025
@nickfloyd nickfloyd moved this from In Progress to In Review in Terraform Provider Oct 20, 2025
@nickfloyd nickfloyd assigned nickfloyd and unassigned nickfloyd Oct 20, 2025
@nickfloyd nickfloyd added the Type: Feature New feature or request label Oct 20, 2025
@nickfloyd nickfloyd merged commit 0f07a13 into integrations:main Oct 20, 2025
5 of 6 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Terraform Provider Oct 20, 2025
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in 🧰 Octokit Active Oct 20, 2025
@stevehipwell stevehipwell deleted the organization-roles branch October 20, 2025 15:21
@stevehipwell
Copy link
Collaborator Author

@nickfloyd should I take this as a sign to rebase my outstanding PRs or is this a one off?

@nickfloyd
Copy link
Contributor

@stevehipwell I am actively working to get some much needed change sets merged in and eventually released. Given the age, nature, and variation of these changes I have some CI issues I need to get knocked out. Feel free to rebase but know I will not release until everything is completely stable and working as expected in main - including docs / coverage for any new feature support, which btw you did an amazing job with that on all of this - thank you!

@stevehipwell
Copy link
Collaborator Author

@nickfloyd have you looked at #2476? I worked through all of the tests to fix them, changes since the PR was last rebased likely need integrating.

@nickfloyd
Copy link
Contributor

@nickfloyd have you looked at #2476? I worked through all of the tests to fix them, changes since the PR was last rebased likely need integrating.

I haven't just yet. I'm still trying to catch up on about a year of backlog 😬. I'll definitely add it to the priority list and see if I can help out. Any footwork you can do on it before hand while I am working on those dependent change sets would definitely be appreciated. Thank you again for all of the amazing hard work - I'll do my best to honor it.

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

Labels

Type: Feature New feature or request

Projects

9 participants