chore: migrate releases resource and data source to context-aware fun…#3036
chore: migrate releases resource and data source to context-aware fun…#3036stevehipwell merged 1 commit intointegrations:mainfrom
Conversation
|
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
b0f6a7e to
f1cdc37
Compare
|
@tempora-mutantur Could you please resolve the conflicts? 🙏 |
f1cdc37 to
f52b3ff
Compare
Done. Thanks |
|
After rebasing, I re-ran tests including the The issue appears to be caused by using https://github.com/integrations/terraform-provider-github/blob/main/github/provider.go#L25
I tested the "can be configured to run anonymously" test case by removing the line https://github.com/integrations/terraform-provider-github/blob/main/github/provider_test.go#L57 to test this It failed with: Maybe we could use |
|
@tempora-mutantur I think I actually made the decision conciously that for anonymous access one would need to set But I didn't document that and I didn't run this past the other maintainers properly either |
|
There is now a PR to address that #3071 |
stevehipwell
left a comment
There was a problem hiding this comment.
Thanks for the PR @tempora-mutantur, I've added some comments.
f52b3ff to
1d24b63
Compare
|
@nickfloyd could you please review this. |
|
@tempora-mutantur could you please rebase this PR? |
1d24b63 to
a28bc0f
Compare
…ctions (integrations#2996) The legacy CRUD function types are deprecated and should be replaced with the context-aware versions.
Contributes to #2996
Local tests passed for anonymous, individual, and organization modes.
After the change?
CRUD functions were switched to context-aware versions
https://developer.hashicorp.com/terraform/plugin/sdkv2/guides/v2-upgrade-guide#more-support-for-context-context
*
Pull request checklist
Does this introduce a breaking change?