diff --git a/github/config.go b/github/config.go index 37704311e2..f89ebd02b9 100644 --- a/github/config.go +++ b/github/config.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging" "github.com/shurcooL/githubv4" "golang.org/x/oauth2" diff --git a/github/data_source_github_actions_environment_secrets.go b/github/data_source_github_actions_environment_secrets.go index e8777bdb07..59571521b1 100644 --- a/github/data_source_github_actions_environment_secrets.go +++ b/github/data_source_github_actions_environment_secrets.go @@ -5,7 +5,7 @@ import ( "fmt" "net/url" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_actions_environment_variables.go b/github/data_source_github_actions_environment_variables.go index c297c75503..96b56ccbd9 100644 --- a/github/data_source_github_actions_environment_variables.go +++ b/github/data_source_github_actions_environment_variables.go @@ -5,7 +5,7 @@ import ( "fmt" "net/url" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_actions_organization_secrets.go b/github/data_source_github_actions_organization_secrets.go index e096bd81dc..04be9e7d12 100644 --- a/github/data_source_github_actions_organization_secrets.go +++ b/github/data_source_github_actions_organization_secrets.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_actions_organization_variables.go b/github/data_source_github_actions_organization_variables.go index afbec4ed5f..281a4a802a 100644 --- a/github/data_source_github_actions_organization_variables.go +++ b/github/data_source_github_actions_organization_variables.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_actions_secrets.go b/github/data_source_github_actions_secrets.go index b81468c00b..643bb61a95 100644 --- a/github/data_source_github_actions_secrets.go +++ b/github/data_source_github_actions_secrets.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_actions_variables.go b/github/data_source_github_actions_variables.go index c7272dd570..c9a8b3299e 100644 --- a/github/data_source_github_actions_variables.go +++ b/github/data_source_github_actions_variables.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_app_token_test.go b/github/data_source_github_app_token_test.go index b42b593c88..c0ecbb286d 100644 --- a/github/data_source_github_app_token_test.go +++ b/github/data_source_github_app_token_test.go @@ -7,7 +7,7 @@ import ( "os" "testing" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/stretchr/testify/assert" ) diff --git a/github/data_source_github_branch.go b/github/data_source_github_branch.go index 46eec07948..a26dc7656f 100644 --- a/github/data_source_github_branch.go +++ b/github/data_source_github_branch.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_codespaces_organization_secrets.go b/github/data_source_github_codespaces_organization_secrets.go index 384acf5de4..b030a93b93 100644 --- a/github/data_source_github_codespaces_organization_secrets.go +++ b/github/data_source_github_codespaces_organization_secrets.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_codespaces_secrets.go b/github/data_source_github_codespaces_secrets.go index b76647d7ee..989b6a0064 100644 --- a/github/data_source_github_codespaces_secrets.go +++ b/github/data_source_github_codespaces_secrets.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_codespaces_user_secrets.go b/github/data_source_github_codespaces_user_secrets.go index c05063766d..c39a88d63f 100644 --- a/github/data_source_github_codespaces_user_secrets.go +++ b/github/data_source_github_codespaces_user_secrets.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_collaborators.go b/github/data_source_github_collaborators.go index c5ffe05fe0..f7857171a3 100644 --- a/github/data_source_github_collaborators.go +++ b/github/data_source_github_collaborators.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/data_source_github_dependabot_organization_secrets.go b/github/data_source_github_dependabot_organization_secrets.go index afbeddbbda..f15a33aebb 100644 --- a/github/data_source_github_dependabot_organization_secrets.go +++ b/github/data_source_github_dependabot_organization_secrets.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_dependabot_secrets.go b/github/data_source_github_dependabot_secrets.go index 69ce930aa6..52afdd86dd 100644 --- a/github/data_source_github_dependabot_secrets.go +++ b/github/data_source_github_dependabot_secrets.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_external_groups.go b/github/data_source_github_external_groups.go index 1dc54e0beb..2155dff78e 100644 --- a/github/data_source_github_external_groups.go +++ b/github/data_source_github_external_groups.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_issue_labels.go b/github/data_source_github_issue_labels.go index ed29dc05a9..b077639d9f 100644 --- a/github/data_source_github_issue_labels.go +++ b/github/data_source_github_issue_labels.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_organization.go b/github/data_source_github_organization.go index 93c184483b..c393419018 100644 --- a/github/data_source_github_organization.go +++ b/github/data_source_github_organization.go @@ -3,7 +3,7 @@ package github import ( "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/shurcooL/githubv4" ) diff --git a/github/data_source_github_organization_custom_role.go b/github/data_source_github_organization_custom_role.go index 688eae72e3..a7f80fcd5b 100644 --- a/github/data_source_github_organization_custom_role.go +++ b/github/data_source_github_organization_custom_role.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_organization_team_sync_groups.go b/github/data_source_github_organization_team_sync_groups.go index a4f474c0a0..3b1c2d8fad 100644 --- a/github/data_source_github_organization_team_sync_groups.go +++ b/github/data_source_github_organization_team_sync_groups.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_organization_webhooks.go b/github/data_source_github_organization_webhooks.go index 2f9d4eeb2e..7885c7e50c 100644 --- a/github/data_source_github_organization_webhooks.go +++ b/github/data_source_github_organization_webhooks.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_ref.go b/github/data_source_github_ref.go index 5f1d7353e0..cc4ed26ea2 100644 --- a/github/data_source_github_ref.go +++ b/github/data_source_github_ref.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_release.go b/github/data_source_github_release.go index a79d1441f2..3897a888bb 100644 --- a/github/data_source_github_release.go +++ b/github/data_source_github_release.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_repositories.go b/github/data_source_github_repositories.go index 9a153015e4..86f053dbe5 100644 --- a/github/data_source_github_repositories.go +++ b/github/data_source_github_repositories.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/data_source_github_repository.go b/github/data_source_github_repository.go index 7105aa76a9..6e21ed434c 100644 --- a/github/data_source_github_repository.go +++ b/github/data_source_github_repository.go @@ -7,7 +7,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_repository_autolink_references.go b/github/data_source_github_repository_autolink_references.go index 3c94475810..f678c1b49d 100644 --- a/github/data_source_github_repository_autolink_references.go +++ b/github/data_source_github_repository_autolink_references.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_repository_branches.go b/github/data_source_github_repository_branches.go index 250b5baa9e..90f9e290ea 100644 --- a/github/data_source_github_repository_branches.go +++ b/github/data_source_github_repository_branches.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_repository_deploy_keys.go b/github/data_source_github_repository_deploy_keys.go index b6996c0f83..aecdeae81a 100644 --- a/github/data_source_github_repository_deploy_keys.go +++ b/github/data_source_github_repository_deploy_keys.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_repository_environments.go b/github/data_source_github_repository_environments.go index 3f59a24a98..ccba31282f 100644 --- a/github/data_source_github_repository_environments.go +++ b/github/data_source_github_repository_environments.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_repository_file.go b/github/data_source_github_repository_file.go index 1e76a9592f..160cc16d76 100644 --- a/github/data_source_github_repository_file.go +++ b/github/data_source_github_repository_file.go @@ -8,7 +8,7 @@ import ( "net/url" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_repository_file_test.go b/github/data_source_github_repository_file_test.go index 8621163491..650ae43bf3 100644 --- a/github/data_source_github_repository_file_test.go +++ b/github/data_source_github_repository_file_test.go @@ -9,7 +9,7 @@ import ( "net/url" "testing" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/stretchr/testify/assert" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" diff --git a/github/data_source_github_repository_pull_requests.go b/github/data_source_github_repository_pull_requests.go index c4b89065fd..9dcc02d73a 100644 --- a/github/data_source_github_repository_pull_requests.go +++ b/github/data_source_github_repository_pull_requests.go @@ -4,7 +4,7 @@ import ( "context" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/data_source_github_repository_teams.go b/github/data_source_github_repository_teams.go index 6872267eb3..70d93e4c23 100644 --- a/github/data_source_github_repository_teams.go +++ b/github/data_source_github_repository_teams.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_repository_webhooks.go b/github/data_source_github_repository_webhooks.go index f37708bd98..a2522e3c15 100644 --- a/github/data_source_github_repository_webhooks.go +++ b/github/data_source_github_repository_webhooks.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/data_source_github_team.go b/github/data_source_github_team.go index 811726c60a..96a4ed4b44 100644 --- a/github/data_source_github_team.go +++ b/github/data_source_github_team.go @@ -4,7 +4,7 @@ import ( "context" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/shurcooL/githubv4" diff --git a/github/repository_utils.go b/github/repository_utils.go index c4bbcc7b74..4f00e2c94f 100644 --- a/github/repository_utils.go +++ b/github/repository_utils.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" ) // checkRepositoryBranchExists tests if a branch exists in a repository. diff --git a/github/resource_github_actions_environment_secret.go b/github/resource_github_actions_environment_secret.go index c6f5ac203a..2c644cf6a6 100644 --- a/github/resource_github_actions_environment_secret.go +++ b/github/resource_github_actions_environment_secret.go @@ -7,7 +7,7 @@ import ( "net/http" "net/url" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_actions_environment_variable.go b/github/resource_github_actions_environment_variable.go index d6e87025f1..fdd89a1f29 100644 --- a/github/resource_github_actions_environment_variable.go +++ b/github/resource_github_actions_environment_variable.go @@ -6,7 +6,7 @@ import ( "net/http" "net/url" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_actions_organization_oidc_subject_claim_customization_template.go b/github/resource_github_actions_organization_oidc_subject_claim_customization_template.go index cba9bb0dee..72fa93a017 100644 --- a/github/resource_github_actions_organization_oidc_subject_claim_customization_template.go +++ b/github/resource_github_actions_organization_oidc_subject_claim_customization_template.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_actions_organization_permissions.go b/github/resource_github_actions_organization_permissions.go index 0bf193ff90..ff4b73b1ec 100644 --- a/github/resource_github_actions_organization_permissions.go +++ b/github/resource_github_actions_organization_permissions.go @@ -5,7 +5,7 @@ import ( "errors" "log" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_actions_organization_secret.go b/github/resource_github_actions_organization_secret.go index 194fb5b82d..f5a0112821 100644 --- a/github/resource_github_actions_organization_secret.go +++ b/github/resource_github_actions_organization_secret.go @@ -7,7 +7,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_actions_organization_secret_repositories.go b/github/resource_github_actions_organization_secret_repositories.go index dc66d0b2ae..4bf94743ec 100644 --- a/github/resource_github_actions_organization_secret_repositories.go +++ b/github/resource_github_actions_organization_secret_repositories.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_actions_organization_variable.go b/github/resource_github_actions_organization_variable.go index 42c2197059..e120e37bc0 100644 --- a/github/resource_github_actions_organization_variable.go +++ b/github/resource_github_actions_organization_variable.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_actions_repository_access_level.go b/github/resource_github_actions_repository_access_level.go index 8f980d1a3e..ac58c80701 100644 --- a/github/resource_github_actions_repository_access_level.go +++ b/github/resource_github_actions_repository_access_level.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_actions_repository_oidc_subject_claim_customization_template.go b/github/resource_github_actions_repository_oidc_subject_claim_customization_template.go index 3a4bd8990a..28a01e760c 100644 --- a/github/resource_github_actions_repository_oidc_subject_claim_customization_template.go +++ b/github/resource_github_actions_repository_oidc_subject_claim_customization_template.go @@ -4,7 +4,7 @@ import ( "context" "errors" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_actions_repository_permissions.go b/github/resource_github_actions_repository_permissions.go index 46ce41c671..69a2d22ad0 100644 --- a/github/resource_github_actions_repository_permissions.go +++ b/github/resource_github_actions_repository_permissions.go @@ -4,7 +4,7 @@ import ( "context" "log" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_actions_runner_group.go b/github/resource_github_actions_runner_group.go index 0e6c301ce2..18ac4925fc 100644 --- a/github/resource_github_actions_runner_group.go +++ b/github/resource_github_actions_runner_group.go @@ -7,7 +7,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_actions_secret.go b/github/resource_github_actions_secret.go index bf71e1d1a3..6941b89f9f 100644 --- a/github/resource_github_actions_secret.go +++ b/github/resource_github_actions_secret.go @@ -8,7 +8,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "golang.org/x/crypto/nacl/box" ) diff --git a/github/resource_github_actions_variable.go b/github/resource_github_actions_variable.go index 8dc2cd1191..398c3ffb61 100644 --- a/github/resource_github_actions_variable.go +++ b/github/resource_github_actions_variable.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_app_installation_repositories.go b/github/resource_github_app_installation_repositories.go index 0061ed7a6e..e67ebbad16 100644 --- a/github/resource_github_app_installation_repositories.go +++ b/github/resource_github_app_installation_repositories.go @@ -5,7 +5,7 @@ import ( "log" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_app_installation_repository.go b/github/resource_github_app_installation_repository.go index 32c6a6b7ad..2eb35e1a53 100644 --- a/github/resource_github_app_installation_repository.go +++ b/github/resource_github_app_installation_repository.go @@ -5,7 +5,7 @@ import ( "log" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_branch.go b/github/resource_github_branch.go index 117b37e6a1..64bd7d7e5b 100644 --- a/github/resource_github_branch.go +++ b/github/resource_github_branch.go @@ -7,7 +7,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_branch_default.go b/github/resource_github_branch_default.go index 639edd2599..32d8d299b2 100644 --- a/github/resource_github_branch_default.go +++ b/github/resource_github_branch_default.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_branch_protection_v3.go b/github/resource_github_branch_protection_v3.go index bd312377dc..22b28a5fe2 100644 --- a/github/resource_github_branch_protection_v3.go +++ b/github/resource_github_branch_protection_v3.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_branch_protection_v3_utils.go b/github/resource_github_branch_protection_v3_utils.go index 76c92f819b..47e6616b0d 100644 --- a/github/resource_github_branch_protection_v3_utils.go +++ b/github/resource_github_branch_protection_v3_utils.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_codespaces_organization_secret.go b/github/resource_github_codespaces_organization_secret.go index b9e9eabbbc..ba33c14aaf 100644 --- a/github/resource_github_codespaces_organization_secret.go +++ b/github/resource_github_codespaces_organization_secret.go @@ -7,7 +7,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_codespaces_organization_secret_repositories.go b/github/resource_github_codespaces_organization_secret_repositories.go index b3fd436d07..7292d794d8 100644 --- a/github/resource_github_codespaces_organization_secret_repositories.go +++ b/github/resource_github_codespaces_organization_secret_repositories.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_codespaces_secret.go b/github/resource_github_codespaces_secret.go index cff4433800..8bb806da1b 100644 --- a/github/resource_github_codespaces_secret.go +++ b/github/resource_github_codespaces_secret.go @@ -8,7 +8,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_codespaces_user_secret.go b/github/resource_github_codespaces_user_secret.go index 7efebba4ba..c9867809cb 100644 --- a/github/resource_github_codespaces_user_secret.go +++ b/github/resource_github_codespaces_user_secret.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_dependabot_organization_secret.go b/github/resource_github_dependabot_organization_secret.go index 8e384c4b63..58e97654b3 100644 --- a/github/resource_github_dependabot_organization_secret.go +++ b/github/resource_github_dependabot_organization_secret.go @@ -7,7 +7,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_dependabot_organization_secret_repositories.go b/github/resource_github_dependabot_organization_secret_repositories.go index 345af6a632..3eb2846939 100644 --- a/github/resource_github_dependabot_organization_secret_repositories.go +++ b/github/resource_github_dependabot_organization_secret_repositories.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_dependabot_secret.go b/github/resource_github_dependabot_secret.go index a408d0b98b..59f234cea7 100644 --- a/github/resource_github_dependabot_secret.go +++ b/github/resource_github_dependabot_secret.go @@ -8,7 +8,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "golang.org/x/crypto/nacl/box" ) diff --git a/github/resource_github_emu_group_mapping.go b/github/resource_github_emu_group_mapping.go index 460df9f902..f9c47fa689 100644 --- a/github/resource_github_emu_group_mapping.go +++ b/github/resource_github_emu_group_mapping.go @@ -5,7 +5,7 @@ import ( "fmt" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_enterprise_actions_permissions.go b/github/resource_github_enterprise_actions_permissions.go index 04fb3aaf12..97847277fd 100644 --- a/github/resource_github_enterprise_actions_permissions.go +++ b/github/resource_github_enterprise_actions_permissions.go @@ -4,7 +4,7 @@ import ( "context" "errors" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_enterprise_actions_runner_group.go b/github/resource_github_enterprise_actions_runner_group.go index 44bfb59e2e..7116d6a95c 100644 --- a/github/resource_github_enterprise_actions_runner_group.go +++ b/github/resource_github_enterprise_actions_runner_group.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_enterprise_organization.go b/github/resource_github_enterprise_organization.go index 9b6b889f9e..71b95bc6ee 100644 --- a/github/resource_github_enterprise_organization.go +++ b/github/resource_github_enterprise_organization.go @@ -6,7 +6,7 @@ import ( "log" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/shurcooL/githubv4" ) diff --git a/github/resource_github_issue.go b/github/resource_github_issue.go index ab474b071d..3d82b02838 100644 --- a/github/resource_github_issue.go +++ b/github/resource_github_issue.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_issue_label.go b/github/resource_github_issue_label.go index 90b0d5ea7b..070e632ad3 100644 --- a/github/resource_github_issue_label.go +++ b/github/resource_github_issue_label.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_issue_labels.go b/github/resource_github_issue_labels.go index c6039a2317..fb62807217 100644 --- a/github/resource_github_issue_labels.go +++ b/github/resource_github_issue_labels.go @@ -5,7 +5,7 @@ import ( "log" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_membership.go b/github/resource_github_membership.go index 287183d2b7..1acf8ad75f 100644 --- a/github/resource_github_membership.go +++ b/github/resource_github_membership.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_membership_test.go b/github/resource_github_membership_test.go index 5e6d25401f..5de47af221 100644 --- a/github/resource_github_membership_test.go +++ b/github/resource_github_membership_test.go @@ -6,7 +6,7 @@ import ( "fmt" "testing" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" ) diff --git a/github/resource_github_organization_custom_role.go b/github/resource_github_organization_custom_role.go index 01ac74f974..23bcb20492 100644 --- a/github/resource_github_organization_custom_role.go +++ b/github/resource_github_organization_custom_role.go @@ -4,8 +4,9 @@ import ( "context" "fmt" "log" + "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -63,7 +64,7 @@ func resourceGithubOrganizationCustomRoleCreate(d *schema.ResourceData, meta int permissionsStr[i] = v.(string) } - role, _, err := client.Organizations.CreateCustomRepoRole(ctx, orgName, &github.CreateOrUpdateCustomRoleOptions{ + role, _, err := client.Organizations.CreateCustomRepoRole(ctx, orgName, &github.CreateOrUpdateCustomRepoRoleOptions{ Name: github.String(d.Get("name").(string)), Description: github.String(d.Get("description").(string)), BaseRole: github.String(d.Get("base_role").(string)), @@ -137,15 +138,20 @@ func resourceGithubOrganizationCustomRoleUpdate(d *schema.ResourceData, meta int if err != nil { return err } + // convert d.Id() from string to int64 + roleIDStr := d.Id() + roleID, err := strconv.ParseInt(roleIDStr, 10, 64) + if err != nil { + return fmt.Errorf("Error converting role ID %s to int64: %s", roleIDStr, err) + } - roleID := d.Id() permissions := d.Get("permissions").(*schema.Set).List() permissionsStr := make([]string, len(permissions)) for i, v := range permissions { permissionsStr[i] = v.(string) } - update := &github.CreateOrUpdateCustomRoleOptions{ + update := &github.CreateOrUpdateCustomRepoRoleOptions{ Name: github.String(d.Get("name").(string)), Description: github.String(d.Get("description").(string)), BaseRole: github.String(d.Get("base_role").(string)), @@ -153,7 +159,7 @@ func resourceGithubOrganizationCustomRoleUpdate(d *schema.ResourceData, meta int } if _, _, err := client.Organizations.UpdateCustomRepoRole(ctx, orgName, roleID, update); err != nil { - return fmt.Errorf("error updating GitHub custom repository role %s (%s): %s", orgName, roleID, err) + return fmt.Errorf("error updating GitHub custom repository role %s (%d): %s", orgName, roleID, err) } return resourceGithubOrganizationCustomRoleRead(d, meta) @@ -168,11 +174,15 @@ func resourceGithubOrganizationCustomRoleDelete(d *schema.ResourceData, meta int if err != nil { return err } - roleID := d.Id() + roleIDStr := d.Id() + roleID, err := strconv.ParseInt(roleIDStr, 10, 64) + if err != nil { + return fmt.Errorf("Error converting role ID %s to int64: %s", roleIDStr, err) + } _, err = client.Organizations.DeleteCustomRepoRole(ctx, orgName, roleID) if err != nil { - return fmt.Errorf("Error deleting GitHub custom repository role %s (%s): %s", orgName, roleID, err) + return fmt.Errorf("Error deleting GitHub custom repository role %s (%d): %s", orgName, roleID, err) } return nil diff --git a/github/resource_github_organization_project.go b/github/resource_github_organization_project.go index 1e5e67a168..84dec1d193 100644 --- a/github/resource_github_organization_project.go +++ b/github/resource_github_organization_project.go @@ -7,7 +7,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_organization_project_test.go b/github/resource_github_organization_project_test.go index 1bcc1c780c..13f515c0db 100644 --- a/github/resource_github_organization_project_test.go +++ b/github/resource_github_organization_project_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" ) diff --git a/github/resource_github_organization_ruleset.go b/github/resource_github_organization_ruleset.go index 0618a89030..2b230d893b 100644 --- a/github/resource_github_organization_ruleset.go +++ b/github/resource_github_organization_ruleset.go @@ -7,7 +7,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_organization_security_manager.go b/github/resource_github_organization_security_manager.go index db491795f6..debb5e57a3 100644 --- a/github/resource_github_organization_security_manager.go +++ b/github/resource_github_organization_security_manager.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_organization_settings.go b/github/resource_github_organization_settings.go index 6687a37f0c..e2098d57ba 100644 --- a/github/resource_github_organization_settings.go +++ b/github/resource_github_organization_settings.go @@ -5,7 +5,7 @@ import ( "log" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_organization_webhook.go b/github/resource_github_organization_webhook.go index fa22b83404..526cf52203 100644 --- a/github/resource_github_organization_webhook.go +++ b/github/resource_github_organization_webhook.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_project_card.go b/github/resource_github_project_card.go index fa32949b0e..51f097b8ad 100644 --- a/github/resource_github_project_card.go +++ b/github/resource_github_project_card.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_project_column.go b/github/resource_github_project_column.go index 24cd39f269..01c0c1a520 100644 --- a/github/resource_github_project_column.go +++ b/github/resource_github_project_column.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_project_column_test.go b/github/resource_github_project_column_test.go index 3d34faf112..20e16fb38b 100644 --- a/github/resource_github_project_column_test.go +++ b/github/resource_github_project_column_test.go @@ -6,7 +6,7 @@ import ( "strconv" "testing" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" ) diff --git a/github/resource_github_release.go b/github/resource_github_release.go index ea93287eed..319a193aef 100644 --- a/github/resource_github_release.go +++ b/github/resource_github_release.go @@ -7,7 +7,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_repository.go b/github/resource_github_repository.go index 02d4be2b94..eb3588450f 100644 --- a/github/resource_github_repository.go +++ b/github/resource_github_repository.go @@ -9,7 +9,7 @@ import ( "regexp" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_repository_autolink_reference.go b/github/resource_github_repository_autolink_reference.go index 7d0218431d..809a8104a3 100644 --- a/github/resource_github_repository_autolink_reference.go +++ b/github/resource_github_repository_autolink_reference.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_repository_collaborator.go b/github/resource_github_repository_collaborator.go index 049643e69e..48282730bb 100644 --- a/github/resource_github_repository_collaborator.go +++ b/github/resource_github_repository_collaborator.go @@ -7,7 +7,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_repository_collaborators.go b/github/resource_github_repository_collaborators.go index a2bbec5fe2..c2d484c45d 100644 --- a/github/resource_github_repository_collaborators.go +++ b/github/resource_github_repository_collaborators.go @@ -7,7 +7,7 @@ import ( "sort" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/customdiff" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_repository_collaborators_test.go b/github/resource_github_repository_collaborators_test.go index 9a0fec449d..c7e14cbfcd 100644 --- a/github/resource_github_repository_collaborators_test.go +++ b/github/resource_github_repository_collaborators_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/github/resource_github_repository_deploy_key.go b/github/resource_github_repository_deploy_key.go index 406af5ad14..66e5784b31 100644 --- a/github/resource_github_repository_deploy_key.go +++ b/github/resource_github_repository_deploy_key.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_repository_deployment_branch_policy.go b/github/resource_github_repository_deployment_branch_policy.go index 4c9f7fcaf6..b0c5787f32 100644 --- a/github/resource_github_repository_deployment_branch_policy.go +++ b/github/resource_github_repository_deployment_branch_policy.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_repository_environment.go b/github/resource_github_repository_environment.go index ba5c50b790..83a0f7d739 100644 --- a/github/resource_github_repository_environment.go +++ b/github/resource_github_repository_environment.go @@ -6,7 +6,7 @@ import ( "net/http" "net/url" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_repository_environment_deployment_policy.go b/github/resource_github_repository_environment_deployment_policy.go index 6b68349e69..1b3f97ad1b 100644 --- a/github/resource_github_repository_environment_deployment_policy.go +++ b/github/resource_github_repository_environment_deployment_policy.go @@ -7,7 +7,7 @@ import ( "net/url" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_repository_file.go b/github/resource_github_repository_file.go index b05d2943c9..d3820c8cad 100644 --- a/github/resource_github_repository_file.go +++ b/github/resource_github_repository_file.go @@ -8,7 +8,7 @@ import ( "fmt" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_repository_milestone.go b/github/resource_github_repository_milestone.go index 04c6e997a7..fd2fc19fc1 100644 --- a/github/resource_github_repository_milestone.go +++ b/github/resource_github_repository_milestone.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_repository_project.go b/github/resource_github_repository_project.go index 18263c7457..7fc7a17c8a 100644 --- a/github/resource_github_repository_project.go +++ b/github/resource_github_repository_project.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_repository_pull_request.go b/github/resource_github_repository_pull_request.go index 333d701117..c0ab9f6568 100644 --- a/github/resource_github_repository_pull_request.go +++ b/github/resource_github_repository_pull_request.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_repository_ruleset.go b/github/resource_github_repository_ruleset.go index 2f7768fb3f..3a4c1eb868 100644 --- a/github/resource_github_repository_ruleset.go +++ b/github/resource_github_repository_ruleset.go @@ -7,7 +7,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_repository_tag_protection.go b/github/resource_github_repository_tag_protection.go index c0300ce82d..5cf3c929e3 100644 --- a/github/resource_github_repository_tag_protection.go +++ b/github/resource_github_repository_tag_protection.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_repository_topics.go b/github/resource_github_repository_topics.go index ef35153576..d458bf6e8c 100644 --- a/github/resource_github_repository_topics.go +++ b/github/resource_github_repository_topics.go @@ -6,7 +6,7 @@ import ( "net/http" "regexp" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) diff --git a/github/resource_github_repository_webhook.go b/github/resource_github_repository_webhook.go index 45419b7db6..f2759a7cd4 100644 --- a/github/resource_github_repository_webhook.go +++ b/github/resource_github_repository_webhook.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_team.go b/github/resource_github_team.go index 1b6984d0a4..3315164465 100644 --- a/github/resource_github_team.go +++ b/github/resource_github_team.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/customdiff" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/shurcooL/githubv4" diff --git a/github/resource_github_team_members.go b/github/resource_github_team_members.go index a823cf468f..a1e55b20f7 100644 --- a/github/resource_github_team_members.go +++ b/github/resource_github_team_members.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/shurcooL/githubv4" ) diff --git a/github/resource_github_team_members_test.go b/github/resource_github_team_members_test.go index 20b2202243..d30d4b763b 100644 --- a/github/resource_github_team_members_test.go +++ b/github/resource_github_team_members_test.go @@ -6,7 +6,7 @@ import ( "strconv" "testing" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/github/resource_github_team_membership.go b/github/resource_github_team_membership.go index 0c9c26a93f..ea0c2ab7de 100644 --- a/github/resource_github_team_membership.go +++ b/github/resource_github_team_membership.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_team_membership_test.go b/github/resource_github_team_membership_test.go index 1f5b4b8d19..9d9c16e878 100644 --- a/github/resource_github_team_membership_test.go +++ b/github/resource_github_team_membership_test.go @@ -7,7 +7,7 @@ import ( "strconv" "testing" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/github/resource_github_team_repository.go b/github/resource_github_team_repository.go index 0e8fb96ad4..4765b78470 100644 --- a/github/resource_github_team_repository.go +++ b/github/resource_github_team_repository.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_team_sync_group_mapping.go b/github/resource_github_team_sync_group_mapping.go index ca4a1b15c2..335d31691c 100644 --- a/github/resource_github_team_sync_group_mapping.go +++ b/github/resource_github_team_sync_group_mapping.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_team_sync_group_mapping_test.go b/github/resource_github_team_sync_group_mapping_test.go index 0f7e16c7bb..1bf9b98694 100644 --- a/github/resource_github_team_sync_group_mapping_test.go +++ b/github/resource_github_team_sync_group_mapping_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" diff --git a/github/resource_github_user_gpg_key.go b/github/resource_github_user_gpg_key.go index 47f4a66968..0fe54497c5 100644 --- a/github/resource_github_user_gpg_key.go +++ b/github/resource_github_user_gpg_key.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_github_user_ssh_key.go b/github/resource_github_user_ssh_key.go index 8809a7cb9a..6fc21abfa5 100644 --- a/github/resource_github_user_ssh_key.go +++ b/github/resource_github_user_ssh_key.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/resource_organization_block.go b/github/resource_organization_block.go index dad22bf621..ba8c15a5d6 100644 --- a/github/resource_organization_block.go +++ b/github/resource_organization_block.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/respository_rules_utils.go b/github/respository_rules_utils.go index 07caa8bc39..12cc24778b 100644 --- a/github/respository_rules_utils.go +++ b/github/respository_rules_utils.go @@ -6,7 +6,7 @@ import ( "reflect" "sort" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/github/transport.go b/github/transport.go index fa171da656..eab3bbe45a 100644 --- a/github/transport.go +++ b/github/transport.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" ) const ( diff --git a/github/transport_test.go b/github/transport_test.go index e2752fcbc4..f2e127d36b 100644 --- a/github/transport_test.go +++ b/github/transport_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" ) func TestEtagTransport(t *testing.T) { diff --git a/github/util.go b/github/util.go index c229236e77..8ed689d5ec 100644 --- a/github/util.go +++ b/github/util.go @@ -12,7 +12,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v62/github" + "github.com/google/go-github/v63/github" "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/go.mod b/go.mod index a63ea98595..5d533ba612 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.22.0 require ( github.com/client9/misspell v0.3.4 github.com/golangci/golangci-lint v1.59.1 - github.com/google/go-github/v62 v62.0.0 + github.com/google/go-github/v63 v63.0.0 github.com/google/uuid v1.6.0 github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0 diff --git a/go.sum b/go.sum index e68358275f..400b548c8b 100644 --- a/go.sum +++ b/go.sum @@ -289,6 +289,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-github/v62 v62.0.0 h1:/6mGCaRywZz9MuHyw9gD1CwsbmBX8GWsbFkwMmHdhl4= github.com/google/go-github/v62 v62.0.0/go.mod h1:EMxeUqGJq2xRu9DYBMwel/mr7kZrzUOfQmmpYrZn2a4= +github.com/google/go-github/v63 v63.0.0 h1:13xwK/wk9alSokujB9lJkuzdmQuVn2QCPeck76wR3nE= +github.com/google/go-github/v63 v63.0.0/go.mod h1:IqbcrgUmIcEaioWrGYei/09o+ge5vhffGOcxrO0AfmA= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= diff --git a/vendor/github.com/google/go-github/v62/AUTHORS b/vendor/github.com/google/go-github/v63/AUTHORS similarity index 100% rename from vendor/github.com/google/go-github/v62/AUTHORS rename to vendor/github.com/google/go-github/v63/AUTHORS diff --git a/vendor/github.com/google/go-github/v62/LICENSE b/vendor/github.com/google/go-github/v63/LICENSE similarity index 100% rename from vendor/github.com/google/go-github/v62/LICENSE rename to vendor/github.com/google/go-github/v63/LICENSE diff --git a/vendor/github.com/google/go-github/v62/github/actions.go b/vendor/github.com/google/go-github/v63/github/actions.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions.go rename to vendor/github.com/google/go-github/v63/github/actions.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_artifacts.go b/vendor/github.com/google/go-github/v63/github/actions_artifacts.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_artifacts.go rename to vendor/github.com/google/go-github/v63/github/actions_artifacts.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_cache.go b/vendor/github.com/google/go-github/v63/github/actions_cache.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_cache.go rename to vendor/github.com/google/go-github/v63/github/actions_cache.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_oidc.go b/vendor/github.com/google/go-github/v63/github/actions_oidc.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_oidc.go rename to vendor/github.com/google/go-github/v63/github/actions_oidc.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_permissions_enterprise.go b/vendor/github.com/google/go-github/v63/github/actions_permissions_enterprise.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_permissions_enterprise.go rename to vendor/github.com/google/go-github/v63/github/actions_permissions_enterprise.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_permissions_orgs.go b/vendor/github.com/google/go-github/v63/github/actions_permissions_orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_permissions_orgs.go rename to vendor/github.com/google/go-github/v63/github/actions_permissions_orgs.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_required_workflows.go b/vendor/github.com/google/go-github/v63/github/actions_required_workflows.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_required_workflows.go rename to vendor/github.com/google/go-github/v63/github/actions_required_workflows.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_runner_groups.go b/vendor/github.com/google/go-github/v63/github/actions_runner_groups.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_runner_groups.go rename to vendor/github.com/google/go-github/v63/github/actions_runner_groups.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_runners.go b/vendor/github.com/google/go-github/v63/github/actions_runners.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_runners.go rename to vendor/github.com/google/go-github/v63/github/actions_runners.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_secrets.go b/vendor/github.com/google/go-github/v63/github/actions_secrets.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_secrets.go rename to vendor/github.com/google/go-github/v63/github/actions_secrets.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_variables.go b/vendor/github.com/google/go-github/v63/github/actions_variables.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_variables.go rename to vendor/github.com/google/go-github/v63/github/actions_variables.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_workflow_jobs.go b/vendor/github.com/google/go-github/v63/github/actions_workflow_jobs.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_workflow_jobs.go rename to vendor/github.com/google/go-github/v63/github/actions_workflow_jobs.go diff --git a/vendor/github.com/google/go-github/v62/github/actions_workflow_runs.go b/vendor/github.com/google/go-github/v63/github/actions_workflow_runs.go similarity index 99% rename from vendor/github.com/google/go-github/v62/github/actions_workflow_runs.go rename to vendor/github.com/google/go-github/v63/github/actions_workflow_runs.go index bc7afe9e94..d55c01dcd7 100644 --- a/vendor/github.com/google/go-github/v62/github/actions_workflow_runs.go +++ b/vendor/github.com/google/go-github/v63/github/actions_workflow_runs.go @@ -19,6 +19,7 @@ type WorkflowRun struct { NodeID *string `json:"node_id,omitempty"` HeadBranch *string `json:"head_branch,omitempty"` HeadSHA *string `json:"head_sha,omitempty"` + Path *string `json:"path,omitempty"` RunNumber *int `json:"run_number,omitempty"` RunAttempt *int `json:"run_attempt,omitempty"` Event *string `json:"event,omitempty"` diff --git a/vendor/github.com/google/go-github/v62/github/actions_workflows.go b/vendor/github.com/google/go-github/v63/github/actions_workflows.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/actions_workflows.go rename to vendor/github.com/google/go-github/v63/github/actions_workflows.go diff --git a/vendor/github.com/google/go-github/v62/github/activity.go b/vendor/github.com/google/go-github/v63/github/activity.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/activity.go rename to vendor/github.com/google/go-github/v63/github/activity.go diff --git a/vendor/github.com/google/go-github/v62/github/activity_events.go b/vendor/github.com/google/go-github/v63/github/activity_events.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/activity_events.go rename to vendor/github.com/google/go-github/v63/github/activity_events.go diff --git a/vendor/github.com/google/go-github/v62/github/activity_notifications.go b/vendor/github.com/google/go-github/v63/github/activity_notifications.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/activity_notifications.go rename to vendor/github.com/google/go-github/v63/github/activity_notifications.go diff --git a/vendor/github.com/google/go-github/v62/github/activity_star.go b/vendor/github.com/google/go-github/v63/github/activity_star.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/activity_star.go rename to vendor/github.com/google/go-github/v63/github/activity_star.go diff --git a/vendor/github.com/google/go-github/v62/github/activity_watching.go b/vendor/github.com/google/go-github/v63/github/activity_watching.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/activity_watching.go rename to vendor/github.com/google/go-github/v63/github/activity_watching.go diff --git a/vendor/github.com/google/go-github/v62/github/admin.go b/vendor/github.com/google/go-github/v63/github/admin.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/admin.go rename to vendor/github.com/google/go-github/v63/github/admin.go diff --git a/vendor/github.com/google/go-github/v62/github/admin_orgs.go b/vendor/github.com/google/go-github/v63/github/admin_orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/admin_orgs.go rename to vendor/github.com/google/go-github/v63/github/admin_orgs.go diff --git a/vendor/github.com/google/go-github/v62/github/admin_stats.go b/vendor/github.com/google/go-github/v63/github/admin_stats.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/admin_stats.go rename to vendor/github.com/google/go-github/v63/github/admin_stats.go diff --git a/vendor/github.com/google/go-github/v62/github/admin_users.go b/vendor/github.com/google/go-github/v63/github/admin_users.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/admin_users.go rename to vendor/github.com/google/go-github/v63/github/admin_users.go diff --git a/vendor/github.com/google/go-github/v62/github/apps.go b/vendor/github.com/google/go-github/v63/github/apps.go similarity index 99% rename from vendor/github.com/google/go-github/v62/github/apps.go rename to vendor/github.com/google/go-github/v63/github/apps.go index 6969daba6c..16ef758cbd 100644 --- a/vendor/github.com/google/go-github/v62/github/apps.go +++ b/vendor/github.com/google/go-github/v63/github/apps.go @@ -78,6 +78,7 @@ type InstallationTokenListRepoOptions struct { // https://docs.github.com/rest/apps#create-an-installation-access-token-for-an-app type InstallationPermissions struct { Actions *string `json:"actions,omitempty"` + ActionsVariables *string `json:"actions_variables,omitempty"` Administration *string `json:"administration,omitempty"` Blocking *string `json:"blocking,omitempty"` Checks *string `json:"checks,omitempty"` @@ -93,6 +94,7 @@ type InstallationPermissions struct { OrganizationAdministration *string `json:"organization_administration,omitempty"` OrganizationCustomProperties *string `json:"organization_custom_properties,omitempty"` OrganizationCustomRoles *string `json:"organization_custom_roles,omitempty"` + OrganizationCustomOrgRoles *string `json:"organization_custom_org_roles,omitempty"` OrganizationHooks *string `json:"organization_hooks,omitempty"` OrganizationPackages *string `json:"organization_packages,omitempty"` OrganizationPlan *string `json:"organization_plan,omitempty"` diff --git a/vendor/github.com/google/go-github/v62/github/apps_hooks.go b/vendor/github.com/google/go-github/v63/github/apps_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/apps_hooks.go rename to vendor/github.com/google/go-github/v63/github/apps_hooks.go diff --git a/vendor/github.com/google/go-github/v62/github/apps_hooks_deliveries.go b/vendor/github.com/google/go-github/v63/github/apps_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/apps_hooks_deliveries.go rename to vendor/github.com/google/go-github/v63/github/apps_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v62/github/apps_installation.go b/vendor/github.com/google/go-github/v63/github/apps_installation.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/apps_installation.go rename to vendor/github.com/google/go-github/v63/github/apps_installation.go diff --git a/vendor/github.com/google/go-github/v62/github/apps_manifest.go b/vendor/github.com/google/go-github/v63/github/apps_manifest.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/apps_manifest.go rename to vendor/github.com/google/go-github/v63/github/apps_manifest.go diff --git a/vendor/github.com/google/go-github/v62/github/apps_marketplace.go b/vendor/github.com/google/go-github/v63/github/apps_marketplace.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/apps_marketplace.go rename to vendor/github.com/google/go-github/v63/github/apps_marketplace.go diff --git a/vendor/github.com/google/go-github/v62/github/authorizations.go b/vendor/github.com/google/go-github/v63/github/authorizations.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/authorizations.go rename to vendor/github.com/google/go-github/v63/github/authorizations.go diff --git a/vendor/github.com/google/go-github/v62/github/billing.go b/vendor/github.com/google/go-github/v63/github/billing.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/billing.go rename to vendor/github.com/google/go-github/v63/github/billing.go diff --git a/vendor/github.com/google/go-github/v62/github/checks.go b/vendor/github.com/google/go-github/v63/github/checks.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/checks.go rename to vendor/github.com/google/go-github/v63/github/checks.go diff --git a/vendor/github.com/google/go-github/v62/github/code-scanning.go b/vendor/github.com/google/go-github/v63/github/code-scanning.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/code-scanning.go rename to vendor/github.com/google/go-github/v63/github/code-scanning.go diff --git a/vendor/github.com/google/go-github/v62/github/codesofconduct.go b/vendor/github.com/google/go-github/v63/github/codesofconduct.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/codesofconduct.go rename to vendor/github.com/google/go-github/v63/github/codesofconduct.go diff --git a/vendor/github.com/google/go-github/v62/github/codespaces.go b/vendor/github.com/google/go-github/v63/github/codespaces.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/codespaces.go rename to vendor/github.com/google/go-github/v63/github/codespaces.go diff --git a/vendor/github.com/google/go-github/v62/github/codespaces_secrets.go b/vendor/github.com/google/go-github/v63/github/codespaces_secrets.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/codespaces_secrets.go rename to vendor/github.com/google/go-github/v63/github/codespaces_secrets.go diff --git a/vendor/github.com/google/go-github/v62/github/copilot.go b/vendor/github.com/google/go-github/v63/github/copilot.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/copilot.go rename to vendor/github.com/google/go-github/v63/github/copilot.go diff --git a/vendor/github.com/google/go-github/v62/github/dependabot.go b/vendor/github.com/google/go-github/v63/github/dependabot.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/dependabot.go rename to vendor/github.com/google/go-github/v63/github/dependabot.go diff --git a/vendor/github.com/google/go-github/v62/github/dependabot_alerts.go b/vendor/github.com/google/go-github/v63/github/dependabot_alerts.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/dependabot_alerts.go rename to vendor/github.com/google/go-github/v63/github/dependabot_alerts.go diff --git a/vendor/github.com/google/go-github/v62/github/dependabot_secrets.go b/vendor/github.com/google/go-github/v63/github/dependabot_secrets.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/dependabot_secrets.go rename to vendor/github.com/google/go-github/v63/github/dependabot_secrets.go diff --git a/vendor/github.com/google/go-github/v62/github/dependency_graph.go b/vendor/github.com/google/go-github/v63/github/dependency_graph.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/dependency_graph.go rename to vendor/github.com/google/go-github/v63/github/dependency_graph.go diff --git a/vendor/github.com/google/go-github/v62/github/dependency_graph_snapshots.go b/vendor/github.com/google/go-github/v63/github/dependency_graph_snapshots.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/dependency_graph_snapshots.go rename to vendor/github.com/google/go-github/v63/github/dependency_graph_snapshots.go diff --git a/vendor/github.com/google/go-github/v62/github/doc.go b/vendor/github.com/google/go-github/v63/github/doc.go similarity index 99% rename from vendor/github.com/google/go-github/v62/github/doc.go rename to vendor/github.com/google/go-github/v63/github/doc.go index e0c810871f..1781a6a4af 100644 --- a/vendor/github.com/google/go-github/v62/github/doc.go +++ b/vendor/github.com/google/go-github/v63/github/doc.go @@ -8,7 +8,7 @@ Package github provides a client for using the GitHub API. Usage: - import "github.com/google/go-github/v62/github" // with go modules enabled (GO111MODULE=on or outside GOPATH) + import "github.com/google/go-github/v63/github" // with go modules enabled (GO111MODULE=on or outside GOPATH) import "github.com/google/go-github/github" // with go modules disabled Construct a new GitHub client, then use the various services on the client to diff --git a/vendor/github.com/google/go-github/v62/github/emojis.go b/vendor/github.com/google/go-github/v63/github/emojis.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/emojis.go rename to vendor/github.com/google/go-github/v63/github/emojis.go diff --git a/vendor/github.com/google/go-github/v62/github/enterprise.go b/vendor/github.com/google/go-github/v63/github/enterprise.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/enterprise.go rename to vendor/github.com/google/go-github/v63/github/enterprise.go diff --git a/vendor/github.com/google/go-github/v62/github/enterprise_actions_runner_groups.go b/vendor/github.com/google/go-github/v63/github/enterprise_actions_runner_groups.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/enterprise_actions_runner_groups.go rename to vendor/github.com/google/go-github/v63/github/enterprise_actions_runner_groups.go diff --git a/vendor/github.com/google/go-github/v62/github/enterprise_actions_runners.go b/vendor/github.com/google/go-github/v63/github/enterprise_actions_runners.go similarity index 83% rename from vendor/github.com/google/go-github/v62/github/enterprise_actions_runners.go rename to vendor/github.com/google/go-github/v63/github/enterprise_actions_runners.go index 4a6e6b52c1..fa345aea8a 100644 --- a/vendor/github.com/google/go-github/v62/github/enterprise_actions_runners.go +++ b/vendor/github.com/google/go-github/v63/github/enterprise_actions_runners.go @@ -80,7 +80,7 @@ func (s *EnterpriseService) CreateRegistrationToken(ctx context.Context, enterpr // GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#list-self-hosted-runners-for-an-enterprise // //meta:operation GET /enterprises/{enterprise}/actions/runners -func (s *EnterpriseService) ListRunners(ctx context.Context, enterprise string, opts *ListOptions) (*Runners, *Response, error) { +func (s *EnterpriseService) ListRunners(ctx context.Context, enterprise string, opts *ListRunnersOptions) (*Runners, *Response, error) { u := fmt.Sprintf("enterprises/%v/actions/runners", enterprise) u, err := addOptions(u, opts) if err != nil { @@ -101,6 +101,27 @@ func (s *EnterpriseService) ListRunners(ctx context.Context, enterprise string, return runners, resp, nil } +// GetRunner gets a specific self-hosted runner configured in an enterprise. +// +// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-an-enterprise +// +//meta:operation GET /enterprises/{enterprise}/actions/runners/{runner_id} +func (s *EnterpriseService) GetRunner(ctx context.Context, enterprise string, runnerID int64) (*Runner, *Response, error) { + u := fmt.Sprintf("enterprises/%v/actions/runners/%v", enterprise, runnerID) + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + runner := new(Runner) + resp, err := s.client.Do(ctx, req, runner) + if err != nil { + return nil, resp, err + } + + return runner, resp, nil +} + // RemoveRunner forces the removal of a self-hosted runner from an enterprise using the runner id. // // GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-enterprise diff --git a/vendor/github.com/google/go-github/v62/github/enterprise_audit_log.go b/vendor/github.com/google/go-github/v63/github/enterprise_audit_log.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/enterprise_audit_log.go rename to vendor/github.com/google/go-github/v63/github/enterprise_audit_log.go diff --git a/vendor/github.com/google/go-github/v62/github/enterprise_code_security_and_analysis.go b/vendor/github.com/google/go-github/v63/github/enterprise_code_security_and_analysis.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/enterprise_code_security_and_analysis.go rename to vendor/github.com/google/go-github/v63/github/enterprise_code_security_and_analysis.go diff --git a/vendor/github.com/google/go-github/v62/github/event.go b/vendor/github.com/google/go-github/v63/github/event.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/event.go rename to vendor/github.com/google/go-github/v63/github/event.go diff --git a/vendor/github.com/google/go-github/v62/github/event_types.go b/vendor/github.com/google/go-github/v63/github/event_types.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/event_types.go rename to vendor/github.com/google/go-github/v63/github/event_types.go diff --git a/vendor/github.com/google/go-github/v62/github/gists.go b/vendor/github.com/google/go-github/v63/github/gists.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/gists.go rename to vendor/github.com/google/go-github/v63/github/gists.go diff --git a/vendor/github.com/google/go-github/v62/github/gists_comments.go b/vendor/github.com/google/go-github/v63/github/gists_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/gists_comments.go rename to vendor/github.com/google/go-github/v63/github/gists_comments.go diff --git a/vendor/github.com/google/go-github/v62/github/git.go b/vendor/github.com/google/go-github/v63/github/git.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/git.go rename to vendor/github.com/google/go-github/v63/github/git.go diff --git a/vendor/github.com/google/go-github/v62/github/git_blobs.go b/vendor/github.com/google/go-github/v63/github/git_blobs.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/git_blobs.go rename to vendor/github.com/google/go-github/v63/github/git_blobs.go diff --git a/vendor/github.com/google/go-github/v62/github/git_commits.go b/vendor/github.com/google/go-github/v63/github/git_commits.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/git_commits.go rename to vendor/github.com/google/go-github/v63/github/git_commits.go diff --git a/vendor/github.com/google/go-github/v62/github/git_refs.go b/vendor/github.com/google/go-github/v63/github/git_refs.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/git_refs.go rename to vendor/github.com/google/go-github/v63/github/git_refs.go diff --git a/vendor/github.com/google/go-github/v62/github/git_tags.go b/vendor/github.com/google/go-github/v63/github/git_tags.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/git_tags.go rename to vendor/github.com/google/go-github/v63/github/git_tags.go diff --git a/vendor/github.com/google/go-github/v62/github/git_trees.go b/vendor/github.com/google/go-github/v63/github/git_trees.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/git_trees.go rename to vendor/github.com/google/go-github/v63/github/git_trees.go diff --git a/vendor/github.com/google/go-github/v62/github/github-accessors.go b/vendor/github.com/google/go-github/v63/github/github-accessors.go similarity index 99% rename from vendor/github.com/google/go-github/v62/github/github-accessors.go rename to vendor/github.com/google/go-github/v63/github/github-accessors.go index fd2fe22591..5118791cdd 100644 --- a/vendor/github.com/google/go-github/v62/github/github-accessors.go +++ b/vendor/github.com/google/go-github/v63/github/github-accessors.go @@ -4351,7 +4351,7 @@ func (c *CreateOrgInvitationOptions) GetRole() string { } // GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. -func (c *CreateOrUpdateCustomRoleOptions) GetBaseRole() string { +func (c *CreateOrUpdateCustomRepoRoleOptions) GetBaseRole() string { if c == nil || c.BaseRole == nil { return "" } @@ -4359,7 +4359,7 @@ func (c *CreateOrUpdateCustomRoleOptions) GetBaseRole() string { } // GetDescription returns the Description field if it's non-nil, zero value otherwise. -func (c *CreateOrUpdateCustomRoleOptions) GetDescription() string { +func (c *CreateOrUpdateCustomRepoRoleOptions) GetDescription() string { if c == nil || c.Description == nil { return "" } @@ -4367,7 +4367,23 @@ func (c *CreateOrUpdateCustomRoleOptions) GetDescription() string { } // GetName returns the Name field if it's non-nil, zero value otherwise. -func (c *CreateOrUpdateCustomRoleOptions) GetName() string { +func (c *CreateOrUpdateCustomRepoRoleOptions) GetName() string { + if c == nil || c.Name == nil { + return "" + } + return *c.Name +} + +// GetDescription returns the Description field if it's non-nil, zero value otherwise. +func (c *CreateOrUpdateOrgRoleOptions) GetDescription() string { + if c == nil || c.Description == nil { + return "" + } + return *c.Description +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (c *CreateOrUpdateOrgRoleOptions) GetName() string { if c == nil || c.Name == nil { return "" } @@ -4686,6 +4702,30 @@ func (c *CustomDeploymentProtectionRuleRequest) GetIntegrationID() int64 { return *c.IntegrationID } +// GetDescription returns the Description field if it's non-nil, zero value otherwise. +func (c *CustomOrgRoles) GetDescription() string { + if c == nil || c.Description == nil { + return "" + } + return *c.Description +} + +// GetID returns the ID field if it's non-nil, zero value otherwise. +func (c *CustomOrgRoles) GetID() int64 { + if c == nil || c.ID == nil { + return 0 + } + return *c.ID +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (c *CustomOrgRoles) GetName() string { + if c == nil || c.Name == nil { + return "" + } + return *c.Name +} + // GetDefaultValue returns the DefaultValue field if it's non-nil, zero value otherwise. func (c *CustomProperty) GetDefaultValue() string { if c == nil || c.DefaultValue == nil { @@ -4718,6 +4758,14 @@ func (c *CustomProperty) GetRequired() bool { return *c.Required } +// GetValuesEditableBy returns the ValuesEditableBy field if it's non-nil, zero value otherwise. +func (c *CustomProperty) GetValuesEditableBy() string { + if c == nil || c.ValuesEditableBy == nil { + return "" + } + return *c.ValuesEditableBy +} + // GetValue returns the Value field if it's non-nil, zero value otherwise. func (c *CustomPropertyValue) GetValue() string { if c == nil || c.Value == nil { @@ -6502,6 +6550,22 @@ func (d *DraftReviewComment) GetBody() string { return *d.Body } +// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. +func (d *DraftReviewComment) GetCommitID() string { + if d == nil || d.CommitID == nil { + return "" + } + return *d.CommitID +} + +// GetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise. +func (d *DraftReviewComment) GetInReplyTo() int64 { + if d == nil || d.InReplyTo == nil { + return 0 + } + return *d.InReplyTo +} + // GetLine returns the Line field if it's non-nil, zero value otherwise. func (d *DraftReviewComment) GetLine() int { if d == nil || d.Line == nil { @@ -6550,6 +6614,14 @@ func (d *DraftReviewComment) GetStartSide() string { return *d.StartSide } +// GetSubjectType returns the SubjectType field if it's non-nil, zero value otherwise. +func (d *DraftReviewComment) GetSubjectType() string { + if d == nil || d.SubjectType == nil { + return "" + } + return *d.SubjectType +} + // GetRef returns the Ref field. func (e *EditBase) GetRef() *EditRef { if e == nil { @@ -8750,6 +8822,14 @@ func (i *InstallationPermissions) GetActions() string { return *i.Actions } +// GetActionsVariables returns the ActionsVariables field if it's non-nil, zero value otherwise. +func (i *InstallationPermissions) GetActionsVariables() string { + if i == nil || i.ActionsVariables == nil { + return "" + } + return *i.ActionsVariables +} + // GetAdministration returns the Administration field if it's non-nil, zero value otherwise. func (i *InstallationPermissions) GetAdministration() string { if i == nil || i.Administration == nil { @@ -8854,6 +8934,14 @@ func (i *InstallationPermissions) GetOrganizationAdministration() string { return *i.OrganizationAdministration } +// GetOrganizationCustomOrgRoles returns the OrganizationCustomOrgRoles field if it's non-nil, zero value otherwise. +func (i *InstallationPermissions) GetOrganizationCustomOrgRoles() string { + if i == nil || i.OrganizationCustomOrgRoles == nil { + return "" + } + return *i.OrganizationCustomOrgRoles +} + // GetOrganizationCustomProperties returns the OrganizationCustomProperties field if it's non-nil, zero value otherwise. func (i *InstallationPermissions) GetOrganizationCustomProperties() string { if i == nil || i.OrganizationCustomProperties == nil { @@ -12838,6 +12926,14 @@ func (o *OrganizationCustomRepoRoles) GetTotalCount() int { return *o.TotalCount } +// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. +func (o *OrganizationCustomRoles) GetTotalCount() int { + if o == nil || o.TotalCount == nil { + return 0 + } + return *o.TotalCount +} + // GetAction returns the Action field if it's non-nil, zero value otherwise. func (o *OrganizationEvent) GetAction() string { if o == nil || o.Action == nil { @@ -19998,6 +20094,14 @@ func (r *RepositoryPermissionLevel) GetPermission() string { return *r.Permission } +// GetRoleName returns the RoleName field if it's non-nil, zero value otherwise. +func (r *RepositoryPermissionLevel) GetRoleName() string { + if r == nil || r.RoleName == nil { + return "" + } + return *r.RoleName +} + // GetUser returns the User field. func (r *RepositoryPermissionLevel) GetUser() *User { if r == nil { @@ -20774,6 +20878,14 @@ func (r *RulesetConditions) GetRepositoryName() *RulesetRepositoryNamesCondition return r.RepositoryName } +// GetRepositoryProperty returns the RepositoryProperty field. +func (r *RulesetConditions) GetRepositoryProperty() *RulesetRepositoryPropertyConditionParameters { + if r == nil { + return nil + } + return r.RepositoryProperty +} + // GetHRef returns the HRef field if it's non-nil, zero value otherwise. func (r *RulesetLink) GetHRef() string { if r == nil || r.HRef == nil { @@ -25246,6 +25358,14 @@ func (w *WorkflowRun) GetNodeID() string { return *w.NodeID } +// GetPath returns the Path field if it's non-nil, zero value otherwise. +func (w *WorkflowRun) GetPath() string { + if w == nil || w.Path == nil { + return "" + } + return *w.Path +} + // GetPreviousAttemptURL returns the PreviousAttemptURL field if it's non-nil, zero value otherwise. func (w *WorkflowRun) GetPreviousAttemptURL() string { if w == nil || w.PreviousAttemptURL == nil { diff --git a/vendor/github.com/google/go-github/v62/github/github.go b/vendor/github.com/google/go-github/v63/github/github.go similarity index 99% rename from vendor/github.com/google/go-github/v62/github/github.go rename to vendor/github.com/google/go-github/v63/github/github.go index 28a3c10bb2..cd0c013339 100644 --- a/vendor/github.com/google/go-github/v62/github/github.go +++ b/vendor/github.com/google/go-github/v63/github/github.go @@ -28,7 +28,7 @@ import ( ) const ( - Version = "v62.0.0" + Version = "v63.0.0" defaultAPIVersion = "2022-11-28" defaultBaseURL = "https://api.github.com/" diff --git a/vendor/github.com/google/go-github/v62/github/gitignore.go b/vendor/github.com/google/go-github/v63/github/gitignore.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/gitignore.go rename to vendor/github.com/google/go-github/v63/github/gitignore.go diff --git a/vendor/github.com/google/go-github/v62/github/interactions.go b/vendor/github.com/google/go-github/v63/github/interactions.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/interactions.go rename to vendor/github.com/google/go-github/v63/github/interactions.go diff --git a/vendor/github.com/google/go-github/v62/github/interactions_orgs.go b/vendor/github.com/google/go-github/v63/github/interactions_orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/interactions_orgs.go rename to vendor/github.com/google/go-github/v63/github/interactions_orgs.go diff --git a/vendor/github.com/google/go-github/v62/github/interactions_repos.go b/vendor/github.com/google/go-github/v63/github/interactions_repos.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/interactions_repos.go rename to vendor/github.com/google/go-github/v63/github/interactions_repos.go diff --git a/vendor/github.com/google/go-github/v62/github/issue_import.go b/vendor/github.com/google/go-github/v63/github/issue_import.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/issue_import.go rename to vendor/github.com/google/go-github/v63/github/issue_import.go diff --git a/vendor/github.com/google/go-github/v62/github/issues.go b/vendor/github.com/google/go-github/v63/github/issues.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/issues.go rename to vendor/github.com/google/go-github/v63/github/issues.go diff --git a/vendor/github.com/google/go-github/v62/github/issues_assignees.go b/vendor/github.com/google/go-github/v63/github/issues_assignees.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/issues_assignees.go rename to vendor/github.com/google/go-github/v63/github/issues_assignees.go diff --git a/vendor/github.com/google/go-github/v62/github/issues_comments.go b/vendor/github.com/google/go-github/v63/github/issues_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/issues_comments.go rename to vendor/github.com/google/go-github/v63/github/issues_comments.go diff --git a/vendor/github.com/google/go-github/v62/github/issues_events.go b/vendor/github.com/google/go-github/v63/github/issues_events.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/issues_events.go rename to vendor/github.com/google/go-github/v63/github/issues_events.go diff --git a/vendor/github.com/google/go-github/v62/github/issues_labels.go b/vendor/github.com/google/go-github/v63/github/issues_labels.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/issues_labels.go rename to vendor/github.com/google/go-github/v63/github/issues_labels.go diff --git a/vendor/github.com/google/go-github/v62/github/issues_milestones.go b/vendor/github.com/google/go-github/v63/github/issues_milestones.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/issues_milestones.go rename to vendor/github.com/google/go-github/v63/github/issues_milestones.go diff --git a/vendor/github.com/google/go-github/v62/github/issues_timeline.go b/vendor/github.com/google/go-github/v63/github/issues_timeline.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/issues_timeline.go rename to vendor/github.com/google/go-github/v63/github/issues_timeline.go diff --git a/vendor/github.com/google/go-github/v62/github/licenses.go b/vendor/github.com/google/go-github/v63/github/licenses.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/licenses.go rename to vendor/github.com/google/go-github/v63/github/licenses.go diff --git a/vendor/github.com/google/go-github/v62/github/markdown.go b/vendor/github.com/google/go-github/v63/github/markdown.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/markdown.go rename to vendor/github.com/google/go-github/v63/github/markdown.go diff --git a/vendor/github.com/google/go-github/v62/github/messages.go b/vendor/github.com/google/go-github/v63/github/messages.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/messages.go rename to vendor/github.com/google/go-github/v63/github/messages.go diff --git a/vendor/github.com/google/go-github/v62/github/meta.go b/vendor/github.com/google/go-github/v63/github/meta.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/meta.go rename to vendor/github.com/google/go-github/v63/github/meta.go diff --git a/vendor/github.com/google/go-github/v62/github/migrations.go b/vendor/github.com/google/go-github/v63/github/migrations.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/migrations.go rename to vendor/github.com/google/go-github/v63/github/migrations.go diff --git a/vendor/github.com/google/go-github/v62/github/migrations_source_import.go b/vendor/github.com/google/go-github/v63/github/migrations_source_import.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/migrations_source_import.go rename to vendor/github.com/google/go-github/v63/github/migrations_source_import.go diff --git a/vendor/github.com/google/go-github/v62/github/migrations_user.go b/vendor/github.com/google/go-github/v63/github/migrations_user.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/migrations_user.go rename to vendor/github.com/google/go-github/v63/github/migrations_user.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs.go b/vendor/github.com/google/go-github/v63/github/orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs.go rename to vendor/github.com/google/go-github/v63/github/orgs.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_actions_allowed.go b/vendor/github.com/google/go-github/v63/github/orgs_actions_allowed.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_actions_allowed.go rename to vendor/github.com/google/go-github/v63/github/orgs_actions_allowed.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_actions_permissions.go b/vendor/github.com/google/go-github/v63/github/orgs_actions_permissions.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_actions_permissions.go rename to vendor/github.com/google/go-github/v63/github/orgs_actions_permissions.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_audit_log.go b/vendor/github.com/google/go-github/v63/github/orgs_audit_log.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_audit_log.go rename to vendor/github.com/google/go-github/v63/github/orgs_audit_log.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_credential_authorizations.go b/vendor/github.com/google/go-github/v63/github/orgs_credential_authorizations.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_credential_authorizations.go rename to vendor/github.com/google/go-github/v63/github/orgs_credential_authorizations.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_custom_roles.go b/vendor/github.com/google/go-github/v63/github/orgs_custom_roles.go similarity index 58% rename from vendor/github.com/google/go-github/v62/github/orgs_custom_roles.go rename to vendor/github.com/google/go-github/v63/github/orgs_custom_roles.go index e1deeb73ed..f71cb7aee0 100644 --- a/vendor/github.com/google/go-github/v62/github/orgs_custom_roles.go +++ b/vendor/github.com/google/go-github/v63/github/orgs_custom_roles.go @@ -10,6 +10,20 @@ import ( "fmt" ) +// OrganizationCustomRoles represents custom organization roles available in specified organization. +type OrganizationCustomRoles struct { + TotalCount *int `json:"total_count,omitempty"` + CustomRepoRoles []*CustomOrgRoles `json:"roles,omitempty"` +} + +// CustomOrgRoles represents custom organization role available in specified organization. +type CustomOrgRoles struct { + ID *int64 `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Permissions []string `json:"permissions,omitempty"` +} + // OrganizationCustomRepoRoles represents custom repository roles available in specified organization. type OrganizationCustomRepoRoles struct { TotalCount *int `json:"total_count,omitempty"` @@ -27,6 +41,113 @@ type CustomRepoRoles struct { Permissions []string `json:"permissions,omitempty"` } +// CreateOrUpdateOrgRoleOptions represents options required to create or update a custom organization role. +type CreateOrUpdateOrgRoleOptions struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Permissions []string `json:"permissions,omitempty"` +} + +// CreateOrUpdateCustomRepoRoleOptions represents options required to create or update a custom repository role. +type CreateOrUpdateCustomRepoRoleOptions struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + BaseRole *string `json:"base_role,omitempty"` + Permissions []string `json:"permissions,omitempty"` +} + +// ListRoles lists the custom roles available in this organization. +// In order to see custom roles in an organization, the authenticated user must be an organization owner. +// +// GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#get-all-organization-roles-for-an-organization +// +//meta:operation GET /orgs/{org}/organization-roles +func (s *OrganizationsService) ListRoles(ctx context.Context, org string) (*OrganizationCustomRoles, *Response, error) { + u := fmt.Sprintf("orgs/%v/organization-roles", org) + + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + customRepoRoles := new(OrganizationCustomRoles) + resp, err := s.client.Do(ctx, req, customRepoRoles) + if err != nil { + return nil, resp, err + } + + return customRepoRoles, resp, nil +} + +// CreateCustomOrgRole creates a custom role in this organization. +// In order to create custom roles in an organization, the authenticated user must be an organization owner. +// +// GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#create-a-custom-organization-role +// +//meta:operation POST /orgs/{org}/organization-roles +func (s *OrganizationsService) CreateCustomOrgRole(ctx context.Context, org string, opts *CreateOrUpdateOrgRoleOptions) (*CustomOrgRoles, *Response, error) { + u := fmt.Sprintf("orgs/%v/organization-roles", org) + + req, err := s.client.NewRequest("POST", u, opts) + if err != nil { + return nil, nil, err + } + + resultingRole := new(CustomOrgRoles) + resp, err := s.client.Do(ctx, req, resultingRole) + if err != nil { + return nil, resp, err + } + + return resultingRole, resp, err +} + +// UpdateCustomOrgRole updates a custom role in this organization. +// In order to update custom roles in an organization, the authenticated user must be an organization owner. +// +// GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#update-a-custom-organization-role +// +//meta:operation PATCH /orgs/{org}/organization-roles/{role_id} +func (s *OrganizationsService) UpdateCustomOrgRole(ctx context.Context, org string, roleID int64, opts *CreateOrUpdateOrgRoleOptions) (*CustomOrgRoles, *Response, error) { + u := fmt.Sprintf("orgs/%v/organization-roles/%v", org, roleID) + + req, err := s.client.NewRequest("PATCH", u, opts) + if err != nil { + return nil, nil, err + } + + resultingRole := new(CustomOrgRoles) + resp, err := s.client.Do(ctx, req, resultingRole) + if err != nil { + return nil, resp, err + } + + return resultingRole, resp, err +} + +// DeleteCustomOrgRole deletes an existing custom role in this organization. +// In order to delete custom roles in an organization, the authenticated user must be an organization owner. +// +// GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#delete-a-custom-organization-role +// +//meta:operation DELETE /orgs/{org}/organization-roles/{role_id} +func (s *OrganizationsService) DeleteCustomOrgRole(ctx context.Context, org string, roleID int64) (*Response, error) { + u := fmt.Sprintf("orgs/%v/organization-roles/%v", org, roleID) + + req, err := s.client.NewRequest("DELETE", u, nil) + if err != nil { + return nil, err + } + + resultingRole := new(CustomOrgRoles) + resp, err := s.client.Do(ctx, req, resultingRole) + if err != nil { + return resp, err + } + + return resp, nil +} + // ListCustomRepoRoles lists the custom repository roles available in this organization. // In order to see custom repository roles in an organization, the authenticated user must be an organization owner. // @@ -50,21 +171,13 @@ func (s *OrganizationsService) ListCustomRepoRoles(ctx context.Context, org stri return customRepoRoles, resp, nil } -// CreateOrUpdateCustomRoleOptions represents options required to create or update a custom repository role. -type CreateOrUpdateCustomRoleOptions struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - BaseRole *string `json:"base_role,omitempty"` - Permissions []string `json:"permissions,omitempty"` -} - // CreateCustomRepoRole creates a custom repository role in this organization. // In order to create custom repository roles in an organization, the authenticated user must be an organization owner. // // GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#create-a-custom-repository-role // //meta:operation POST /orgs/{org}/custom-repository-roles -func (s *OrganizationsService) CreateCustomRepoRole(ctx context.Context, org string, opts *CreateOrUpdateCustomRoleOptions) (*CustomRepoRoles, *Response, error) { +func (s *OrganizationsService) CreateCustomRepoRole(ctx context.Context, org string, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error) { u := fmt.Sprintf("orgs/%v/custom-repository-roles", org) req, err := s.client.NewRequest("POST", u, opts) @@ -87,7 +200,7 @@ func (s *OrganizationsService) CreateCustomRepoRole(ctx context.Context, org str // GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#update-a-custom-repository-role // //meta:operation PATCH /orgs/{org}/custom-repository-roles/{role_id} -func (s *OrganizationsService) UpdateCustomRepoRole(ctx context.Context, org, roleID string, opts *CreateOrUpdateCustomRoleOptions) (*CustomRepoRoles, *Response, error) { +func (s *OrganizationsService) UpdateCustomRepoRole(ctx context.Context, org string, roleID int64, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error) { u := fmt.Sprintf("orgs/%v/custom-repository-roles/%v", org, roleID) req, err := s.client.NewRequest("PATCH", u, opts) @@ -110,7 +223,7 @@ func (s *OrganizationsService) UpdateCustomRepoRole(ctx context.Context, org, ro // GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#delete-a-custom-repository-role // //meta:operation DELETE /orgs/{org}/custom-repository-roles/{role_id} -func (s *OrganizationsService) DeleteCustomRepoRole(ctx context.Context, org, roleID string) (*Response, error) { +func (s *OrganizationsService) DeleteCustomRepoRole(ctx context.Context, org string, roleID int64) (*Response, error) { u := fmt.Sprintf("orgs/%v/custom-repository-roles/%v", org, roleID) req, err := s.client.NewRequest("DELETE", u, nil) diff --git a/vendor/github.com/google/go-github/v62/github/orgs_hooks.go b/vendor/github.com/google/go-github/v63/github/orgs_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_hooks.go rename to vendor/github.com/google/go-github/v63/github/orgs_hooks.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_hooks_configuration.go b/vendor/github.com/google/go-github/v63/github/orgs_hooks_configuration.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_hooks_configuration.go rename to vendor/github.com/google/go-github/v63/github/orgs_hooks_configuration.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_hooks_deliveries.go b/vendor/github.com/google/go-github/v63/github/orgs_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_hooks_deliveries.go rename to vendor/github.com/google/go-github/v63/github/orgs_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_members.go b/vendor/github.com/google/go-github/v63/github/orgs_members.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_members.go rename to vendor/github.com/google/go-github/v63/github/orgs_members.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_outside_collaborators.go b/vendor/github.com/google/go-github/v63/github/orgs_outside_collaborators.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_outside_collaborators.go rename to vendor/github.com/google/go-github/v63/github/orgs_outside_collaborators.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_packages.go b/vendor/github.com/google/go-github/v63/github/orgs_packages.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_packages.go rename to vendor/github.com/google/go-github/v63/github/orgs_packages.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_personal_access_tokens.go b/vendor/github.com/google/go-github/v63/github/orgs_personal_access_tokens.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_personal_access_tokens.go rename to vendor/github.com/google/go-github/v63/github/orgs_personal_access_tokens.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_projects.go b/vendor/github.com/google/go-github/v63/github/orgs_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_projects.go rename to vendor/github.com/google/go-github/v63/github/orgs_projects.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_properties.go b/vendor/github.com/google/go-github/v63/github/orgs_properties.go similarity index 91% rename from vendor/github.com/google/go-github/v62/github/orgs_properties.go rename to vendor/github.com/google/go-github/v63/github/orgs_properties.go index 2e88b7f4f9..124b89cb5d 100644 --- a/vendor/github.com/google/go-github/v62/github/orgs_properties.go +++ b/vendor/github.com/google/go-github/v63/github/orgs_properties.go @@ -15,12 +15,19 @@ type CustomProperty struct { // PropertyName is required for most endpoints except when calling CreateOrUpdateCustomProperty; // where this is sent in the path and thus can be omitted. PropertyName *string `json:"property_name,omitempty"` - // Possible values for ValueType are: string, single_select - ValueType string `json:"value_type"` - Required *bool `json:"required,omitempty"` - DefaultValue *string `json:"default_value,omitempty"` - Description *string `json:"description,omitempty"` + // The type of the value for the property. Can be one of: string, single_select. + ValueType string `json:"value_type"` + // Whether the property is required. + Required *bool `json:"required,omitempty"` + // Default value of the property. + DefaultValue *string `json:"default_value,omitempty"` + // Short description of the property. + Description *string `json:"description,omitempty"` + // An ordered list of the allowed values of the property. The property can have up to 200 + // allowed values. AllowedValues []string `json:"allowed_values,omitempty"` + // Who can edit the values of the property. Can be one of: org_actors, org_and_repo_actors, nil (null). + ValuesEditableBy *string `json:"values_editable_by,omitempty"` } // RepoCustomPropertyValue represents a repository custom property value. diff --git a/vendor/github.com/google/go-github/v62/github/orgs_rules.go b/vendor/github.com/google/go-github/v63/github/orgs_rules.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_rules.go rename to vendor/github.com/google/go-github/v63/github/orgs_rules.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_security_managers.go b/vendor/github.com/google/go-github/v63/github/orgs_security_managers.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_security_managers.go rename to vendor/github.com/google/go-github/v63/github/orgs_security_managers.go diff --git a/vendor/github.com/google/go-github/v62/github/orgs_users_blocking.go b/vendor/github.com/google/go-github/v63/github/orgs_users_blocking.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/orgs_users_blocking.go rename to vendor/github.com/google/go-github/v63/github/orgs_users_blocking.go diff --git a/vendor/github.com/google/go-github/v62/github/packages.go b/vendor/github.com/google/go-github/v63/github/packages.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/packages.go rename to vendor/github.com/google/go-github/v63/github/packages.go diff --git a/vendor/github.com/google/go-github/v62/github/projects.go b/vendor/github.com/google/go-github/v63/github/projects.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/projects.go rename to vendor/github.com/google/go-github/v63/github/projects.go diff --git a/vendor/github.com/google/go-github/v62/github/pulls.go b/vendor/github.com/google/go-github/v63/github/pulls.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/pulls.go rename to vendor/github.com/google/go-github/v63/github/pulls.go diff --git a/vendor/github.com/google/go-github/v62/github/pulls_comments.go b/vendor/github.com/google/go-github/v63/github/pulls_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/pulls_comments.go rename to vendor/github.com/google/go-github/v63/github/pulls_comments.go diff --git a/vendor/github.com/google/go-github/v62/github/pulls_reviewers.go b/vendor/github.com/google/go-github/v63/github/pulls_reviewers.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/pulls_reviewers.go rename to vendor/github.com/google/go-github/v63/github/pulls_reviewers.go diff --git a/vendor/github.com/google/go-github/v62/github/pulls_reviews.go b/vendor/github.com/google/go-github/v63/github/pulls_reviews.go similarity index 97% rename from vendor/github.com/google/go-github/v62/github/pulls_reviews.go rename to vendor/github.com/google/go-github/v63/github/pulls_reviews.go index 27b8dc37d5..28450c3d43 100644 --- a/vendor/github.com/google/go-github/v62/github/pulls_reviews.go +++ b/vendor/github.com/google/go-github/v63/github/pulls_reviews.go @@ -35,9 +35,12 @@ func (p PullRequestReview) String() string { // DraftReviewComment represents a comment part of the review. type DraftReviewComment struct { - Path *string `json:"path,omitempty"` - Position *int `json:"position,omitempty"` - Body *string `json:"body,omitempty"` + Path *string `json:"path,omitempty"` + Position *int `json:"position,omitempty"` + Body *string `json:"body,omitempty"` + CommitID *string `json:"commit_id,omitempty"` + InReplyTo *int64 `json:"in_reply_to,omitempty"` + SubjectType *string `json:"subject_type,omitempty"` // The new comfort-fade-preview fields StartSide *string `json:"start_side,omitempty"` diff --git a/vendor/github.com/google/go-github/v62/github/pulls_threads.go b/vendor/github.com/google/go-github/v63/github/pulls_threads.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/pulls_threads.go rename to vendor/github.com/google/go-github/v63/github/pulls_threads.go diff --git a/vendor/github.com/google/go-github/v62/github/rate_limit.go b/vendor/github.com/google/go-github/v63/github/rate_limit.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/rate_limit.go rename to vendor/github.com/google/go-github/v63/github/rate_limit.go diff --git a/vendor/github.com/google/go-github/v62/github/reactions.go b/vendor/github.com/google/go-github/v63/github/reactions.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/reactions.go rename to vendor/github.com/google/go-github/v63/github/reactions.go diff --git a/vendor/github.com/google/go-github/v62/github/repos.go b/vendor/github.com/google/go-github/v63/github/repos.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos.go rename to vendor/github.com/google/go-github/v63/github/repos.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_actions_access.go b/vendor/github.com/google/go-github/v63/github/repos_actions_access.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_actions_access.go rename to vendor/github.com/google/go-github/v63/github/repos_actions_access.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_actions_allowed.go b/vendor/github.com/google/go-github/v63/github/repos_actions_allowed.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_actions_allowed.go rename to vendor/github.com/google/go-github/v63/github/repos_actions_allowed.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_actions_permissions.go b/vendor/github.com/google/go-github/v63/github/repos_actions_permissions.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_actions_permissions.go rename to vendor/github.com/google/go-github/v63/github/repos_actions_permissions.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_autolinks.go b/vendor/github.com/google/go-github/v63/github/repos_autolinks.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_autolinks.go rename to vendor/github.com/google/go-github/v63/github/repos_autolinks.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_codeowners.go b/vendor/github.com/google/go-github/v63/github/repos_codeowners.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_codeowners.go rename to vendor/github.com/google/go-github/v63/github/repos_codeowners.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_collaborators.go b/vendor/github.com/google/go-github/v63/github/repos_collaborators.go similarity index 99% rename from vendor/github.com/google/go-github/v62/github/repos_collaborators.go rename to vendor/github.com/google/go-github/v63/github/repos_collaborators.go index 15a4e77a2f..d6c985359a 100644 --- a/vendor/github.com/google/go-github/v62/github/repos_collaborators.go +++ b/vendor/github.com/google/go-github/v63/github/repos_collaborators.go @@ -99,6 +99,8 @@ type RepositoryPermissionLevel struct { Permission *string `json:"permission,omitempty"` User *User `json:"user,omitempty"` + + RoleName *string `json:"role_name,omitempty"` } // GetPermissionLevel retrieves the specific permission level a collaborator has for a given repository. diff --git a/vendor/github.com/google/go-github/v62/github/repos_comments.go b/vendor/github.com/google/go-github/v63/github/repos_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_comments.go rename to vendor/github.com/google/go-github/v63/github/repos_comments.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_commits.go b/vendor/github.com/google/go-github/v63/github/repos_commits.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_commits.go rename to vendor/github.com/google/go-github/v63/github/repos_commits.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_community_health.go b/vendor/github.com/google/go-github/v63/github/repos_community_health.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_community_health.go rename to vendor/github.com/google/go-github/v63/github/repos_community_health.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_contents.go b/vendor/github.com/google/go-github/v63/github/repos_contents.go similarity index 96% rename from vendor/github.com/google/go-github/v62/github/repos_contents.go rename to vendor/github.com/google/go-github/v63/github/repos_contents.go index 9539a5c429..97539aeeb5 100644 --- a/vendor/github.com/google/go-github/v62/github/repos_contents.go +++ b/vendor/github.com/google/go-github/v63/github/repos_contents.go @@ -150,7 +150,11 @@ func (s *RepositoriesService) DownloadContents(ctx context.Context, owner, repo, return nil, resp, fmt.Errorf("no download link found for %s", filepath) } - dlResp, err := s.client.client.Get(*contents.DownloadURL) + dlReq, err := http.NewRequestWithContext(ctx, http.MethodGet, *contents.DownloadURL, nil) + if err != nil { + return nil, resp, err + } + dlResp, err := s.client.client.Do(dlReq) if err != nil { return nil, &Response{Response: dlResp}, err } @@ -188,7 +192,11 @@ func (s *RepositoriesService) DownloadContentsWithMeta(ctx context.Context, owne return nil, contents, resp, fmt.Errorf("no download link found for %s", filepath) } - dlResp, err := s.client.client.Get(*contents.DownloadURL) + dlReq, err := http.NewRequestWithContext(ctx, http.MethodGet, *contents.DownloadURL, nil) + if err != nil { + return nil, contents, resp, err + } + dlResp, err := s.client.client.Do(dlReq) if err != nil { return nil, contents, &Response{Response: dlResp}, err } @@ -346,7 +354,7 @@ func (s *RepositoriesService) GetArchiveLink(ctx context.Context, owner, repo st } defer resp.Body.Close() - if resp.StatusCode != http.StatusFound { + if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusFound { return nil, newResponse(resp), fmt.Errorf("unexpected status code: %s", resp.Status) } diff --git a/vendor/github.com/google/go-github/v62/github/repos_deployment_branch_policies.go b/vendor/github.com/google/go-github/v63/github/repos_deployment_branch_policies.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_deployment_branch_policies.go rename to vendor/github.com/google/go-github/v63/github/repos_deployment_branch_policies.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_deployment_protection_rules.go b/vendor/github.com/google/go-github/v63/github/repos_deployment_protection_rules.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_deployment_protection_rules.go rename to vendor/github.com/google/go-github/v63/github/repos_deployment_protection_rules.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_deployments.go b/vendor/github.com/google/go-github/v63/github/repos_deployments.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_deployments.go rename to vendor/github.com/google/go-github/v63/github/repos_deployments.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_environments.go b/vendor/github.com/google/go-github/v63/github/repos_environments.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_environments.go rename to vendor/github.com/google/go-github/v63/github/repos_environments.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_forks.go b/vendor/github.com/google/go-github/v63/github/repos_forks.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_forks.go rename to vendor/github.com/google/go-github/v63/github/repos_forks.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_hooks.go b/vendor/github.com/google/go-github/v63/github/repos_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_hooks.go rename to vendor/github.com/google/go-github/v63/github/repos_hooks.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_hooks_configuration.go b/vendor/github.com/google/go-github/v63/github/repos_hooks_configuration.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_hooks_configuration.go rename to vendor/github.com/google/go-github/v63/github/repos_hooks_configuration.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_hooks_deliveries.go b/vendor/github.com/google/go-github/v63/github/repos_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_hooks_deliveries.go rename to vendor/github.com/google/go-github/v63/github/repos_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_invitations.go b/vendor/github.com/google/go-github/v63/github/repos_invitations.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_invitations.go rename to vendor/github.com/google/go-github/v63/github/repos_invitations.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_keys.go b/vendor/github.com/google/go-github/v63/github/repos_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_keys.go rename to vendor/github.com/google/go-github/v63/github/repos_keys.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_lfs.go b/vendor/github.com/google/go-github/v63/github/repos_lfs.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_lfs.go rename to vendor/github.com/google/go-github/v63/github/repos_lfs.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_merging.go b/vendor/github.com/google/go-github/v63/github/repos_merging.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_merging.go rename to vendor/github.com/google/go-github/v63/github/repos_merging.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_pages.go b/vendor/github.com/google/go-github/v63/github/repos_pages.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_pages.go rename to vendor/github.com/google/go-github/v63/github/repos_pages.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_prereceive_hooks.go b/vendor/github.com/google/go-github/v63/github/repos_prereceive_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_prereceive_hooks.go rename to vendor/github.com/google/go-github/v63/github/repos_prereceive_hooks.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_projects.go b/vendor/github.com/google/go-github/v63/github/repos_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_projects.go rename to vendor/github.com/google/go-github/v63/github/repos_projects.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_properties.go b/vendor/github.com/google/go-github/v63/github/repos_properties.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_properties.go rename to vendor/github.com/google/go-github/v63/github/repos_properties.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_releases.go b/vendor/github.com/google/go-github/v63/github/repos_releases.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_releases.go rename to vendor/github.com/google/go-github/v63/github/repos_releases.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_rules.go b/vendor/github.com/google/go-github/v63/github/repos_rules.go similarity index 84% rename from vendor/github.com/google/go-github/v62/github/repos_rules.go rename to vendor/github.com/google/go-github/v63/github/repos_rules.go index 6f046a356a..2827f85af1 100644 --- a/vendor/github.com/google/go-github/v62/github/repos_rules.go +++ b/vendor/github.com/google/go-github/v63/github/repos_rules.go @@ -48,12 +48,25 @@ type RulesetRepositoryIDsConditionParameters struct { RepositoryIDs []int64 `json:"repository_ids,omitempty"` } +// RulesetRepositoryPropertyTargetParameters represents a repository_property name and values to be used for targeting. +type RulesetRepositoryPropertyTargetParameters struct { + Name string `json:"name"` + Values []string `json:"property_values"` +} + +// RulesetRepositoryPropertyConditionParameters represents the conditions object for repository_property. +type RulesetRepositoryPropertyConditionParameters struct { + Include []RulesetRepositoryPropertyTargetParameters `json:"include"` + Exclude []RulesetRepositoryPropertyTargetParameters `json:"exclude"` +} + // RulesetConditions represents the conditions object in a ruleset. -// Set either RepositoryName or RepositoryID, not both. +// Set either RepositoryName or RepositoryID or RepositoryProperty, not more than one. type RulesetConditions struct { - RefName *RulesetRefConditionParameters `json:"ref_name,omitempty"` - RepositoryName *RulesetRepositoryNamesConditionParameters `json:"repository_name,omitempty"` - RepositoryID *RulesetRepositoryIDsConditionParameters `json:"repository_id,omitempty"` + RefName *RulesetRefConditionParameters `json:"ref_name,omitempty"` + RepositoryName *RulesetRepositoryNamesConditionParameters `json:"repository_name,omitempty"` + RepositoryID *RulesetRepositoryIDsConditionParameters `json:"repository_id,omitempty"` + RepositoryProperty *RulesetRepositoryPropertyConditionParameters `json:"repository_property,omitempty"` } // RulePatternParameters represents the rule pattern parameters. @@ -395,6 +408,24 @@ type Ruleset struct { Rules []*RepositoryRule `json:"rules,omitempty"` } +// rulesetNoOmitBypassActors represents a GitHub ruleset object. The struct does not omit bypassActors if the field is nil or an empty array is passed. +type rulesetNoOmitBypassActors struct { + ID *int64 `json:"id,omitempty"` + Name string `json:"name"` + // Possible values for Target are branch, tag + Target *string `json:"target,omitempty"` + // Possible values for SourceType are: Repository, Organization + SourceType *string `json:"source_type,omitempty"` + Source string `json:"source"` + // Possible values for Enforcement are: disabled, active, evaluate + Enforcement string `json:"enforcement"` + BypassActors []*BypassActor `json:"bypass_actors"` + NodeID *string `json:"node_id,omitempty"` + Links *RulesetLinks `json:"_links,omitempty"` + Conditions *RulesetConditions `json:"conditions,omitempty"` + Rules []*RepositoryRule `json:"rules,omitempty"` +} + // GetRulesForBranch gets all the rules that apply to the specified branch. // // GitHub API docs: https://docs.github.com/rest/repos/rules#get-rules-for-a-branch @@ -507,6 +538,48 @@ func (s *RepositoriesService) UpdateRuleset(ctx context.Context, owner, repo str return ruleset, resp, nil } +// UpdateRulesetNoBypassActor updates a ruleset for the specified repository. +// +// This function is necessary as the UpdateRuleset function does not marshal ByPassActor if passed as nil or an empty array. +// +// GitHub API docs: https://docs.github.com/rest/repos/rules#update-a-repository-ruleset +// +//meta:operation PUT /repos/{owner}/{repo}/rulesets/{ruleset_id} +func (s *RepositoriesService) UpdateRulesetNoBypassActor(ctx context.Context, owner, repo string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error) { + u := fmt.Sprintf("repos/%v/%v/rulesets/%v", owner, repo, rulesetID) + + rsNoBypassActor := &rulesetNoOmitBypassActors{} + + if rs != nil { + rsNoBypassActor = &rulesetNoOmitBypassActors{ + ID: rs.ID, + Name: rs.Name, + Target: rs.Target, + SourceType: rs.SourceType, + Source: rs.Source, + Enforcement: rs.Enforcement, + BypassActors: rs.BypassActors, + NodeID: rs.NodeID, + Links: rs.Links, + Conditions: rs.Conditions, + Rules: rs.Rules, + } + } + + req, err := s.client.NewRequest("PUT", u, rsNoBypassActor) + if err != nil { + return nil, nil, err + } + + var ruleSet *Ruleset + resp, err := s.client.Do(ctx, req, &ruleSet) + if err != nil { + return nil, resp, err + } + + return ruleSet, resp, nil +} + // DeleteRuleset deletes a ruleset for the specified repository. // // GitHub API docs: https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset diff --git a/vendor/github.com/google/go-github/v62/github/repos_stats.go b/vendor/github.com/google/go-github/v63/github/repos_stats.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_stats.go rename to vendor/github.com/google/go-github/v63/github/repos_stats.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_statuses.go b/vendor/github.com/google/go-github/v63/github/repos_statuses.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_statuses.go rename to vendor/github.com/google/go-github/v63/github/repos_statuses.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_tags.go b/vendor/github.com/google/go-github/v63/github/repos_tags.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_tags.go rename to vendor/github.com/google/go-github/v63/github/repos_tags.go diff --git a/vendor/github.com/google/go-github/v62/github/repos_traffic.go b/vendor/github.com/google/go-github/v63/github/repos_traffic.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/repos_traffic.go rename to vendor/github.com/google/go-github/v63/github/repos_traffic.go diff --git a/vendor/github.com/google/go-github/v62/github/scim.go b/vendor/github.com/google/go-github/v63/github/scim.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/scim.go rename to vendor/github.com/google/go-github/v63/github/scim.go diff --git a/vendor/github.com/google/go-github/v62/github/search.go b/vendor/github.com/google/go-github/v63/github/search.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/search.go rename to vendor/github.com/google/go-github/v63/github/search.go diff --git a/vendor/github.com/google/go-github/v62/github/secret_scanning.go b/vendor/github.com/google/go-github/v63/github/secret_scanning.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/secret_scanning.go rename to vendor/github.com/google/go-github/v63/github/secret_scanning.go diff --git a/vendor/github.com/google/go-github/v62/github/security_advisories.go b/vendor/github.com/google/go-github/v63/github/security_advisories.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/security_advisories.go rename to vendor/github.com/google/go-github/v63/github/security_advisories.go diff --git a/vendor/github.com/google/go-github/v62/github/strings.go b/vendor/github.com/google/go-github/v63/github/strings.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/strings.go rename to vendor/github.com/google/go-github/v63/github/strings.go diff --git a/vendor/github.com/google/go-github/v62/github/teams.go b/vendor/github.com/google/go-github/v63/github/teams.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/teams.go rename to vendor/github.com/google/go-github/v63/github/teams.go diff --git a/vendor/github.com/google/go-github/v62/github/teams_discussion_comments.go b/vendor/github.com/google/go-github/v63/github/teams_discussion_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/teams_discussion_comments.go rename to vendor/github.com/google/go-github/v63/github/teams_discussion_comments.go diff --git a/vendor/github.com/google/go-github/v62/github/teams_discussions.go b/vendor/github.com/google/go-github/v63/github/teams_discussions.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/teams_discussions.go rename to vendor/github.com/google/go-github/v63/github/teams_discussions.go diff --git a/vendor/github.com/google/go-github/v62/github/teams_members.go b/vendor/github.com/google/go-github/v63/github/teams_members.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/teams_members.go rename to vendor/github.com/google/go-github/v63/github/teams_members.go diff --git a/vendor/github.com/google/go-github/v62/github/timestamp.go b/vendor/github.com/google/go-github/v63/github/timestamp.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/timestamp.go rename to vendor/github.com/google/go-github/v63/github/timestamp.go diff --git a/vendor/github.com/google/go-github/v62/github/users.go b/vendor/github.com/google/go-github/v63/github/users.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/users.go rename to vendor/github.com/google/go-github/v63/github/users.go diff --git a/vendor/github.com/google/go-github/v62/github/users_administration.go b/vendor/github.com/google/go-github/v63/github/users_administration.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/users_administration.go rename to vendor/github.com/google/go-github/v63/github/users_administration.go diff --git a/vendor/github.com/google/go-github/v62/github/users_blocking.go b/vendor/github.com/google/go-github/v63/github/users_blocking.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/users_blocking.go rename to vendor/github.com/google/go-github/v63/github/users_blocking.go diff --git a/vendor/github.com/google/go-github/v62/github/users_emails.go b/vendor/github.com/google/go-github/v63/github/users_emails.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/users_emails.go rename to vendor/github.com/google/go-github/v63/github/users_emails.go diff --git a/vendor/github.com/google/go-github/v62/github/users_followers.go b/vendor/github.com/google/go-github/v63/github/users_followers.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/users_followers.go rename to vendor/github.com/google/go-github/v63/github/users_followers.go diff --git a/vendor/github.com/google/go-github/v62/github/users_gpg_keys.go b/vendor/github.com/google/go-github/v63/github/users_gpg_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/users_gpg_keys.go rename to vendor/github.com/google/go-github/v63/github/users_gpg_keys.go diff --git a/vendor/github.com/google/go-github/v62/github/users_keys.go b/vendor/github.com/google/go-github/v63/github/users_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/users_keys.go rename to vendor/github.com/google/go-github/v63/github/users_keys.go diff --git a/vendor/github.com/google/go-github/v62/github/users_packages.go b/vendor/github.com/google/go-github/v63/github/users_packages.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/users_packages.go rename to vendor/github.com/google/go-github/v63/github/users_packages.go diff --git a/vendor/github.com/google/go-github/v62/github/users_projects.go b/vendor/github.com/google/go-github/v63/github/users_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/users_projects.go rename to vendor/github.com/google/go-github/v63/github/users_projects.go diff --git a/vendor/github.com/google/go-github/v62/github/users_ssh_signing_keys.go b/vendor/github.com/google/go-github/v63/github/users_ssh_signing_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/users_ssh_signing_keys.go rename to vendor/github.com/google/go-github/v63/github/users_ssh_signing_keys.go diff --git a/vendor/github.com/google/go-github/v62/github/with_appengine.go b/vendor/github.com/google/go-github/v63/github/with_appengine.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/with_appengine.go rename to vendor/github.com/google/go-github/v63/github/with_appengine.go diff --git a/vendor/github.com/google/go-github/v62/github/without_appengine.go b/vendor/github.com/google/go-github/v63/github/without_appengine.go similarity index 100% rename from vendor/github.com/google/go-github/v62/github/without_appengine.go rename to vendor/github.com/google/go-github/v63/github/without_appengine.go diff --git a/vendor/modules.txt b/vendor/modules.txt index b9f5d0252c..7af668f796 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -434,9 +434,9 @@ github.com/google/go-cmp/cmp/internal/diff github.com/google/go-cmp/cmp/internal/flags github.com/google/go-cmp/cmp/internal/function github.com/google/go-cmp/cmp/internal/value -# github.com/google/go-github/v62 v62.0.0 +# github.com/google/go-github/v63 v63.0.0 ## explicit; go 1.21 -github.com/google/go-github/v62/github +github.com/google/go-github/v63/github # github.com/google/go-querystring v1.1.0 ## explicit; go 1.10 github.com/google/go-querystring/query