Skip to content

Commit b65970a

Browse files
Disable preemptive rate limiting
1 parent 9fceeda commit b65970a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

github/resource_github_actions_environment_variable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func resourceGithubActionsEnvironmentVariableUpdate(d *schema.ResourceData, meta
109109
func resourceGithubActionsEnvironmentVariableRead(d *schema.ResourceData, meta interface{}) error {
110110
client := meta.(*Owner).v3client
111111
owner := meta.(*Owner).name
112-
ctx := context.Background()
112+
ctx := context.WithValue(context.Background(), github.SleepUntilPrimaryRateLimitResetWhenRateLimited, true)
113113

114114
repoName, envName, name, err := parseThreePartID(d.Id(), "repository", "environment", "variable_name")
115115
if err != nil {

github/resource_github_actions_variable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func resourceGithubActionsVariableUpdate(d *schema.ResourceData, meta interface{
9494
func resourceGithubActionsVariableRead(d *schema.ResourceData, meta interface{}) error {
9595
client := meta.(*Owner).v3client
9696
owner := meta.(*Owner).name
97-
ctx := context.Background()
97+
ctx := context.WithValue(context.Background(), github.SleepUntilPrimaryRateLimitResetWhenRateLimited, true)
9898

9999
repoName, variableName, err := parseTwoPartID(d.Id(), "repository", "variable_name")
100100
if err != nil {

0 commit comments

Comments
 (0)