-
Notifications
You must be signed in to change notification settings - Fork 764
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
feat(branch-protection): Push/Reviewer actors can be specified by name #1020
feat(branch-protection): Push/Reviewer actors can be specified by name #1020
Conversation
feat: Added getNodeIDv4 feat(branch-protection): Added prefix requirement for teams/users The / prefix defines a user, the orgname/ prefix defines a team. (Ex.: testorg/team)
includes a nil check on branch protection resources
@kfcampbell Do you have any feedback on this? |
@kfcampbell I've made some changes with the feedback you gave, let me know if you have any more recommendations :) |
Also removed loop labels
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating this! Integration tests for this branch protection resource are broken on the main branch and failing here as well with this error:
testing.go:705: Step 0 error: errors during apply:
Error: Could not resolve to a node with the global id of '1234'
on /tmp/tf-test2340247973/main.tf line 8:
(source code not available)
So I don't think this is a regression. Thank you for the contribution.
@dion-gionet Are you okay if I merge/release this PR today? |
@kfcampbell Yep, sounds good! |
…d in integrations#1328 This reverts commit 553785b.
integrations#1020) * feat(branch-protection): Push/Reviewer actors can be specified by name feat: Added getNodeIDv4 feat(branch-protection): Added prefix requirement for teams/users The / prefix defines a user, the orgname/ prefix defines a team. (Ex.: testorg/team) * test(branch-protection): Added push restriction test with username * doc(branch-protection): Updated documentation to mention actor names * feat(branch-protection): updated to latest version * fix: env nil pointer dereference includes a nil check on branch protection resources * fix(branch-protection): added error handling Also removed loop labels
…d in integrations#1328 (integrations#1330) This reverts commit 553785b.
integrations#1020) * feat(branch-protection): Push/Reviewer actors can be specified by name feat: Added getNodeIDv4 feat(branch-protection): Added prefix requirement for teams/users The / prefix defines a user, the orgname/ prefix defines a team. (Ex.: testorg/team) * test(branch-protection): Added push restriction test with username * doc(branch-protection): Updated documentation to mention actor names * feat(branch-protection): updated to latest version * fix: env nil pointer dereference includes a nil check on branch protection resources * fix(branch-protection): added error handling Also removed loop labels
…d in integrations#1328 (integrations#1330) This reverts commit 03bc539.
Changes the github_branch_protection resource.
This enables us to use the branch protection resource without using a data block just to retrieve the node ID for users/teams. Node IDs can still be used as an input but you can now use a prefix to define a username or team name
The / prefix defines a user (Ex.: /testuser), the orgname/ prefix defines a team. (Ex.: testorg/team)