Skip to content

Commit

Permalink
Fix Environment ID type in PendingDeploymentsRequest (google#2421)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGamba committed Jul 27, 2022
1 parent 579b109 commit 3934f39
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion github/actions_workflow_runs.go
Expand Up @@ -96,7 +96,7 @@ type WorkflowRunAttemptOptions struct {

// PendingDeploymentsRequest specificies body parameters to PendingDeployments
type PendingDeploymentsRequest struct {
EnvironmentIDs *[]int `json:"environment_ids"`
EnvironmentIDs []int64 `json:"environment_ids"`
State *string `json:"state"`
Comment *string `json:"comment"`
}
Expand Down
3 changes: 1 addition & 2 deletions github/actions_workflow_runs_test.go
Expand Up @@ -1081,8 +1081,7 @@ func TestActionService_PendingDeployments(t *testing.T) {
client, mux, _, teardown := setup()
defer teardown()

envIDs := []int{3, 4}
input := &PendingDeploymentsRequest{EnvironmentIDs: &envIDs, State: String("approved"), Comment: String("")}
input := &PendingDeploymentsRequest{EnvironmentIDs: []int64{3, 4}, State: String("approved"), Comment: String("")}

mux.HandleFunc("/repos/o/r/actions/runs/399444496/pending_deployments", func(w http.ResponseWriter, r *http.Request) {
v := new(PendingDeploymentsRequest)
Expand Down
8 changes: 0 additions & 8 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3934f39

Please sign in to comment.