From e83bb8d8ffd505d63d068527df25efcdccdfc7a0 Mon Sep 17 00:00:00 2001 From: Brandon Stubbs Date: Mon, 10 Apr 2023 19:19:43 -0400 Subject: [PATCH] Update go-github to v51 (#1638) * Update go-github to v51 * v50 --> v51 in data_source_github_issue_labels --------- Co-authored-by: Keegan Campbell --- github/config.go | 2 +- ...urce_github_actions_environment_secrets.go | 2 +- ...ce_github_actions_environment_variables.go | 2 +- ...rce_github_actions_organization_secrets.go | 2 +- ...e_github_actions_organization_variables.go | 2 +- github/data_source_github_actions_secrets.go | 2 +- .../data_source_github_actions_variables.go | 2 +- github/data_source_github_branch.go | 2 +- github/data_source_github_collaborators.go | 2 +- ..._github_dependabot_organization_secrets.go | 2 +- .../data_source_github_dependabot_secrets.go | 2 +- github/data_source_github_external_groups.go | 2 +- github/data_source_github_issue_labels.go | 2 +- github/data_source_github_organization.go | 2 +- ...ce_github_organization_team_sync_groups.go | 2 +- ...ata_source_github_organization_webhooks.go | 2 +- github/data_source_github_ref.go | 2 +- github/data_source_github_release.go | 2 +- github/data_source_github_repositories.go | 2 +- github/data_source_github_repository.go | 2 +- .../data_source_github_repository_branches.go | 2 +- ...ta_source_github_repository_deploy_keys.go | 2 +- github/data_source_github_repository_file.go | 2 +- ...data_source_github_repository_file_test.go | 2 +- ..._source_github_repository_pull_requests.go | 2 +- github/data_source_github_repository_teams.go | 2 +- .../data_source_github_repository_webhooks.go | 2 +- github/data_source_github_team.go | 2 +- github/repository_utils.go | 2 +- ...ource_github_actions_environment_secret.go | 2 +- ...rce_github_actions_environment_variable.go | 2 +- ...dc_subject_claim_customization_template.go | 2 +- ...github_actions_organization_permissions.go | 2 +- ...urce_github_actions_organization_secret.go | 2 +- ...ctions_organization_secret_repositories.go | 2 +- ...ce_github_actions_organization_variable.go | 2 +- ..._github_actions_repository_access_level.go | 2 +- ...dc_subject_claim_customization_template.go | 2 +- ...e_github_actions_repository_permissions.go | 2 +- .../resource_github_actions_runner_group.go | 2 +- github/resource_github_actions_secret.go | 2 +- github/resource_github_actions_variable.go | 2 +- ...ce_github_app_installation_repositories.go | 2 +- ...urce_github_app_installation_repository.go | 2 +- github/resource_github_branch.go | 2 +- github/resource_github_branch_default.go | 2 +- .../resource_github_branch_protection_v3.go | 2 +- ...ource_github_branch_protection_v3_utils.go | 2 +- ...e_github_dependabot_organization_secret.go | 2 +- ...ndabot_organization_secret_repositories.go | 2 +- github/resource_github_dependabot_secret.go | 2 +- github/resource_github_emu_group_mapping.go | 2 +- ...resource_github_enterprise_organization.go | 2 +- github/resource_github_issue.go | 2 +- github/resource_github_issue_label.go | 2 +- github/resource_github_membership.go | 2 +- github/resource_github_membership_test.go | 2 +- .../resource_github_organization_project.go | 2 +- ...source_github_organization_project_test.go | 2 +- ...ce_github_organization_security_manager.go | 2 +- .../resource_github_organization_settings.go | 2 +- .../resource_github_organization_webhook.go | 2 +- github/resource_github_project_card.go | 2 +- github/resource_github_project_column.go | 2 +- github/resource_github_project_column_test.go | 2 +- github/resource_github_release.go | 2 +- github/resource_github_repository.go | 2 +- ...ce_github_repository_autolink_reference.go | 2 +- ...resource_github_repository_collaborator.go | 2 +- ...esource_github_repository_collaborators.go | 2 +- ...ce_github_repository_collaborators_test.go | 2 +- .../resource_github_repository_deploy_key.go | 2 +- .../resource_github_repository_environment.go | 2 +- github/resource_github_repository_file.go | 2 +- .../resource_github_repository_milestone.go | 2 +- github/resource_github_repository_project.go | 2 +- ...resource_github_repository_pull_request.go | 2 +- ...source_github_repository_tag_protection.go | 2 +- github/resource_github_repository_webhook.go | 2 +- github/resource_github_team.go | 2 +- github/resource_github_team_members.go | 2 +- github/resource_github_team_members_test.go | 2 +- github/resource_github_team_membership.go | 2 +- .../resource_github_team_membership_test.go | 2 +- github/resource_github_team_repository.go | 2 +- ...resource_github_team_sync_group_mapping.go | 2 +- ...rce_github_team_sync_group_mapping_test.go | 2 +- github/resource_github_user_gpg_key.go | 2 +- github/resource_github_user_ssh_key.go | 2 +- github/resource_organization_block.go | 2 +- github/transport.go | 2 +- github/transport_test.go | 2 +- github/util.go | 2 +- go.mod | 2 +- go.sum | 4 +- .../google/go-github/{v50 => v51}/AUTHORS | 0 .../google/go-github/{v50 => v51}/LICENSE | 0 .../go-github/{v50 => v51}/github/actions.go | 0 .../{v50 => v51}/github/actions_artifacts.go | 0 .../{v50 => v51}/github/actions_cache.go | 0 .../{v50 => v51}/github/actions_oidc.go | 0 .../v51/github/actions_required_workflows.go | 233 +++++++++++++++ .../github/actions_runner_groups.go | 0 .../{v50 => v51}/github/actions_runners.go | 0 .../{v50 => v51}/github/actions_secrets.go | 0 .../{v50 => v51}/github/actions_variables.go | 0 .../github/actions_workflow_jobs.go | 0 .../github/actions_workflow_runs.go | 34 ++- .../{v50 => v51}/github/actions_workflows.go | 0 .../go-github/{v50 => v51}/github/activity.go | 0 .../{v50 => v51}/github/activity_events.go | 0 .../github/activity_notifications.go | 0 .../{v50 => v51}/github/activity_star.go | 0 .../{v50 => v51}/github/activity_watching.go | 0 .../go-github/{v50 => v51}/github/admin.go | 0 .../{v50 => v51}/github/admin_orgs.go | 0 .../{v50 => v51}/github/admin_stats.go | 0 .../{v50 => v51}/github/admin_users.go | 0 .../go-github/{v50 => v51}/github/apps.go | 0 .../{v50 => v51}/github/apps_hooks.go | 0 .../github/apps_hooks_deliveries.go | 0 .../{v50 => v51}/github/apps_installation.go | 0 .../{v50 => v51}/github/apps_manifest.go | 0 .../{v50 => v51}/github/apps_marketplace.go | 0 .../{v50 => v51}/github/authorizations.go | 0 .../go-github/{v50 => v51}/github/billing.go | 9 +- .../go-github/{v50 => v51}/github/checks.go | 0 .../{v50 => v51}/github/code-scanning.go | 0 .../{v50 => v51}/github/dependabot.go | 0 .../{v50 => v51}/github/dependabot_alerts.go | 0 .../{v50 => v51}/github/dependabot_secrets.go | 0 .../go-github/{v50 => v51}/github/doc.go | 2 +- .../{v50 => v51}/github/enterprise.go | 0 .../github/enterprise_actions_runners.go | 0 .../github/enterprise_audit_log.go | 0 .../enterprise_code_security_and_analysis.go | 0 .../go-github/{v50 => v51}/github/event.go | 0 .../{v50 => v51}/github/event_types.go | 0 .../go-github/{v50 => v51}/github/gists.go | 0 .../{v50 => v51}/github/gists_comments.go | 0 .../go-github/{v50 => v51}/github/git.go | 0 .../{v50 => v51}/github/git_blobs.go | 0 .../{v50 => v51}/github/git_commits.go | 0 .../go-github/{v50 => v51}/github/git_refs.go | 0 .../go-github/{v50 => v51}/github/git_tags.go | 0 .../{v50 => v51}/github/git_trees.go | 0 .../{v50 => v51}/github/github-accessors.go | 282 +++++++++++++++++- .../go-github/{v50 => v51}/github/github.go | 2 +- .../{v50 => v51}/github/gitignore.go | 0 .../{v50 => v51}/github/interactions.go | 0 .../{v50 => v51}/github/interactions_orgs.go | 0 .../{v50 => v51}/github/interactions_repos.go | 0 .../{v50 => v51}/github/issue_import.go | 0 .../go-github/{v50 => v51}/github/issues.go | 0 .../{v50 => v51}/github/issues_assignees.go | 0 .../{v50 => v51}/github/issues_comments.go | 0 .../{v50 => v51}/github/issues_events.go | 0 .../{v50 => v51}/github/issues_labels.go | 0 .../{v50 => v51}/github/issues_milestones.go | 0 .../{v50 => v51}/github/issues_timeline.go | 0 .../go-github/{v50 => v51}/github/licenses.go | 0 .../go-github/{v50 => v51}/github/messages.go | 11 +- .../{v50 => v51}/github/migrations.go | 0 .../github/migrations_source_import.go | 0 .../{v50 => v51}/github/migrations_user.go | 0 .../go-github/{v50 => v51}/github/misc.go | 0 .../go-github/{v50 => v51}/github/orgs.go | 19 +- .../github/orgs_actions_allowed.go | 0 .../github/orgs_actions_permissions.go | 0 .../{v50 => v51}/github/orgs_audit_log.go | 0 .../{v50 => v51}/github/orgs_custom_roles.go | 0 .../{v50 => v51}/github/orgs_hooks.go | 0 .../github/orgs_hooks_deliveries.go | 0 .../{v50 => v51}/github/orgs_members.go | 0 .../github/orgs_outside_collaborators.go | 0 .../{v50 => v51}/github/orgs_packages.go | 0 .../{v50 => v51}/github/orgs_projects.go | 0 .../github/orgs_security_managers.go | 0 .../github/orgs_users_blocking.go | 0 .../go-github/{v50 => v51}/github/packages.go | 0 .../go-github/{v50 => v51}/github/projects.go | 0 .../go-github/{v50 => v51}/github/pulls.go | 0 .../{v50 => v51}/github/pulls_comments.go | 0 .../{v50 => v51}/github/pulls_reviewers.go | 0 .../{v50 => v51}/github/pulls_reviews.go | 0 .../{v50 => v51}/github/pulls_threads.go | 0 .../{v50 => v51}/github/reactions.go | 0 .../go-github/{v50 => v51}/github/repos.go | 0 .../github/repos_actions_access.go | 0 .../github/repos_actions_allowed.go | 0 .../github/repos_actions_permissions.go | 0 .../{v50 => v51}/github/repos_autolinks.go | 0 .../{v50 => v51}/github/repos_codeowners.go | 0 .../github/repos_collaborators.go | 0 .../{v50 => v51}/github/repos_comments.go | 0 .../{v50 => v51}/github/repos_commits.go | 0 .../github/repos_community_health.go | 0 .../{v50 => v51}/github/repos_contents.go | 0 .../repos_deployment_branch_policies.go | 0 .../{v50 => v51}/github/repos_deployments.go | 0 .../{v50 => v51}/github/repos_environments.go | 6 + .../{v50 => v51}/github/repos_forks.go | 0 .../{v50 => v51}/github/repos_hooks.go | 0 .../github/repos_hooks_deliveries.go | 0 .../{v50 => v51}/github/repos_invitations.go | 0 .../{v50 => v51}/github/repos_keys.go | 0 .../{v50 => v51}/github/repos_lfs.go | 0 .../{v50 => v51}/github/repos_merging.go | 0 .../{v50 => v51}/github/repos_pages.go | 11 +- .../github/repos_prereceive_hooks.go | 0 .../{v50 => v51}/github/repos_projects.go | 0 .../{v50 => v51}/github/repos_releases.go | 0 .../{v50 => v51}/github/repos_stats.go | 0 .../{v50 => v51}/github/repos_statuses.go | 0 .../{v50 => v51}/github/repos_tags.go | 0 .../{v50 => v51}/github/repos_traffic.go | 0 .../go-github/{v50 => v51}/github/scim.go | 0 .../go-github/{v50 => v51}/github/search.go | 0 .../{v50 => v51}/github/secret_scanning.go | 0 .../go-github/{v50 => v51}/github/strings.go | 0 .../go-github/{v50 => v51}/github/teams.go | 0 .../github/teams_discussion_comments.go | 0 .../{v50 => v51}/github/teams_discussions.go | 0 .../{v50 => v51}/github/teams_members.go | 0 .../{v50 => v51}/github/timestamp.go | 0 .../go-github/{v50 => v51}/github/users.go | 4 +- .../github/users_administration.go | 0 .../{v50 => v51}/github/users_blocking.go | 0 .../{v50 => v51}/github/users_emails.go | 25 ++ .../{v50 => v51}/github/users_followers.go | 0 .../{v50 => v51}/github/users_gpg_keys.go | 0 .../{v50 => v51}/github/users_keys.go | 2 + .../{v50 => v51}/github/users_packages.go | 0 .../{v50 => v51}/github/users_projects.go | 0 .../github/users_ssh_signing_keys.go | 0 .../{v50 => v51}/github/with_appengine.go | 0 .../{v50 => v51}/github/without_appengine.go | 0 vendor/modules.txt | 4 +- 238 files changed, 710 insertions(+), 126 deletions(-) rename vendor/github.com/google/go-github/{v50 => v51}/AUTHORS (100%) rename vendor/github.com/google/go-github/{v50 => v51}/LICENSE (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/actions.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/actions_artifacts.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/actions_cache.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/actions_oidc.go (100%) create mode 100644 vendor/github.com/google/go-github/v51/github/actions_required_workflows.go rename vendor/github.com/google/go-github/{v50 => v51}/github/actions_runner_groups.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/actions_runners.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/actions_secrets.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/actions_variables.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/actions_workflow_jobs.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/actions_workflow_runs.go (90%) rename vendor/github.com/google/go-github/{v50 => v51}/github/actions_workflows.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/activity.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/activity_events.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/activity_notifications.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/activity_star.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/activity_watching.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/admin.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/admin_orgs.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/admin_stats.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/admin_users.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/apps.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/apps_hooks.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/apps_hooks_deliveries.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/apps_installation.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/apps_manifest.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/apps_marketplace.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/authorizations.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/billing.go (95%) rename vendor/github.com/google/go-github/{v50 => v51}/github/checks.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/code-scanning.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/dependabot.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/dependabot_alerts.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/dependabot_secrets.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/doc.go (99%) rename vendor/github.com/google/go-github/{v50 => v51}/github/enterprise.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/enterprise_actions_runners.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/enterprise_audit_log.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/enterprise_code_security_and_analysis.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/event.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/event_types.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/gists.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/gists_comments.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/git.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/git_blobs.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/git_commits.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/git_refs.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/git_tags.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/git_trees.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/github-accessors.go (98%) rename vendor/github.com/google/go-github/{v50 => v51}/github/github.go (99%) rename vendor/github.com/google/go-github/{v50 => v51}/github/gitignore.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/interactions.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/interactions_orgs.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/interactions_repos.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/issue_import.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/issues.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/issues_assignees.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/issues_comments.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/issues_events.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/issues_labels.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/issues_milestones.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/issues_timeline.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/licenses.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/messages.go (96%) rename vendor/github.com/google/go-github/{v50 => v51}/github/migrations.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/migrations_source_import.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/migrations_user.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/misc.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs.go (95%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_actions_allowed.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_actions_permissions.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_audit_log.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_custom_roles.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_hooks.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_hooks_deliveries.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_members.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_outside_collaborators.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_packages.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_projects.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_security_managers.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/orgs_users_blocking.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/packages.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/projects.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/pulls.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/pulls_comments.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/pulls_reviewers.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/pulls_reviews.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/pulls_threads.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/reactions.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_actions_access.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_actions_allowed.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_actions_permissions.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_autolinks.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_codeowners.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_collaborators.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_comments.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_commits.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_community_health.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_contents.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_deployment_branch_policies.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_deployments.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_environments.go (96%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_forks.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_hooks.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_hooks_deliveries.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_invitations.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_keys.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_lfs.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_merging.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_pages.go (94%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_prereceive_hooks.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_projects.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_releases.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_stats.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_statuses.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_tags.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/repos_traffic.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/scim.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/search.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/secret_scanning.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/strings.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/teams.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/teams_discussion_comments.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/teams_discussions.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/teams_members.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/timestamp.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/users.go (98%) rename vendor/github.com/google/go-github/{v50 => v51}/github/users_administration.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/users_blocking.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/users_emails.go (73%) rename vendor/github.com/google/go-github/{v50 => v51}/github/users_followers.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/users_gpg_keys.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/users_keys.go (96%) rename vendor/github.com/google/go-github/{v50 => v51}/github/users_packages.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/users_projects.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/users_ssh_signing_keys.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/with_appengine.go (100%) rename vendor/github.com/google/go-github/{v50 => v51}/github/without_appengine.go (100%) diff --git a/github/config.go b/github/config.go index c048abb3c6..41db241da3 100644 --- a/github/config.go +++ b/github/config.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/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 94c38d27e8..a79efc8d91 100644 --- a/github/data_source_github_actions_environment_secrets.go +++ b/github/data_source_github_actions_environment_secrets.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_actions_environment_variables.go b/github/data_source_github_actions_environment_variables.go index 6b558040c4..66824b2dac 100644 --- a/github/data_source_github_actions_environment_variables.go +++ b/github/data_source_github_actions_environment_variables.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_actions_organization_secrets.go b/github/data_source_github_actions_organization_secrets.go index 1fd227c722..415d5a02ba 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_actions_organization_variables.go b/github/data_source_github_actions_organization_variables.go index 5ca35be74f..5bc79fac88 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_actions_secrets.go b/github/data_source_github_actions_secrets.go index 7b50593821..035b0cb1f3 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_actions_variables.go b/github/data_source_github_actions_variables.go index 3ec65e4076..b3e3555abc 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_branch.go b/github/data_source_github_branch.go index 9b245cef88..d9d4a074b7 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_collaborators.go b/github/data_source_github_collaborators.go index 609c6d79a1..e2e59f05b0 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/data_source_github_dependabot_organization_secrets.go b/github/data_source_github_dependabot_organization_secrets.go index 270ff21aec..2389d9cb76 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_dependabot_secrets.go b/github/data_source_github_dependabot_secrets.go index 921f9c9759..169ecc6b02 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_external_groups.go b/github/data_source_github_external_groups.go index 23c53f9d74..b0dc8d01ea 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_issue_labels.go b/github/data_source_github_issue_labels.go index 7c1f07362a..f211b3e877 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_organization.go b/github/data_source_github_organization.go index 869da25bf3..f68bd26b45 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/shurcooL/githubv4" ) diff --git a/github/data_source_github_organization_team_sync_groups.go b/github/data_source_github_organization_team_sync_groups.go index 266b335f88..26fa8d6287 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_organization_webhooks.go b/github/data_source_github_organization_webhooks.go index fae05c0266..e8ac99bafb 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_ref.go b/github/data_source_github_ref.go index 646b73411e..ea22e436c2 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_release.go b/github/data_source_github_release.go index 623215762a..326c869158 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/helper/validation" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_repositories.go b/github/data_source_github_repositories.go index 3b95ef919e..ec2689ef67 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/data_source_github_repository.go b/github/data_source_github_repository.go index f8736148b3..4b01273760 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_repository_branches.go b/github/data_source_github_repository_branches.go index cbcf3afad8..b1cd4a3521 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_repository_deploy_keys.go b/github/data_source_github_repository_deploy_keys.go index 895a0bdea4..0af12bdea8 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_repository_file.go b/github/data_source_github_repository_file.go index 697db93535..4ee8d81c09 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_repository_file_test.go b/github/data_source_github_repository_file_test.go index 88b055770d..e541d4dbc7 100644 --- a/github/data_source_github_repository_file_test.go +++ b/github/data_source_github_repository_file_test.go @@ -8,7 +8,7 @@ import ( "net/url" "testing" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/stretchr/testify/assert" "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" diff --git a/github/data_source_github_repository_pull_requests.go b/github/data_source_github_repository_pull_requests.go index de0c9f6070..50af82b0da 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/data_source_github_repository_teams.go b/github/data_source_github_repository_teams.go index 3fdd6d08b9..0e34ae4835 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_repository_webhooks.go b/github/data_source_github_repository_webhooks.go index 379a820f82..6c7b13fe24 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_team.go b/github/data_source_github_team.go index c256f8b905..bc50f9deb5 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/shurcooL/githubv4" diff --git a/github/repository_utils.go b/github/repository_utils.go index dd7b82ee3a..aa8dbae2d3 100644 --- a/github/repository_utils.go +++ b/github/repository_utils.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/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 2a530c08e2..69e8d1993c 100644 --- a/github/resource_github_actions_environment_secret.go +++ b/github/resource_github_actions_environment_secret.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_actions_environment_variable.go b/github/resource_github_actions_environment_variable.go index d68f4a3d60..d2f4462574 100644 --- a/github/resource_github_actions_environment_variable.go +++ b/github/resource_github_actions_environment_variable.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/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 a51a196649..6c61fbc1d0 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_actions_organization_permissions.go b/github/resource_github_actions_organization_permissions.go index 075d9d039b..2c29d36275 100644 --- a/github/resource_github_actions_organization_permissions.go +++ b/github/resource_github_actions_organization_permissions.go @@ -4,7 +4,7 @@ import ( "context" "errors" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_actions_organization_secret.go b/github/resource_github_actions_organization_secret.go index 9a208a9663..c7e6dd23d1 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_actions_organization_secret_repositories.go b/github/resource_github_actions_organization_secret_repositories.go index 4f7c44c2ad..b0e8b8c809 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_actions_organization_variable.go b/github/resource_github_actions_organization_variable.go index 6a4f58932d..f65a683099 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_actions_repository_access_level.go b/github/resource_github_actions_repository_access_level.go index fc4389a34a..24ea96cea3 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/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 cc3d9a9b8e..55717735a0 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_actions_repository_permissions.go b/github/resource_github_actions_repository_permissions.go index cd3ea8b038..2db346c449 100644 --- a/github/resource_github_actions_repository_permissions.go +++ b/github/resource_github_actions_repository_permissions.go @@ -5,7 +5,7 @@ import ( "errors" "log" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_actions_runner_group.go b/github/resource_github_actions_runner_group.go index a4b4ea586c..6688f5c3a0 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_actions_secret.go b/github/resource_github_actions_secret.go index 0046dbfdf4..a78cb4debc 100644 --- a/github/resource_github_actions_secret.go +++ b/github/resource_github_actions_secret.go @@ -7,7 +7,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/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 49eb46d120..6a3eb670ee 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_app_installation_repositories.go b/github/resource_github_app_installation_repositories.go index 4f920370a9..1e609cc8f1 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_app_installation_repository.go b/github/resource_github_app_installation_repository.go index c37571b155..68b7981b7c 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_branch.go b/github/resource_github_branch.go index e2a01fa4a3..d2eaac8029 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_branch_default.go b/github/resource_github_branch_default.go index 67b41cd3d9..76da03b755 100644 --- a/github/resource_github_branch_default.go +++ b/github/resource_github_branch_default.go @@ -3,7 +3,7 @@ package github import ( "context" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_branch_protection_v3.go b/github/resource_github_branch_protection_v3.go index 392007507a..1739c6d176 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_branch_protection_v3_utils.go b/github/resource_github_branch_protection_v3_utils.go index 96646382de..0b7e1fe574 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_dependabot_organization_secret.go b/github/resource_github_dependabot_organization_secret.go index 826a6e0669..d710cc177b 100644 --- a/github/resource_github_dependabot_organization_secret.go +++ b/github/resource_github_dependabot_organization_secret.go @@ -8,7 +8,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_dependabot_organization_secret_repositories.go b/github/resource_github_dependabot_organization_secret_repositories.go index 3489c1a9c8..d0f2a11d2c 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_dependabot_secret.go b/github/resource_github_dependabot_secret.go index 3a9a4a4730..3514007f40 100644 --- a/github/resource_github_dependabot_secret.go +++ b/github/resource_github_dependabot_secret.go @@ -7,7 +7,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/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 40cf2d6d64..36d2ed5285 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_enterprise_organization.go b/github/resource_github_enterprise_organization.go index d7310d843c..2dce2f34e2 100644 --- a/github/resource_github_enterprise_organization.go +++ b/github/resource_github_enterprise_organization.go @@ -7,7 +7,7 @@ import ( "log" "strings" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/shurcooL/githubv4" ) diff --git a/github/resource_github_issue.go b/github/resource_github_issue.go index 8189e1d55b..7889cd7d42 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_issue_label.go b/github/resource_github_issue_label.go index 7fdca59b01..c3e3b91d85 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_membership.go b/github/resource_github_membership.go index cc547f6ee6..1ddf9db127 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_membership_test.go b/github/resource_github_membership_test.go index dd15302318..6adf361275 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" ) diff --git a/github/resource_github_organization_project.go b/github/resource_github_organization_project.go index faa0a1f628..c85ac912da 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_organization_project_test.go b/github/resource_github_organization_project_test.go index a784437602..62ab736fb9 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" ) diff --git a/github/resource_github_organization_security_manager.go b/github/resource_github_organization_security_manager.go index 81bbbdd3b1..0244625469 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_organization_settings.go b/github/resource_github_organization_settings.go index c89b9f9479..83a8724522 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_organization_webhook.go b/github/resource_github_organization_webhook.go index 54e511a86c..2975a401aa 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_project_card.go b/github/resource_github_project_card.go index 58943f1480..8dd490a58a 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_project_column.go b/github/resource_github_project_column.go index e8481473b5..bc562e7910 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_project_column_test.go b/github/resource_github_project_column_test.go index 5317504652..04abd36b82 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" ) diff --git a/github/resource_github_release.go b/github/resource_github_release.go index 340bc841d7..48d052cda0 100644 --- a/github/resource_github_release.go +++ b/github/resource_github_release.go @@ -6,7 +6,7 @@ import ( "log" "strconv" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_repository.go b/github/resource_github_repository.go index 5a236be916..ada5dfbff9 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_repository_autolink_reference.go b/github/resource_github_repository_autolink_reference.go index 5447ec87d8..39d9a7c096 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_repository_collaborator.go b/github/resource_github_repository_collaborator.go index 8e04d7b90b..3969d165e3 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_repository_collaborators.go b/github/resource_github_repository_collaborators.go index 7df3d5fc7f..0feb6be6eb 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_repository_collaborators_test.go b/github/resource_github_repository_collaborators_test.go index 8902ec44e9..96a352c662 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" diff --git a/github/resource_github_repository_deploy_key.go b/github/resource_github_repository_deploy_key.go index 1af838bc87..70c370db16 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_repository_environment.go b/github/resource_github_repository_environment.go index f99a39abb0..a3b7e4c083 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_repository_file.go b/github/resource_github_repository_file.go index f595d879b5..7318302281 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_repository_milestone.go b/github/resource_github_repository_milestone.go index 3a8fa2b5f1..c9f60474be 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/resource_github_repository_project.go b/github/resource_github_repository_project.go index af3197dbd8..64a9a434c0 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_repository_pull_request.go b/github/resource_github_repository_pull_request.go index fc8b056841..f64b882726 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_repository_tag_protection.go b/github/resource_github_repository_tag_protection.go index 3380b59c41..164dc82355 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_repository_webhook.go b/github/resource_github_repository_webhook.go index fbaef1b062..6e09b28355 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_team.go b/github/resource_github_team.go index 09053be061..a44cd4b5c8 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/customdiff" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/shurcooL/githubv4" diff --git a/github/resource_github_team_members.go b/github/resource_github_team_members.go index 65eb573bd0..308742a03c 100644 --- a/github/resource_github_team_members.go +++ b/github/resource_github_team_members.go @@ -5,7 +5,7 @@ import ( "log" "reflect" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_team_members_test.go b/github/resource_github_team_members_test.go index 27502324ec..731a6e97d8 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" diff --git a/github/resource_github_team_membership.go b/github/resource_github_team_membership.go index f06898983c..a034c52a27 100644 --- a/github/resource_github_team_membership.go +++ b/github/resource_github_team_membership.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_team_membership_test.go b/github/resource_github_team_membership_test.go index 6f2e645359..88f6a13215 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" diff --git a/github/resource_github_team_repository.go b/github/resource_github_team_repository.go index b75ee5d919..298a2b3e7e 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_team_sync_group_mapping.go b/github/resource_github_team_sync_group_mapping.go index 47551c9028..47bfb009c8 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/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 62039ab8da..4462327b90 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" diff --git a/github/resource_github_user_gpg_key.go b/github/resource_github_user_gpg_key.go index 5878609c15..513c126639 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_user_ssh_key.go b/github/resource_github_user_ssh_key.go index ee8e91f762..900a26a3eb 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_organization_block.go b/github/resource_organization_block.go index 7ca069ebd3..3e01cfc3d0 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/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/transport.go b/github/transport.go index b928ae3b7e..e37de96260 100644 --- a/github/transport.go +++ b/github/transport.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" ) const ( diff --git a/github/transport_test.go b/github/transport_test.go index 289980276d..5309a6d654 100644 --- a/github/transport_test.go +++ b/github/transport_test.go @@ -10,7 +10,7 @@ import ( "net/url" "testing" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" ) func TestEtagTransport(t *testing.T) { diff --git a/github/util.go b/github/util.go index 2abb2454c1..ed6f03cdbd 100644 --- a/github/util.go +++ b/github/util.go @@ -12,7 +12,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/go.mod b/go.mod index 86c22de8a5..94787e6005 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( github.com/client9/misspell v0.3.4 github.com/golangci/golangci-lint v1.41.1 - github.com/google/go-github/v50 v50.2.0 + github.com/google/go-github/v51 v51.0.0 github.com/google/uuid v1.3.0 github.com/hashicorp/terraform-plugin-sdk v1.17.2 github.com/shurcooL/githubv4 v0.0.0-20221126192849-0b5c4c7994eb diff --git a/go.sum b/go.sum index dda178067d..b4bde5f8b6 100644 --- a/go.sum +++ b/go.sum @@ -726,8 +726,8 @@ github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8 github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-github/v50 v50.2.0 h1:j2FyongEHlO9nxXLc+LP3wuBSVU9mVxfpdYUexMpIfk= -github.com/google/go-github/v50 v50.2.0/go.mod h1:VBY8FB6yPIjrtKhozXv4FQupxKLS6H4m6xFZlT43q8Q= +github.com/google/go-github/v51 v51.0.0 h1:KCjsbgPV28VoRftdP+K2mQL16jniUsLAJknsOVKwHyU= +github.com/google/go-github/v51 v51.0.0/go.mod h1:kZj/rn/c1lSUbr/PFWl2hhusPV7a5XNYKcwPrd5L3Us= 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/v50/AUTHORS b/vendor/github.com/google/go-github/v51/AUTHORS similarity index 100% rename from vendor/github.com/google/go-github/v50/AUTHORS rename to vendor/github.com/google/go-github/v51/AUTHORS diff --git a/vendor/github.com/google/go-github/v50/LICENSE b/vendor/github.com/google/go-github/v51/LICENSE similarity index 100% rename from vendor/github.com/google/go-github/v50/LICENSE rename to vendor/github.com/google/go-github/v51/LICENSE diff --git a/vendor/github.com/google/go-github/v50/github/actions.go b/vendor/github.com/google/go-github/v51/github/actions.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/actions.go rename to vendor/github.com/google/go-github/v51/github/actions.go diff --git a/vendor/github.com/google/go-github/v50/github/actions_artifacts.go b/vendor/github.com/google/go-github/v51/github/actions_artifacts.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/actions_artifacts.go rename to vendor/github.com/google/go-github/v51/github/actions_artifacts.go diff --git a/vendor/github.com/google/go-github/v50/github/actions_cache.go b/vendor/github.com/google/go-github/v51/github/actions_cache.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/actions_cache.go rename to vendor/github.com/google/go-github/v51/github/actions_cache.go diff --git a/vendor/github.com/google/go-github/v50/github/actions_oidc.go b/vendor/github.com/google/go-github/v51/github/actions_oidc.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/actions_oidc.go rename to vendor/github.com/google/go-github/v51/github/actions_oidc.go diff --git a/vendor/github.com/google/go-github/v51/github/actions_required_workflows.go b/vendor/github.com/google/go-github/v51/github/actions_required_workflows.go new file mode 100644 index 0000000000..73a4c77fac --- /dev/null +++ b/vendor/github.com/google/go-github/v51/github/actions_required_workflows.go @@ -0,0 +1,233 @@ +// Copyright 2023 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package github + +import ( + "context" + "fmt" +) + +// OrgRequiredWorkflow represents a required workflow object at the org level. +type OrgRequiredWorkflow struct { + ID *int64 `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Path *string `json:"path,omitempty"` + Scope *string `json:"scope,omitempty"` + Ref *string `json:"ref,omitempty"` + State *string `json:"state,omitempty"` + SelectedRepositoriesURL *string `json:"selected_repositories_url,omitempty"` + CreatedAt *Timestamp `json:"created_at,omitempty"` + UpdatedAt *Timestamp `json:"updated_at,omitempty"` + Repository *Repository `json:"repository,omitempty"` +} + +// OrgRequiredWorkflows represents the required workflows for the org. +type OrgRequiredWorkflows struct { + TotalCount *int `json:"total_count,omitempty"` + RequiredWorkflows []*OrgRequiredWorkflow `json:"required_workflows,omitempty"` +} + +// CreateUpdateRequiredWorkflowOptions represents the input object used to create or update required workflows. +type CreateUpdateRequiredWorkflowOptions struct { + WorkflowFilePath *string `json:"workflow_file_path,omitempty"` + RepositoryID *int64 `json:"repository_id,omitempty"` + Scope *string `json:"scope,omitempty"` + SelectedRepositoryIDs *SelectedRepoIDs `json:"selected_repository_ids,omitempty"` +} + +// RequiredWorkflowSelectedRepos represents the repos that a required workflow is applied to. +type RequiredWorkflowSelectedRepos struct { + TotalCount *int `json:"total_count,omitempty"` + Repositories []*Repository `json:"repositories,omitempty"` +} + +// RepoRequiredWorkflow represents a required workflow object at the repo level. +type RepoRequiredWorkflow struct { + ID *int64 `json:"id,omitempty"` + NodeID *string `json:"node_id,omitempty"` + Name *string `json:"name,omitempty"` + Path *string `json:"path,omitempty"` + State *string `json:"state,omitempty"` + URL *string `json:"url,omitempty"` + HTMLURL *string `json:"html_url,omitempty"` + BadgeURL *string `json:"badge_url,omitempty"` + CreatedAt *Timestamp `json:"created_at,omitempty"` + UpdatedAt *Timestamp `json:"updated_at,omitempty"` + SourceRepository *Repository `json:"source_repository,omitempty"` +} + +// RepoRequiredWorkflows represents the required workflows for a repo. +type RepoRequiredWorkflows struct { + TotalCount *int `json:"total_count,omitempty"` + RequiredWorkflows []*RepoRequiredWorkflow `json:"required_workflows,omitempty"` +} + +// ListOrgRequiredWorkflows lists the RequiredWorkflows for an org. +// +// GitHub API docs: https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-required-workflows +func (s *ActionsService) ListOrgRequiredWorkflows(ctx context.Context, org string, opts *ListOptions) (*OrgRequiredWorkflows, *Response, error) { + url := fmt.Sprintf("orgs/%v/actions/required_workflows", org) + u, err := addOptions(url, opts) + if err != nil { + return nil, nil, err + } + + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + requiredWorkflows := new(OrgRequiredWorkflows) + resp, err := s.client.Do(ctx, req, &requiredWorkflows) + if err != nil { + return nil, resp, err + } + + return requiredWorkflows, resp, nil +} + +// CreateRequiredWorkflow creates the required workflow in an org. +// +// GitHub API docs: https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#create-a-required-workflow +func (s *ActionsService) CreateRequiredWorkflow(ctx context.Context, org string, createRequiredWorkflowOptions *CreateUpdateRequiredWorkflowOptions) (*Response, error) { + url := fmt.Sprintf("orgs/%v/actions/required_workflows", org) + req, err := s.client.NewRequest("PUT", url, createRequiredWorkflowOptions) + if err != nil { + return nil, err + } + return s.client.Do(ctx, req, nil) +} + +// GetRequiredWorkflowByID get the RequiredWorkflows for an org by its ID. +// +// GitHub API docs: https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-required-workflows +func (s *ActionsService) GetRequiredWorkflowByID(ctx context.Context, owner string, requiredWorkflowID int64) (*OrgRequiredWorkflow, *Response, error) { + u := fmt.Sprintf("orgs/%v/actions/required_workflows/%v", owner, requiredWorkflowID) + + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + requiredWorkflow := new(OrgRequiredWorkflow) + resp, err := s.client.Do(ctx, req, &requiredWorkflow) + if err != nil { + return nil, resp, err + } + + return requiredWorkflow, resp, nil +} + +// UpdateRequiredWorkflow updates a required workflow in an org. +// +// GitHub API docs: https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#update-a-required-workflow +func (s *ActionsService) UpdateRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID int64, updateRequiredWorkflowOptions *CreateUpdateRequiredWorkflowOptions) (*Response, error) { + url := fmt.Sprintf("orgs/%v/actions/required_workflows/%v", org, requiredWorkflowID) + req, err := s.client.NewRequest("PATCH", url, updateRequiredWorkflowOptions) + if err != nil { + return nil, err + } + return s.client.Do(ctx, req, nil) +} + +// DeleteRequiredWorkflow deletes a required workflow in an org. +// +// GitHub API docs: https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#update-a-required-workflow +func (s *ActionsService) DeleteRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID int64) (*Response, error) { + url := fmt.Sprintf("orgs/%v/actions/required_workflows/%v", org, requiredWorkflowID) + req, err := s.client.NewRequest("DELETE", url, nil) + if err != nil { + return nil, err + } + return s.client.Do(ctx, req, nil) +} + +// ListRequiredWorkflowSelectedRepos lists the Repositories selected for a workflow. +// +// GitHub API docs: https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-selected-repositories-for-a-required-workflow +func (s *ActionsService) ListRequiredWorkflowSelectedRepos(ctx context.Context, org string, requiredWorkflowID int64, opts *ListOptions) (*RequiredWorkflowSelectedRepos, *Response, error) { + url := fmt.Sprintf("orgs/%v/actions/required_workflows/%v/repositories", org, requiredWorkflowID) + u, err := addOptions(url, opts) + if err != nil { + return nil, nil, err + } + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + requiredWorkflowRepos := new(RequiredWorkflowSelectedRepos) + resp, err := s.client.Do(ctx, req, &requiredWorkflowRepos) + if err != nil { + return nil, resp, err + } + + return requiredWorkflowRepos, resp, nil +} + +// SetRequiredWorkflowSelectedRepos sets the Repositories selected for a workflow. +// +// GitHub API docs: https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#sets-repositories-for-a-required-workflow +func (s *ActionsService) SetRequiredWorkflowSelectedRepos(ctx context.Context, org string, requiredWorkflowID int64, ids SelectedRepoIDs) (*Response, error) { + type repoIDs struct { + SelectedIDs SelectedRepoIDs `json:"selected_repository_ids"` + } + url := fmt.Sprintf("orgs/%v/actions/required_workflows/%v/repositories", org, requiredWorkflowID) + req, err := s.client.NewRequest("PUT", url, repoIDs{SelectedIDs: ids}) + if err != nil { + return nil, err + } + + return s.client.Do(ctx, req, nil) +} + +// AddRepoToRequiredWorkflow adds the Repository to a required workflow. +// +// GitHub API docs: https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#add-a-repository-to-a-required-workflow +func (s *ActionsService) AddRepoToRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID, repoID int64) (*Response, error) { + url := fmt.Sprintf("orgs/%v/actions/required_workflows/%v/repositories/%v", org, requiredWorkflowID, repoID) + req, err := s.client.NewRequest("PUT", url, nil) + if err != nil { + return nil, err + } + return s.client.Do(ctx, req, nil) +} + +// RemoveRepoFromRequiredWorkflow removes the Repository from a required workflow. +// +// GitHub API docs: https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#add-a-repository-to-a-required-workflow +func (s *ActionsService) RemoveRepoFromRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID, repoID int64) (*Response, error) { + url := fmt.Sprintf("orgs/%v/actions/required_workflows/%v/repositories/%v", org, requiredWorkflowID, repoID) + req, err := s.client.NewRequest("DELETE", url, nil) + if err != nil { + return nil, err + } + return s.client.Do(ctx, req, nil) +} + +// ListRepoRequiredWorkflows lists the RequiredWorkflows for a repo. +// +// Github API docs:https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-repository-required-workflows +func (s *ActionsService) ListRepoRequiredWorkflows(ctx context.Context, owner, repo string, opts *ListOptions) (*RepoRequiredWorkflows, *Response, error) { + url := fmt.Sprintf("repos/%v/%v/actions/required_workflows", owner, repo) + u, err := addOptions(url, opts) + if err != nil { + return nil, nil, err + } + + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + requiredWorkflows := new(RepoRequiredWorkflows) + resp, err := s.client.Do(ctx, req, &requiredWorkflows) + if err != nil { + return nil, resp, err + } + + return requiredWorkflows, resp, nil +} diff --git a/vendor/github.com/google/go-github/v50/github/actions_runner_groups.go b/vendor/github.com/google/go-github/v51/github/actions_runner_groups.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/actions_runner_groups.go rename to vendor/github.com/google/go-github/v51/github/actions_runner_groups.go diff --git a/vendor/github.com/google/go-github/v50/github/actions_runners.go b/vendor/github.com/google/go-github/v51/github/actions_runners.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/actions_runners.go rename to vendor/github.com/google/go-github/v51/github/actions_runners.go diff --git a/vendor/github.com/google/go-github/v50/github/actions_secrets.go b/vendor/github.com/google/go-github/v51/github/actions_secrets.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/actions_secrets.go rename to vendor/github.com/google/go-github/v51/github/actions_secrets.go diff --git a/vendor/github.com/google/go-github/v50/github/actions_variables.go b/vendor/github.com/google/go-github/v51/github/actions_variables.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/actions_variables.go rename to vendor/github.com/google/go-github/v51/github/actions_variables.go diff --git a/vendor/github.com/google/go-github/v50/github/actions_workflow_jobs.go b/vendor/github.com/google/go-github/v51/github/actions_workflow_jobs.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/actions_workflow_jobs.go rename to vendor/github.com/google/go-github/v51/github/actions_workflow_jobs.go diff --git a/vendor/github.com/google/go-github/v50/github/actions_workflow_runs.go b/vendor/github.com/google/go-github/v51/github/actions_workflow_runs.go similarity index 90% rename from vendor/github.com/google/go-github/v50/github/actions_workflow_runs.go rename to vendor/github.com/google/go-github/v51/github/actions_workflow_runs.go index 0cda90d41b..704048774e 100644 --- a/vendor/github.com/google/go-github/v50/github/actions_workflow_runs.go +++ b/vendor/github.com/google/go-github/v51/github/actions_workflow_runs.go @@ -55,12 +55,14 @@ type WorkflowRuns struct { // ListWorkflowRunsOptions specifies optional parameters to ListWorkflowRuns. type ListWorkflowRunsOptions struct { - Actor string `url:"actor,omitempty"` - Branch string `url:"branch,omitempty"` - Event string `url:"event,omitempty"` - Status string `url:"status,omitempty"` - Created string `url:"created,omitempty"` - HeadSHA string `url:"head_sha,omitempty"` + Actor string `url:"actor,omitempty"` + Branch string `url:"branch,omitempty"` + Event string `url:"event,omitempty"` + Status string `url:"status,omitempty"` + Created string `url:"created,omitempty"` + HeadSHA string `url:"head_sha,omitempty"` + ExcludePullRequests bool `url:"exclude_pull_requests,omitempty"` + CheckSuiteID int64 `url:"check_suite_id,omitempty"` ListOptions } @@ -204,6 +206,26 @@ func (s *ActionsService) GetWorkflowRunAttempt(ctx context.Context, owner, repo return run, resp, nil } +// GetWorkflowRunAttemptLogs gets a redirect URL to download a plain text file of logs for a workflow run for attempt number. +// +// GitHub API docs: https://docs.github.com/en/rest/actions/workflow-runs#download-workflow-run-attempt-logs +func (s *ActionsService) GetWorkflowRunAttemptLogs(ctx context.Context, owner, repo string, runID int64, attemptNumber int, followRedirects bool) (*url.URL, *Response, error) { + u := fmt.Sprintf("repos/%v/%v/actions/runs/%v/attempts/%v/logs", owner, repo, runID, attemptNumber) + + resp, err := s.client.roundTripWithOptionalFollowRedirect(ctx, u, followRedirects) + if err != nil { + return nil, nil, err + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusFound { + return nil, newResponse(resp), fmt.Errorf("unexpected status code: %s", resp.Status) + } + + parsedURL, err := url.Parse(resp.Header.Get("Location")) + return parsedURL, newResponse(resp), err +} + // RerunWorkflowByID re-runs a workflow by ID. // // GitHub API docs: https://docs.github.com/en/rest/actions/workflow-runs#re-run-a-workflow diff --git a/vendor/github.com/google/go-github/v50/github/actions_workflows.go b/vendor/github.com/google/go-github/v51/github/actions_workflows.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/actions_workflows.go rename to vendor/github.com/google/go-github/v51/github/actions_workflows.go diff --git a/vendor/github.com/google/go-github/v50/github/activity.go b/vendor/github.com/google/go-github/v51/github/activity.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/activity.go rename to vendor/github.com/google/go-github/v51/github/activity.go diff --git a/vendor/github.com/google/go-github/v50/github/activity_events.go b/vendor/github.com/google/go-github/v51/github/activity_events.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/activity_events.go rename to vendor/github.com/google/go-github/v51/github/activity_events.go diff --git a/vendor/github.com/google/go-github/v50/github/activity_notifications.go b/vendor/github.com/google/go-github/v51/github/activity_notifications.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/activity_notifications.go rename to vendor/github.com/google/go-github/v51/github/activity_notifications.go diff --git a/vendor/github.com/google/go-github/v50/github/activity_star.go b/vendor/github.com/google/go-github/v51/github/activity_star.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/activity_star.go rename to vendor/github.com/google/go-github/v51/github/activity_star.go diff --git a/vendor/github.com/google/go-github/v50/github/activity_watching.go b/vendor/github.com/google/go-github/v51/github/activity_watching.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/activity_watching.go rename to vendor/github.com/google/go-github/v51/github/activity_watching.go diff --git a/vendor/github.com/google/go-github/v50/github/admin.go b/vendor/github.com/google/go-github/v51/github/admin.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/admin.go rename to vendor/github.com/google/go-github/v51/github/admin.go diff --git a/vendor/github.com/google/go-github/v50/github/admin_orgs.go b/vendor/github.com/google/go-github/v51/github/admin_orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/admin_orgs.go rename to vendor/github.com/google/go-github/v51/github/admin_orgs.go diff --git a/vendor/github.com/google/go-github/v50/github/admin_stats.go b/vendor/github.com/google/go-github/v51/github/admin_stats.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/admin_stats.go rename to vendor/github.com/google/go-github/v51/github/admin_stats.go diff --git a/vendor/github.com/google/go-github/v50/github/admin_users.go b/vendor/github.com/google/go-github/v51/github/admin_users.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/admin_users.go rename to vendor/github.com/google/go-github/v51/github/admin_users.go diff --git a/vendor/github.com/google/go-github/v50/github/apps.go b/vendor/github.com/google/go-github/v51/github/apps.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/apps.go rename to vendor/github.com/google/go-github/v51/github/apps.go diff --git a/vendor/github.com/google/go-github/v50/github/apps_hooks.go b/vendor/github.com/google/go-github/v51/github/apps_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/apps_hooks.go rename to vendor/github.com/google/go-github/v51/github/apps_hooks.go diff --git a/vendor/github.com/google/go-github/v50/github/apps_hooks_deliveries.go b/vendor/github.com/google/go-github/v51/github/apps_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/apps_hooks_deliveries.go rename to vendor/github.com/google/go-github/v51/github/apps_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v50/github/apps_installation.go b/vendor/github.com/google/go-github/v51/github/apps_installation.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/apps_installation.go rename to vendor/github.com/google/go-github/v51/github/apps_installation.go diff --git a/vendor/github.com/google/go-github/v50/github/apps_manifest.go b/vendor/github.com/google/go-github/v51/github/apps_manifest.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/apps_manifest.go rename to vendor/github.com/google/go-github/v51/github/apps_manifest.go diff --git a/vendor/github.com/google/go-github/v50/github/apps_marketplace.go b/vendor/github.com/google/go-github/v51/github/apps_marketplace.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/apps_marketplace.go rename to vendor/github.com/google/go-github/v51/github/apps_marketplace.go diff --git a/vendor/github.com/google/go-github/v50/github/authorizations.go b/vendor/github.com/google/go-github/v51/github/authorizations.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/authorizations.go rename to vendor/github.com/google/go-github/v51/github/authorizations.go diff --git a/vendor/github.com/google/go-github/v50/github/billing.go b/vendor/github.com/google/go-github/v51/github/billing.go similarity index 95% rename from vendor/github.com/google/go-github/v50/github/billing.go rename to vendor/github.com/google/go-github/v51/github/billing.go index 2900a01670..7a76bf86fd 100644 --- a/vendor/github.com/google/go-github/v50/github/billing.go +++ b/vendor/github.com/google/go-github/v51/github/billing.go @@ -120,9 +120,14 @@ func (s *BillingService) GetStorageBillingOrg(ctx context.Context, org string) ( // GetAdvancedSecurityActiveCommittersOrg returns the GitHub Advanced Security active committers for an organization per repository. // -// GitHub API docs: https://docs.github.com/en/rest/billing#get-github-advanced-security-active-committers-for-an-organization -func (s *BillingService) GetAdvancedSecurityActiveCommittersOrg(ctx context.Context, org string) (*ActiveCommitters, *Response, error) { +// GitHub API docs: https://docs.github.com/en/enterprise-cloud@latest/rest/billing?apiVersion=2022-11-28#get-github-advanced-security-active-committers-for-an-organization +func (s *BillingService) GetAdvancedSecurityActiveCommittersOrg(ctx context.Context, org string, opts *ListOptions) (*ActiveCommitters, *Response, error) { u := fmt.Sprintf("orgs/%v/settings/billing/advanced-security", org) + u, err := addOptions(u, opts) + if err != nil { + return nil, nil, err + } + req, err := s.client.NewRequest("GET", u, nil) if err != nil { return nil, nil, err diff --git a/vendor/github.com/google/go-github/v50/github/checks.go b/vendor/github.com/google/go-github/v51/github/checks.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/checks.go rename to vendor/github.com/google/go-github/v51/github/checks.go diff --git a/vendor/github.com/google/go-github/v50/github/code-scanning.go b/vendor/github.com/google/go-github/v51/github/code-scanning.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/code-scanning.go rename to vendor/github.com/google/go-github/v51/github/code-scanning.go diff --git a/vendor/github.com/google/go-github/v50/github/dependabot.go b/vendor/github.com/google/go-github/v51/github/dependabot.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/dependabot.go rename to vendor/github.com/google/go-github/v51/github/dependabot.go diff --git a/vendor/github.com/google/go-github/v50/github/dependabot_alerts.go b/vendor/github.com/google/go-github/v51/github/dependabot_alerts.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/dependabot_alerts.go rename to vendor/github.com/google/go-github/v51/github/dependabot_alerts.go diff --git a/vendor/github.com/google/go-github/v50/github/dependabot_secrets.go b/vendor/github.com/google/go-github/v51/github/dependabot_secrets.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/dependabot_secrets.go rename to vendor/github.com/google/go-github/v51/github/dependabot_secrets.go diff --git a/vendor/github.com/google/go-github/v50/github/doc.go b/vendor/github.com/google/go-github/v51/github/doc.go similarity index 99% rename from vendor/github.com/google/go-github/v50/github/doc.go rename to vendor/github.com/google/go-github/v51/github/doc.go index 9adfea8fe9..4c76f0e0ff 100644 --- a/vendor/github.com/google/go-github/v50/github/doc.go +++ b/vendor/github.com/google/go-github/v51/github/doc.go @@ -8,7 +8,7 @@ Package github provides a client for using the GitHub API. Usage: - import "github.com/google/go-github/v50/github" // with go modules enabled (GO111MODULE=on or outside GOPATH) + import "github.com/google/go-github/v51/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/v50/github/enterprise.go b/vendor/github.com/google/go-github/v51/github/enterprise.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/enterprise.go rename to vendor/github.com/google/go-github/v51/github/enterprise.go diff --git a/vendor/github.com/google/go-github/v50/github/enterprise_actions_runners.go b/vendor/github.com/google/go-github/v51/github/enterprise_actions_runners.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/enterprise_actions_runners.go rename to vendor/github.com/google/go-github/v51/github/enterprise_actions_runners.go diff --git a/vendor/github.com/google/go-github/v50/github/enterprise_audit_log.go b/vendor/github.com/google/go-github/v51/github/enterprise_audit_log.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/enterprise_audit_log.go rename to vendor/github.com/google/go-github/v51/github/enterprise_audit_log.go diff --git a/vendor/github.com/google/go-github/v50/github/enterprise_code_security_and_analysis.go b/vendor/github.com/google/go-github/v51/github/enterprise_code_security_and_analysis.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/enterprise_code_security_and_analysis.go rename to vendor/github.com/google/go-github/v51/github/enterprise_code_security_and_analysis.go diff --git a/vendor/github.com/google/go-github/v50/github/event.go b/vendor/github.com/google/go-github/v51/github/event.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/event.go rename to vendor/github.com/google/go-github/v51/github/event.go diff --git a/vendor/github.com/google/go-github/v50/github/event_types.go b/vendor/github.com/google/go-github/v51/github/event_types.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/event_types.go rename to vendor/github.com/google/go-github/v51/github/event_types.go diff --git a/vendor/github.com/google/go-github/v50/github/gists.go b/vendor/github.com/google/go-github/v51/github/gists.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/gists.go rename to vendor/github.com/google/go-github/v51/github/gists.go diff --git a/vendor/github.com/google/go-github/v50/github/gists_comments.go b/vendor/github.com/google/go-github/v51/github/gists_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/gists_comments.go rename to vendor/github.com/google/go-github/v51/github/gists_comments.go diff --git a/vendor/github.com/google/go-github/v50/github/git.go b/vendor/github.com/google/go-github/v51/github/git.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/git.go rename to vendor/github.com/google/go-github/v51/github/git.go diff --git a/vendor/github.com/google/go-github/v50/github/git_blobs.go b/vendor/github.com/google/go-github/v51/github/git_blobs.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/git_blobs.go rename to vendor/github.com/google/go-github/v51/github/git_blobs.go diff --git a/vendor/github.com/google/go-github/v50/github/git_commits.go b/vendor/github.com/google/go-github/v51/github/git_commits.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/git_commits.go rename to vendor/github.com/google/go-github/v51/github/git_commits.go diff --git a/vendor/github.com/google/go-github/v50/github/git_refs.go b/vendor/github.com/google/go-github/v51/github/git_refs.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/git_refs.go rename to vendor/github.com/google/go-github/v51/github/git_refs.go diff --git a/vendor/github.com/google/go-github/v50/github/git_tags.go b/vendor/github.com/google/go-github/v51/github/git_tags.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/git_tags.go rename to vendor/github.com/google/go-github/v51/github/git_tags.go diff --git a/vendor/github.com/google/go-github/v50/github/git_trees.go b/vendor/github.com/google/go-github/v51/github/git_trees.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/git_trees.go rename to vendor/github.com/google/go-github/v51/github/git_trees.go diff --git a/vendor/github.com/google/go-github/v50/github/github-accessors.go b/vendor/github.com/google/go-github/v51/github/github-accessors.go similarity index 98% rename from vendor/github.com/google/go-github/v50/github/github-accessors.go rename to vendor/github.com/google/go-github/v51/github/github-accessors.go index beeb2defce..92a952efb3 100644 --- a/vendor/github.com/google/go-github/v50/github/github-accessors.go +++ b/vendor/github.com/google/go-github/v51/github/github-accessors.go @@ -4022,6 +4022,14 @@ func (c *CreateRunnerGroupRequest) GetVisibility() string { return *c.Visibility } +// GetCanAdminsBypass returns the CanAdminsBypass field if it's non-nil, zero value otherwise. +func (c *CreateUpdateEnvironment) GetCanAdminsBypass() bool { + if c == nil || c.CanAdminsBypass == nil { + return false + } + return *c.CanAdminsBypass +} + // GetDeploymentBranchPolicy returns the DeploymentBranchPolicy field. func (c *CreateUpdateEnvironment) GetDeploymentBranchPolicy() *BranchPolicy { if c == nil { @@ -4038,6 +4046,38 @@ func (c *CreateUpdateEnvironment) GetWaitTimer() int { return *c.WaitTimer } +// GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. +func (c *CreateUpdateRequiredWorkflowOptions) GetRepositoryID() int64 { + if c == nil || c.RepositoryID == nil { + return 0 + } + return *c.RepositoryID +} + +// GetScope returns the Scope field if it's non-nil, zero value otherwise. +func (c *CreateUpdateRequiredWorkflowOptions) GetScope() string { + if c == nil || c.Scope == nil { + return "" + } + return *c.Scope +} + +// GetSelectedRepositoryIDs returns the SelectedRepositoryIDs field. +func (c *CreateUpdateRequiredWorkflowOptions) GetSelectedRepositoryIDs() *SelectedRepoIDs { + if c == nil { + return nil + } + return c.SelectedRepositoryIDs +} + +// GetWorkflowFilePath returns the WorkflowFilePath field if it's non-nil, zero value otherwise. +func (c *CreateUpdateRequiredWorkflowOptions) GetWorkflowFilePath() string { + if c == nil || c.WorkflowFilePath == nil { + return "" + } + return *c.WorkflowFilePath +} + // GetBody returns the Body field if it's non-nil, zero value otherwise. func (c *CreateUserProjectOptions) GetBody() string { if c == nil || c.Body == nil { @@ -5590,6 +5630,14 @@ func (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningPushProtectionEnab return *e.SecretScanningPushProtectionEnabledForNewRepositories } +// GetCanAdminsBypass returns the CanAdminsBypass field if it's non-nil, zero value otherwise. +func (e *Environment) GetCanAdminsBypass() bool { + if e == nil || e.CanAdminsBypass == nil { + return false + } + return *e.CanAdminsBypass +} + // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. func (e *Environment) GetCreatedAt() Timestamp { if e == nil || e.CreatedAt == nil { @@ -8646,6 +8694,14 @@ func (j *Jobs) GetTotalCount() int { return *j.TotalCount } +// GetAddedBy returns the AddedBy field if it's non-nil, zero value otherwise. +func (k *Key) GetAddedBy() string { + if k == nil || k.AddedBy == nil { + return "" + } + return *k.AddedBy +} + // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. func (k *Key) GetCreatedAt() Timestamp { if k == nil || k.CreatedAt == nil { @@ -8670,6 +8726,14 @@ func (k *Key) GetKey() string { return *k.Key } +// GetLastUsed returns the LastUsed field if it's non-nil, zero value otherwise. +func (k *Key) GetLastUsed() Timestamp { + if k == nil || k.LastUsed == nil { + return Timestamp{} + } + return *k.LastUsed +} + // GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. func (k *Key) GetReadOnly() bool { if k == nil || k.ReadOnly == nil { @@ -10815,7 +10879,7 @@ func (o *Organization) GetNodeID() string { } // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. -func (o *Organization) GetOwnedPrivateRepos() int { +func (o *Organization) GetOwnedPrivateRepos() int64 { if o == nil || o.OwnedPrivateRepos == nil { return 0 } @@ -10887,7 +10951,7 @@ func (o *Organization) GetSecretScanningPushProtectionEnabledForNewRepos() bool } // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. -func (o *Organization) GetTotalPrivateRepos() int { +func (o *Organization) GetTotalPrivateRepos() int64 { if o == nil || o.TotalPrivateRepos == nil { return 0 } @@ -11046,6 +11110,94 @@ func (o *OrgBlockEvent) GetSender() *User { return o.Sender } +// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. +func (o *OrgRequiredWorkflow) GetCreatedAt() Timestamp { + if o == nil || o.CreatedAt == nil { + return Timestamp{} + } + return *o.CreatedAt +} + +// GetID returns the ID field if it's non-nil, zero value otherwise. +func (o *OrgRequiredWorkflow) GetID() int64 { + if o == nil || o.ID == nil { + return 0 + } + return *o.ID +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (o *OrgRequiredWorkflow) GetName() string { + if o == nil || o.Name == nil { + return "" + } + return *o.Name +} + +// GetPath returns the Path field if it's non-nil, zero value otherwise. +func (o *OrgRequiredWorkflow) GetPath() string { + if o == nil || o.Path == nil { + return "" + } + return *o.Path +} + +// GetRef returns the Ref field if it's non-nil, zero value otherwise. +func (o *OrgRequiredWorkflow) GetRef() string { + if o == nil || o.Ref == nil { + return "" + } + return *o.Ref +} + +// GetRepository returns the Repository field. +func (o *OrgRequiredWorkflow) GetRepository() *Repository { + if o == nil { + return nil + } + return o.Repository +} + +// GetScope returns the Scope field if it's non-nil, zero value otherwise. +func (o *OrgRequiredWorkflow) GetScope() string { + if o == nil || o.Scope == nil { + return "" + } + return *o.Scope +} + +// GetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise. +func (o *OrgRequiredWorkflow) GetSelectedRepositoriesURL() string { + if o == nil || o.SelectedRepositoriesURL == nil { + return "" + } + return *o.SelectedRepositoriesURL +} + +// GetState returns the State field if it's non-nil, zero value otherwise. +func (o *OrgRequiredWorkflow) GetState() string { + if o == nil || o.State == nil { + return "" + } + return *o.State +} + +// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. +func (o *OrgRequiredWorkflow) GetUpdatedAt() Timestamp { + if o == nil || o.UpdatedAt == nil { + return Timestamp{} + } + return *o.UpdatedAt +} + +// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. +func (o *OrgRequiredWorkflows) GetTotalCount() int { + if o == nil || o.TotalCount == nil { + return 0 + } + return *o.TotalCount +} + // GetDisabledOrgs returns the DisabledOrgs field if it's non-nil, zero value otherwise. func (o *OrgStats) GetDisabledOrgs() int { if o == nil || o.DisabledOrgs == nil { @@ -11750,6 +11902,14 @@ func (p *PageBuildEvent) GetSender() *User { return p.Sender } +// GetBuildType returns the BuildType field if it's non-nil, zero value otherwise. +func (p *Pages) GetBuildType() string { + if p == nil || p.BuildType == nil { + return "" + } + return *p.BuildType +} + // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. func (p *Pages) GetCNAME() string { if p == nil || p.CNAME == nil { @@ -11942,6 +12102,14 @@ func (p *PageStats) GetTotalPages() int { return *p.TotalPages } +// GetBuildType returns the BuildType field if it's non-nil, zero value otherwise. +func (p *PagesUpdate) GetBuildType() string { + if p == nil || p.BuildType == nil { + return "" + } + return *p.BuildType +} + // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. func (p *PagesUpdate) GetCNAME() string { if p == nil || p.CNAME == nil { @@ -12055,7 +12223,7 @@ func (p *Plan) GetName() string { } // GetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise. -func (p *Plan) GetPrivateRepos() int { +func (p *Plan) GetPrivateRepos() int64 { if p == nil || p.PrivateRepos == nil { return 0 } @@ -15454,6 +15622,102 @@ func (r *RepoName) GetFrom() string { return *r.From } +// GetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflow) GetBadgeURL() string { + if r == nil || r.BadgeURL == nil { + return "" + } + return *r.BadgeURL +} + +// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflow) GetCreatedAt() Timestamp { + if r == nil || r.CreatedAt == nil { + return Timestamp{} + } + return *r.CreatedAt +} + +// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflow) GetHTMLURL() string { + if r == nil || r.HTMLURL == nil { + return "" + } + return *r.HTMLURL +} + +// GetID returns the ID field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflow) GetID() int64 { + if r == nil || r.ID == nil { + return 0 + } + return *r.ID +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflow) GetName() string { + if r == nil || r.Name == nil { + return "" + } + return *r.Name +} + +// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflow) GetNodeID() string { + if r == nil || r.NodeID == nil { + return "" + } + return *r.NodeID +} + +// GetPath returns the Path field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflow) GetPath() string { + if r == nil || r.Path == nil { + return "" + } + return *r.Path +} + +// GetSourceRepository returns the SourceRepository field. +func (r *RepoRequiredWorkflow) GetSourceRepository() *Repository { + if r == nil { + return nil + } + return r.SourceRepository +} + +// GetState returns the State field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflow) GetState() string { + if r == nil || r.State == nil { + return "" + } + return *r.State +} + +// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflow) GetUpdatedAt() Timestamp { + if r == nil || r.UpdatedAt == nil { + return Timestamp{} + } + return *r.UpdatedAt +} + +// GetURL returns the URL field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflow) GetURL() string { + if r == nil || r.URL == nil { + return "" + } + return *r.URL +} + +// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. +func (r *RepoRequiredWorkflows) GetTotalCount() int { + if r == nil || r.TotalCount == nil { + return 0 + } + return *r.TotalCount +} + // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. func (r *RepositoriesSearchResult) GetIncompleteResults() bool { if r == nil || r.IncompleteResults == nil { @@ -17470,6 +17734,14 @@ func (r *RequiredStatusChecksRequest) GetStrict() bool { return *r.Strict } +// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. +func (r *RequiredWorkflowSelectedRepos) GetTotalCount() int { + if r == nil || r.TotalCount == nil { + return 0 + } + return *r.TotalCount +} + // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. func (r *ReviewersRequest) GetNodeID() string { if r == nil || r.NodeID == nil { @@ -20383,7 +20655,7 @@ func (u *User) GetOrganizationsURL() string { } // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. -func (u *User) GetOwnedPrivateRepos() int { +func (u *User) GetOwnedPrivateRepos() int64 { if u == nil || u.OwnedPrivateRepos == nil { return 0 } @@ -20487,7 +20759,7 @@ func (u *User) GetSuspendedAt() Timestamp { } // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. -func (u *User) GetTotalPrivateRepos() int { +func (u *User) GetTotalPrivateRepos() int64 { if u == nil || u.TotalPrivateRepos == nil { return 0 } diff --git a/vendor/github.com/google/go-github/v50/github/github.go b/vendor/github.com/google/go-github/v51/github/github.go similarity index 99% rename from vendor/github.com/google/go-github/v50/github/github.go rename to vendor/github.com/google/go-github/v51/github/github.go index 4c4827e53c..324e155e22 100644 --- a/vendor/github.com/google/go-github/v50/github/github.go +++ b/vendor/github.com/google/go-github/v51/github/github.go @@ -28,7 +28,7 @@ import ( ) const ( - Version = "v50.2.0" + Version = "v51.0.0" defaultAPIVersion = "2022-11-28" defaultBaseURL = "https://api.github.com/" diff --git a/vendor/github.com/google/go-github/v50/github/gitignore.go b/vendor/github.com/google/go-github/v51/github/gitignore.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/gitignore.go rename to vendor/github.com/google/go-github/v51/github/gitignore.go diff --git a/vendor/github.com/google/go-github/v50/github/interactions.go b/vendor/github.com/google/go-github/v51/github/interactions.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/interactions.go rename to vendor/github.com/google/go-github/v51/github/interactions.go diff --git a/vendor/github.com/google/go-github/v50/github/interactions_orgs.go b/vendor/github.com/google/go-github/v51/github/interactions_orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/interactions_orgs.go rename to vendor/github.com/google/go-github/v51/github/interactions_orgs.go diff --git a/vendor/github.com/google/go-github/v50/github/interactions_repos.go b/vendor/github.com/google/go-github/v51/github/interactions_repos.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/interactions_repos.go rename to vendor/github.com/google/go-github/v51/github/interactions_repos.go diff --git a/vendor/github.com/google/go-github/v50/github/issue_import.go b/vendor/github.com/google/go-github/v51/github/issue_import.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/issue_import.go rename to vendor/github.com/google/go-github/v51/github/issue_import.go diff --git a/vendor/github.com/google/go-github/v50/github/issues.go b/vendor/github.com/google/go-github/v51/github/issues.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/issues.go rename to vendor/github.com/google/go-github/v51/github/issues.go diff --git a/vendor/github.com/google/go-github/v50/github/issues_assignees.go b/vendor/github.com/google/go-github/v51/github/issues_assignees.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/issues_assignees.go rename to vendor/github.com/google/go-github/v51/github/issues_assignees.go diff --git a/vendor/github.com/google/go-github/v50/github/issues_comments.go b/vendor/github.com/google/go-github/v51/github/issues_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/issues_comments.go rename to vendor/github.com/google/go-github/v51/github/issues_comments.go diff --git a/vendor/github.com/google/go-github/v50/github/issues_events.go b/vendor/github.com/google/go-github/v51/github/issues_events.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/issues_events.go rename to vendor/github.com/google/go-github/v51/github/issues_events.go diff --git a/vendor/github.com/google/go-github/v50/github/issues_labels.go b/vendor/github.com/google/go-github/v51/github/issues_labels.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/issues_labels.go rename to vendor/github.com/google/go-github/v51/github/issues_labels.go diff --git a/vendor/github.com/google/go-github/v50/github/issues_milestones.go b/vendor/github.com/google/go-github/v51/github/issues_milestones.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/issues_milestones.go rename to vendor/github.com/google/go-github/v51/github/issues_milestones.go diff --git a/vendor/github.com/google/go-github/v50/github/issues_timeline.go b/vendor/github.com/google/go-github/v51/github/issues_timeline.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/issues_timeline.go rename to vendor/github.com/google/go-github/v51/github/issues_timeline.go diff --git a/vendor/github.com/google/go-github/v50/github/licenses.go b/vendor/github.com/google/go-github/v51/github/licenses.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/licenses.go rename to vendor/github.com/google/go-github/v51/github/licenses.go diff --git a/vendor/github.com/google/go-github/v50/github/messages.go b/vendor/github.com/google/go-github/v51/github/messages.go similarity index 96% rename from vendor/github.com/google/go-github/v50/github/messages.go rename to vendor/github.com/google/go-github/v51/github/messages.go index 0943b9e987..925e73e9a6 100644 --- a/vendor/github.com/google/go-github/v50/github/messages.go +++ b/vendor/github.com/google/go-github/v51/github/messages.go @@ -148,13 +148,13 @@ func messageMAC(signature string) ([]byte, func() hash.Hash, error) { return buf, hashFunc, nil } -// ValidatePayload validates an incoming GitHub Webhook event request body +// ValidatePayloadFromBody validates an incoming GitHub Webhook event request body // and returns the (JSON) payload. // The Content-Type header of the payload can be "application/json" or "application/x-www-form-urlencoded". // If the Content-Type is neither then an error is returned. // secretToken is the GitHub Webhook secret token. -// If your webhook does not contain a secret token, you can pass nil or an empty slice. -// This is intended for local development purposes only and all webhooks should ideally set up a secret token. +// If your webhook does not contain a secret token, you can pass an empty secretToken. +// Webhooks without a secret token are not secure and should be avoided. // // Example usage: // @@ -201,9 +201,8 @@ func ValidatePayloadFromBody(contentType string, readable io.Reader, signature s return nil, fmt.Errorf("webhook request has unsupported Content-Type %q", contentType) } - // Only validate the signature if a secret token exists. This is intended for - // local development only and all webhooks should ideally set up a secret token. - if len(secretToken) > 0 { + // Validate the signature if present or if one is expected (secretToken is non-empty). + if len(secretToken) > 0 || len(signature) > 0 { if err := ValidateSignature(signature, body, secretToken); err != nil { return nil, err } diff --git a/vendor/github.com/google/go-github/v50/github/migrations.go b/vendor/github.com/google/go-github/v51/github/migrations.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/migrations.go rename to vendor/github.com/google/go-github/v51/github/migrations.go diff --git a/vendor/github.com/google/go-github/v50/github/migrations_source_import.go b/vendor/github.com/google/go-github/v51/github/migrations_source_import.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/migrations_source_import.go rename to vendor/github.com/google/go-github/v51/github/migrations_source_import.go diff --git a/vendor/github.com/google/go-github/v50/github/migrations_user.go b/vendor/github.com/google/go-github/v51/github/migrations_user.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/migrations_user.go rename to vendor/github.com/google/go-github/v51/github/migrations_user.go diff --git a/vendor/github.com/google/go-github/v50/github/misc.go b/vendor/github.com/google/go-github/v51/github/misc.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/misc.go rename to vendor/github.com/google/go-github/v51/github/misc.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs.go b/vendor/github.com/google/go-github/v51/github/orgs.go similarity index 95% rename from vendor/github.com/google/go-github/v50/github/orgs.go rename to vendor/github.com/google/go-github/v51/github/orgs.go index 487405778f..0c7e361b3f 100644 --- a/vendor/github.com/google/go-github/v50/github/orgs.go +++ b/vendor/github.com/google/go-github/v51/github/orgs.go @@ -36,8 +36,8 @@ type Organization struct { Following *int `json:"following,omitempty"` CreatedAt *Timestamp `json:"created_at,omitempty"` UpdatedAt *Timestamp `json:"updated_at,omitempty"` - TotalPrivateRepos *int `json:"total_private_repos,omitempty"` - OwnedPrivateRepos *int `json:"owned_private_repos,omitempty"` + TotalPrivateRepos *int64 `json:"total_private_repos,omitempty"` + OwnedPrivateRepos *int64 `json:"owned_private_repos,omitempty"` PrivateGists *int `json:"private_gists,omitempty"` DiskUsage *int `json:"disk_usage,omitempty"` Collaborators *int `json:"collaborators,omitempty"` @@ -121,7 +121,7 @@ type Plan struct { Name *string `json:"name,omitempty"` Space *int `json:"space,omitempty"` Collaborators *int `json:"collaborators,omitempty"` - PrivateRepos *int `json:"private_repos,omitempty"` + PrivateRepos *int64 `json:"private_repos,omitempty"` FilledSeats *int `json:"filled_seats,omitempty"` Seats *int `json:"seats,omitempty"` } @@ -262,6 +262,19 @@ func (s *OrganizationsService) Edit(ctx context.Context, name string, org *Organ return o, resp, nil } +// Delete an organization by name. +// +// GitHub API docs: https://docs.github.com/en/rest/orgs/orgs#delete-an-organization +func (s *OrganizationsService) Delete(ctx context.Context, org string) (*Response, error) { + u := fmt.Sprintf("orgs/%v", org) + req, err := s.client.NewRequest("DELETE", u, nil) + if err != nil { + return nil, err + } + + return s.client.Do(ctx, req, nil) +} + // ListInstallations lists installations for an organization. // // GitHub API docs: https://docs.github.com/en/rest/orgs/orgs#list-app-installations-for-an-organization diff --git a/vendor/github.com/google/go-github/v50/github/orgs_actions_allowed.go b/vendor/github.com/google/go-github/v51/github/orgs_actions_allowed.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_actions_allowed.go rename to vendor/github.com/google/go-github/v51/github/orgs_actions_allowed.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_actions_permissions.go b/vendor/github.com/google/go-github/v51/github/orgs_actions_permissions.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_actions_permissions.go rename to vendor/github.com/google/go-github/v51/github/orgs_actions_permissions.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_audit_log.go b/vendor/github.com/google/go-github/v51/github/orgs_audit_log.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_audit_log.go rename to vendor/github.com/google/go-github/v51/github/orgs_audit_log.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_custom_roles.go b/vendor/github.com/google/go-github/v51/github/orgs_custom_roles.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_custom_roles.go rename to vendor/github.com/google/go-github/v51/github/orgs_custom_roles.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_hooks.go b/vendor/github.com/google/go-github/v51/github/orgs_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_hooks.go rename to vendor/github.com/google/go-github/v51/github/orgs_hooks.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_hooks_deliveries.go b/vendor/github.com/google/go-github/v51/github/orgs_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_hooks_deliveries.go rename to vendor/github.com/google/go-github/v51/github/orgs_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_members.go b/vendor/github.com/google/go-github/v51/github/orgs_members.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_members.go rename to vendor/github.com/google/go-github/v51/github/orgs_members.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_outside_collaborators.go b/vendor/github.com/google/go-github/v51/github/orgs_outside_collaborators.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_outside_collaborators.go rename to vendor/github.com/google/go-github/v51/github/orgs_outside_collaborators.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_packages.go b/vendor/github.com/google/go-github/v51/github/orgs_packages.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_packages.go rename to vendor/github.com/google/go-github/v51/github/orgs_packages.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_projects.go b/vendor/github.com/google/go-github/v51/github/orgs_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_projects.go rename to vendor/github.com/google/go-github/v51/github/orgs_projects.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_security_managers.go b/vendor/github.com/google/go-github/v51/github/orgs_security_managers.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_security_managers.go rename to vendor/github.com/google/go-github/v51/github/orgs_security_managers.go diff --git a/vendor/github.com/google/go-github/v50/github/orgs_users_blocking.go b/vendor/github.com/google/go-github/v51/github/orgs_users_blocking.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/orgs_users_blocking.go rename to vendor/github.com/google/go-github/v51/github/orgs_users_blocking.go diff --git a/vendor/github.com/google/go-github/v50/github/packages.go b/vendor/github.com/google/go-github/v51/github/packages.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/packages.go rename to vendor/github.com/google/go-github/v51/github/packages.go diff --git a/vendor/github.com/google/go-github/v50/github/projects.go b/vendor/github.com/google/go-github/v51/github/projects.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/projects.go rename to vendor/github.com/google/go-github/v51/github/projects.go diff --git a/vendor/github.com/google/go-github/v50/github/pulls.go b/vendor/github.com/google/go-github/v51/github/pulls.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/pulls.go rename to vendor/github.com/google/go-github/v51/github/pulls.go diff --git a/vendor/github.com/google/go-github/v50/github/pulls_comments.go b/vendor/github.com/google/go-github/v51/github/pulls_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/pulls_comments.go rename to vendor/github.com/google/go-github/v51/github/pulls_comments.go diff --git a/vendor/github.com/google/go-github/v50/github/pulls_reviewers.go b/vendor/github.com/google/go-github/v51/github/pulls_reviewers.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/pulls_reviewers.go rename to vendor/github.com/google/go-github/v51/github/pulls_reviewers.go diff --git a/vendor/github.com/google/go-github/v50/github/pulls_reviews.go b/vendor/github.com/google/go-github/v51/github/pulls_reviews.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/pulls_reviews.go rename to vendor/github.com/google/go-github/v51/github/pulls_reviews.go diff --git a/vendor/github.com/google/go-github/v50/github/pulls_threads.go b/vendor/github.com/google/go-github/v51/github/pulls_threads.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/pulls_threads.go rename to vendor/github.com/google/go-github/v51/github/pulls_threads.go diff --git a/vendor/github.com/google/go-github/v50/github/reactions.go b/vendor/github.com/google/go-github/v51/github/reactions.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/reactions.go rename to vendor/github.com/google/go-github/v51/github/reactions.go diff --git a/vendor/github.com/google/go-github/v50/github/repos.go b/vendor/github.com/google/go-github/v51/github/repos.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos.go rename to vendor/github.com/google/go-github/v51/github/repos.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_actions_access.go b/vendor/github.com/google/go-github/v51/github/repos_actions_access.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_actions_access.go rename to vendor/github.com/google/go-github/v51/github/repos_actions_access.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_actions_allowed.go b/vendor/github.com/google/go-github/v51/github/repos_actions_allowed.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_actions_allowed.go rename to vendor/github.com/google/go-github/v51/github/repos_actions_allowed.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_actions_permissions.go b/vendor/github.com/google/go-github/v51/github/repos_actions_permissions.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_actions_permissions.go rename to vendor/github.com/google/go-github/v51/github/repos_actions_permissions.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_autolinks.go b/vendor/github.com/google/go-github/v51/github/repos_autolinks.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_autolinks.go rename to vendor/github.com/google/go-github/v51/github/repos_autolinks.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_codeowners.go b/vendor/github.com/google/go-github/v51/github/repos_codeowners.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_codeowners.go rename to vendor/github.com/google/go-github/v51/github/repos_codeowners.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_collaborators.go b/vendor/github.com/google/go-github/v51/github/repos_collaborators.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_collaborators.go rename to vendor/github.com/google/go-github/v51/github/repos_collaborators.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_comments.go b/vendor/github.com/google/go-github/v51/github/repos_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_comments.go rename to vendor/github.com/google/go-github/v51/github/repos_comments.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_commits.go b/vendor/github.com/google/go-github/v51/github/repos_commits.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_commits.go rename to vendor/github.com/google/go-github/v51/github/repos_commits.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_community_health.go b/vendor/github.com/google/go-github/v51/github/repos_community_health.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_community_health.go rename to vendor/github.com/google/go-github/v51/github/repos_community_health.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_contents.go b/vendor/github.com/google/go-github/v51/github/repos_contents.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_contents.go rename to vendor/github.com/google/go-github/v51/github/repos_contents.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_deployment_branch_policies.go b/vendor/github.com/google/go-github/v51/github/repos_deployment_branch_policies.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_deployment_branch_policies.go rename to vendor/github.com/google/go-github/v51/github/repos_deployment_branch_policies.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_deployments.go b/vendor/github.com/google/go-github/v51/github/repos_deployments.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_deployments.go rename to vendor/github.com/google/go-github/v51/github/repos_deployments.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_environments.go b/vendor/github.com/google/go-github/v51/github/repos_environments.go similarity index 96% rename from vendor/github.com/google/go-github/v50/github/repos_environments.go rename to vendor/github.com/google/go-github/v51/github/repos_environments.go index 2e85fdf99c..2399a42c74 100644 --- a/vendor/github.com/google/go-github/v50/github/repos_environments.go +++ b/vendor/github.com/google/go-github/v51/github/repos_environments.go @@ -28,6 +28,7 @@ type Environment struct { HTMLURL *string `json:"html_url,omitempty"` CreatedAt *Timestamp `json:"created_at,omitempty"` UpdatedAt *Timestamp `json:"updated_at,omitempty"` + CanAdminsBypass *bool `json:"can_admins_bypass,omitempty"` ProtectionRules []*ProtectionRule `json:"protection_rules,omitempty"` } @@ -147,11 +148,15 @@ func (s *RepositoriesService) GetEnvironment(ctx context.Context, owner, repo, n // MarshalJSON implements the json.Marshaler interface. // As the only way to clear a WaitTimer is to set it to 0, a missing WaitTimer object should default to 0, not null. +// As the default value for CanAdminsBypass is true, a nil value here marshals to true. func (c *CreateUpdateEnvironment) MarshalJSON() ([]byte, error) { type Alias CreateUpdateEnvironment if c.WaitTimer == nil { c.WaitTimer = Int(0) } + if c.CanAdminsBypass == nil { + c.CanAdminsBypass = Bool(true) + } return json.Marshal(&struct { *Alias }{ @@ -166,6 +171,7 @@ func (c *CreateUpdateEnvironment) MarshalJSON() ([]byte, error) { type CreateUpdateEnvironment struct { WaitTimer *int `json:"wait_timer"` Reviewers []*EnvReviewers `json:"reviewers"` + CanAdminsBypass *bool `json:"can_admins_bypass"` DeploymentBranchPolicy *BranchPolicy `json:"deployment_branch_policy"` } diff --git a/vendor/github.com/google/go-github/v50/github/repos_forks.go b/vendor/github.com/google/go-github/v51/github/repos_forks.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_forks.go rename to vendor/github.com/google/go-github/v51/github/repos_forks.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_hooks.go b/vendor/github.com/google/go-github/v51/github/repos_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_hooks.go rename to vendor/github.com/google/go-github/v51/github/repos_hooks.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_hooks_deliveries.go b/vendor/github.com/google/go-github/v51/github/repos_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_hooks_deliveries.go rename to vendor/github.com/google/go-github/v51/github/repos_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_invitations.go b/vendor/github.com/google/go-github/v51/github/repos_invitations.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_invitations.go rename to vendor/github.com/google/go-github/v51/github/repos_invitations.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_keys.go b/vendor/github.com/google/go-github/v51/github/repos_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_keys.go rename to vendor/github.com/google/go-github/v51/github/repos_keys.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_lfs.go b/vendor/github.com/google/go-github/v51/github/repos_lfs.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_lfs.go rename to vendor/github.com/google/go-github/v51/github/repos_lfs.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_merging.go b/vendor/github.com/google/go-github/v51/github/repos_merging.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_merging.go rename to vendor/github.com/google/go-github/v51/github/repos_merging.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_pages.go b/vendor/github.com/google/go-github/v51/github/repos_pages.go similarity index 94% rename from vendor/github.com/google/go-github/v50/github/repos_pages.go rename to vendor/github.com/google/go-github/v51/github/repos_pages.go index 737cec0f22..845de8a0db 100644 --- a/vendor/github.com/google/go-github/v50/github/repos_pages.go +++ b/vendor/github.com/google/go-github/v51/github/repos_pages.go @@ -17,6 +17,7 @@ type Pages struct { CNAME *string `json:"cname,omitempty"` Custom404 *bool `json:"custom_404,omitempty"` HTMLURL *string `json:"html_url,omitempty"` + BuildType *string `json:"build_type,omitempty"` Source *PagesSource `json:"source,omitempty"` Public *bool `json:"public,omitempty"` HTTPSCertificate *PagesHTTPSCertificate `json:"https_certificate,omitempty"` @@ -58,7 +59,8 @@ type PagesHTTPSCertificate struct { // createPagesRequest is a subset of Pages and is used internally // by EnablePages to pass only the known fields for the endpoint. type createPagesRequest struct { - Source *PagesSource `json:"source,omitempty"` + BuildType *string `json:"build_type,omitempty"` + Source *PagesSource `json:"source,omitempty"` } // EnablePages enables GitHub Pages for the named repo. @@ -68,7 +70,8 @@ func (s *RepositoriesService) EnablePages(ctx context.Context, owner, repo strin u := fmt.Sprintf("repos/%v/%v/pages", owner, repo) pagesReq := &createPagesRequest{ - Source: pages.Source, + BuildType: pages.BuildType, + Source: pages.Source, } req, err := s.client.NewRequest("POST", u, pagesReq) @@ -92,6 +95,10 @@ type PagesUpdate struct { // CNAME represents a custom domain for the repository. // Leaving CNAME empty will remove the custom domain. CNAME *string `json:"cname"` + // BuildType is optional and can either be "legacy" or "workflow". + // "workflow" - You are using a github workflow to build your pages. + // "legacy" - You are deploying from a branch. + BuildType *string `json:"build_type,omitempty"` // Source must include the branch name, and may optionally specify the subdirectory "/docs". // Possible values for Source.Branch are usually "gh-pages", "main", and "master", // or any other existing branch name. diff --git a/vendor/github.com/google/go-github/v50/github/repos_prereceive_hooks.go b/vendor/github.com/google/go-github/v51/github/repos_prereceive_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_prereceive_hooks.go rename to vendor/github.com/google/go-github/v51/github/repos_prereceive_hooks.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_projects.go b/vendor/github.com/google/go-github/v51/github/repos_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_projects.go rename to vendor/github.com/google/go-github/v51/github/repos_projects.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_releases.go b/vendor/github.com/google/go-github/v51/github/repos_releases.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_releases.go rename to vendor/github.com/google/go-github/v51/github/repos_releases.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_stats.go b/vendor/github.com/google/go-github/v51/github/repos_stats.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_stats.go rename to vendor/github.com/google/go-github/v51/github/repos_stats.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_statuses.go b/vendor/github.com/google/go-github/v51/github/repos_statuses.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_statuses.go rename to vendor/github.com/google/go-github/v51/github/repos_statuses.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_tags.go b/vendor/github.com/google/go-github/v51/github/repos_tags.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_tags.go rename to vendor/github.com/google/go-github/v51/github/repos_tags.go diff --git a/vendor/github.com/google/go-github/v50/github/repos_traffic.go b/vendor/github.com/google/go-github/v51/github/repos_traffic.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/repos_traffic.go rename to vendor/github.com/google/go-github/v51/github/repos_traffic.go diff --git a/vendor/github.com/google/go-github/v50/github/scim.go b/vendor/github.com/google/go-github/v51/github/scim.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/scim.go rename to vendor/github.com/google/go-github/v51/github/scim.go diff --git a/vendor/github.com/google/go-github/v50/github/search.go b/vendor/github.com/google/go-github/v51/github/search.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/search.go rename to vendor/github.com/google/go-github/v51/github/search.go diff --git a/vendor/github.com/google/go-github/v50/github/secret_scanning.go b/vendor/github.com/google/go-github/v51/github/secret_scanning.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/secret_scanning.go rename to vendor/github.com/google/go-github/v51/github/secret_scanning.go diff --git a/vendor/github.com/google/go-github/v50/github/strings.go b/vendor/github.com/google/go-github/v51/github/strings.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/strings.go rename to vendor/github.com/google/go-github/v51/github/strings.go diff --git a/vendor/github.com/google/go-github/v50/github/teams.go b/vendor/github.com/google/go-github/v51/github/teams.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/teams.go rename to vendor/github.com/google/go-github/v51/github/teams.go diff --git a/vendor/github.com/google/go-github/v50/github/teams_discussion_comments.go b/vendor/github.com/google/go-github/v51/github/teams_discussion_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/teams_discussion_comments.go rename to vendor/github.com/google/go-github/v51/github/teams_discussion_comments.go diff --git a/vendor/github.com/google/go-github/v50/github/teams_discussions.go b/vendor/github.com/google/go-github/v51/github/teams_discussions.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/teams_discussions.go rename to vendor/github.com/google/go-github/v51/github/teams_discussions.go diff --git a/vendor/github.com/google/go-github/v50/github/teams_members.go b/vendor/github.com/google/go-github/v51/github/teams_members.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/teams_members.go rename to vendor/github.com/google/go-github/v51/github/teams_members.go diff --git a/vendor/github.com/google/go-github/v50/github/timestamp.go b/vendor/github.com/google/go-github/v51/github/timestamp.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/timestamp.go rename to vendor/github.com/google/go-github/v51/github/timestamp.go diff --git a/vendor/github.com/google/go-github/v50/github/users.go b/vendor/github.com/google/go-github/v51/github/users.go similarity index 98% rename from vendor/github.com/google/go-github/v50/github/users.go rename to vendor/github.com/google/go-github/v51/github/users.go index d40d23e90f..1b0670103b 100644 --- a/vendor/github.com/google/go-github/v50/github/users.go +++ b/vendor/github.com/google/go-github/v51/github/users.go @@ -41,8 +41,8 @@ type User struct { SuspendedAt *Timestamp `json:"suspended_at,omitempty"` Type *string `json:"type,omitempty"` SiteAdmin *bool `json:"site_admin,omitempty"` - TotalPrivateRepos *int `json:"total_private_repos,omitempty"` - OwnedPrivateRepos *int `json:"owned_private_repos,omitempty"` + TotalPrivateRepos *int64 `json:"total_private_repos,omitempty"` + OwnedPrivateRepos *int64 `json:"owned_private_repos,omitempty"` PrivateGists *int `json:"private_gists,omitempty"` DiskUsage *int `json:"disk_usage,omitempty"` Collaborators *int `json:"collaborators,omitempty"` diff --git a/vendor/github.com/google/go-github/v50/github/users_administration.go b/vendor/github.com/google/go-github/v51/github/users_administration.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/users_administration.go rename to vendor/github.com/google/go-github/v51/github/users_administration.go diff --git a/vendor/github.com/google/go-github/v50/github/users_blocking.go b/vendor/github.com/google/go-github/v51/github/users_blocking.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/users_blocking.go rename to vendor/github.com/google/go-github/v51/github/users_blocking.go diff --git a/vendor/github.com/google/go-github/v50/github/users_emails.go b/vendor/github.com/google/go-github/v51/github/users_emails.go similarity index 73% rename from vendor/github.com/google/go-github/v50/github/users_emails.go rename to vendor/github.com/google/go-github/v51/github/users_emails.go index be7e0f819e..67bd210e8d 100644 --- a/vendor/github.com/google/go-github/v50/github/users_emails.go +++ b/vendor/github.com/google/go-github/v51/github/users_emails.go @@ -70,3 +70,28 @@ func (s *UsersService) DeleteEmails(ctx context.Context, emails []string) (*Resp return s.client.Do(ctx, req, nil) } + +// SetEmailVisibility sets the visibility for the primary email address of the authenticated user. +// `visibility` can be "private" or "public". +// +// GitHub API docs: https://docs.github.com/en/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user +func (s *UsersService) SetEmailVisibility(ctx context.Context, visibility string) ([]*UserEmail, *Response, error) { + u := "user/email/visibility" + + updateVisiblilityReq := &UserEmail{ + Visibility: &visibility, + } + + req, err := s.client.NewRequest("PATCH", u, updateVisiblilityReq) + if err != nil { + return nil, nil, err + } + + var e []*UserEmail + resp, err := s.client.Do(ctx, req, &e) + if err != nil { + return nil, resp, err + } + + return e, resp, nil +} diff --git a/vendor/github.com/google/go-github/v50/github/users_followers.go b/vendor/github.com/google/go-github/v51/github/users_followers.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/users_followers.go rename to vendor/github.com/google/go-github/v51/github/users_followers.go diff --git a/vendor/github.com/google/go-github/v50/github/users_gpg_keys.go b/vendor/github.com/google/go-github/v51/github/users_gpg_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/users_gpg_keys.go rename to vendor/github.com/google/go-github/v51/github/users_gpg_keys.go diff --git a/vendor/github.com/google/go-github/v50/github/users_keys.go b/vendor/github.com/google/go-github/v51/github/users_keys.go similarity index 96% rename from vendor/github.com/google/go-github/v50/github/users_keys.go rename to vendor/github.com/google/go-github/v51/github/users_keys.go index 59d26cdefa..b49b8e4b4e 100644 --- a/vendor/github.com/google/go-github/v50/github/users_keys.go +++ b/vendor/github.com/google/go-github/v51/github/users_keys.go @@ -19,6 +19,8 @@ type Key struct { ReadOnly *bool `json:"read_only,omitempty"` Verified *bool `json:"verified,omitempty"` CreatedAt *Timestamp `json:"created_at,omitempty"` + AddedBy *string `json:"added_by,omitempty"` + LastUsed *Timestamp `json:"last_used,omitempty"` } func (k Key) String() string { diff --git a/vendor/github.com/google/go-github/v50/github/users_packages.go b/vendor/github.com/google/go-github/v51/github/users_packages.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/users_packages.go rename to vendor/github.com/google/go-github/v51/github/users_packages.go diff --git a/vendor/github.com/google/go-github/v50/github/users_projects.go b/vendor/github.com/google/go-github/v51/github/users_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/users_projects.go rename to vendor/github.com/google/go-github/v51/github/users_projects.go diff --git a/vendor/github.com/google/go-github/v50/github/users_ssh_signing_keys.go b/vendor/github.com/google/go-github/v51/github/users_ssh_signing_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/users_ssh_signing_keys.go rename to vendor/github.com/google/go-github/v51/github/users_ssh_signing_keys.go diff --git a/vendor/github.com/google/go-github/v50/github/with_appengine.go b/vendor/github.com/google/go-github/v51/github/with_appengine.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/with_appengine.go rename to vendor/github.com/google/go-github/v51/github/with_appengine.go diff --git a/vendor/github.com/google/go-github/v50/github/without_appengine.go b/vendor/github.com/google/go-github/v51/github/without_appengine.go similarity index 100% rename from vendor/github.com/google/go-github/v50/github/without_appengine.go rename to vendor/github.com/google/go-github/v51/github/without_appengine.go diff --git a/vendor/modules.txt b/vendor/modules.txt index 2c91d73391..b06a04f714 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -332,9 +332,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/v50 v50.2.0 +# github.com/google/go-github/v51 v51.0.0 ## explicit; go 1.17 -github.com/google/go-github/v50/github +github.com/google/go-github/v51/github # github.com/google/go-querystring v1.1.0 ## explicit; go 1.10 github.com/google/go-querystring/query