-
Notifications
You must be signed in to change notification settings - Fork 741
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: Add a data source for branch protection rules. #1207
feat: Add a data source for branch protection rules. #1207
Conversation
@galargh sorry I missed this; is this still a feature you're interested in getting shipped? |
Hello @kfcampbell, this PR is stale for a moment ? can you look at it please ? I can eventually fork and fix what needed to make it merge :) |
Hey! Thanks for the reply :) Yes, I still think it'd be nice to have. It's not a strict requirement for my use cases anymore though. |
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.
Confirming that the added integration tests are passing. Thank you for contributing!
Hey @kfcampbell sorry for disturbing can we merge this PR then ? 🙏 |
* Add a data source for branch protection rules. * chore: go fmt --------- Co-authored-by: Keegan Campbell <me@kfcampbell.com>
Resolves #1206
Description
This PR adds a data source for branch protection rules. Given a repository name, it returns a list of branch protection rules associated with that repository.
I added a markdown entry which describes how to configure the new data source.
Testing
TF_ACC=1 go test -v ./... -run ^ TestAccGithubBranchProtectionRulesDataSource