From e97b39ba3f574f90f4f1ed5cbac358bbc52acf58 Mon Sep 17 00:00:00 2001 From: Reed Loden Date: Thu, 19 May 2022 15:45:56 -0700 Subject: [PATCH] Upgrade go-github to v44.0.0 (#1138) * Upgrade go-github to v44.0.0 * Update to google/go-github v44.1.0 Co-authored-by: Keegan Campbell --- github/config.go | 2 +- github/data_source_github_branch.go | 2 +- github/data_source_github_collaborators.go | 2 +- github/data_source_github_organization.go | 2 +- ...ce_github_organization_team_sync_groups.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 +- github/data_source_github_repository_file.go | 2 +- ..._source_github_repository_pull_requests.go | 2 +- github/data_source_github_team.go | 2 +- github/repository_utils.go | 2 +- ...ource_github_actions_environment_secret.go | 2 +- ...github_actions_organization_permissions.go | 2 +- ...urce_github_actions_organization_secret.go | 2 +- ...ctions_organization_secret_repositories.go | 2 +- .../resource_github_actions_runner_group.go | 2 +- github/resource_github_actions_secret.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 +- github/resource_github_emu_group_mapping.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 +- .../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_repository.go | 2 +- ...ce_github_repository_autolink_reference.go | 2 +- ...resource_github_repository_collaborator.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 +- 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_permissions.go | 2 +- go.mod | 2 +- go.sum | 12 +- .../github.com/google/go-cmp/cmp/compare.go | 2 + .../google/go-cmp/cmp/report_compare.go | 5 +- .../google/go-cmp/cmp/report_reflect.go | 10 +- .../google/go-github/{v43 => v44}/AUTHORS | 0 .../google/go-github/{v43 => v44}/LICENSE | 0 .../go-github/{v43 => v44}/github/actions.go | 0 .../{v43 => v44}/github/actions_artifacts.go | 31 +- .../github/actions_runner_groups.go | 0 .../{v43 => v44}/github/actions_runners.go | 0 .../{v43 => v44}/github/actions_secrets.go | 0 .../github/actions_workflow_jobs.go | 31 +- .../github/actions_workflow_runs.go | 32 +- .../{v43 => v44}/github/actions_workflows.go | 0 .../go-github/{v43 => v44}/github/activity.go | 0 .../{v43 => v44}/github/activity_events.go | 0 .../github/activity_notifications.go | 0 .../{v43 => v44}/github/activity_star.go | 3 + .../{v43 => v44}/github/activity_watching.go | 0 .../go-github/{v43 => v44}/github/admin.go | 0 .../{v43 => v44}/github/admin_orgs.go | 0 .../{v43 => v44}/github/admin_stats.go | 0 .../{v43 => v44}/github/admin_users.go | 0 .../go-github/{v43 => v44}/github/apps.go | 0 .../{v43 => v44}/github/apps_hooks.go | 0 .../github/apps_hooks_deliveries.go | 0 .../{v43 => v44}/github/apps_installation.go | 0 .../{v43 => v44}/github/apps_manifest.go | 0 .../{v43 => v44}/github/apps_marketplace.go | 0 .../{v43 => v44}/github/authorizations.go | 0 .../go-github/{v43 => v44}/github/billing.go | 14 +- .../go-github/{v43 => v44}/github/checks.go | 0 .../{v43 => v44}/github/code-scanning.go | 64 ++- .../{v43 => v44}/github/dependabot.go | 0 .../{v43 => v44}/github/dependabot_secrets.go | 0 .../go-github/{v43 => v44}/github/doc.go | 2 +- .../{v43 => v44}/github/enterprise.go | 0 .../github/enterprise_actions_runners.go | 0 .../github/enterprise_audit_log.go | 0 .../go-github/{v43 => v44}/github/event.go | 2 + .../{v43 => v44}/github/event_types.go | 87 +++ .../go-github/{v43 => v44}/github/gists.go | 4 + .../{v43 => v44}/github/gists_comments.go | 0 .../go-github/{v43 => v44}/github/git.go | 0 .../{v43 => v44}/github/git_blobs.go | 19 +- .../{v43 => v44}/github/git_commits.go | 0 .../go-github/{v43 => v44}/github/git_refs.go | 0 .../go-github/{v43 => v44}/github/git_tags.go | 12 +- .../{v43 => v44}/github/git_trees.go | 0 .../{v43 => v44}/github/github-accessors.go | 544 ++++++++++++------ .../go-github/{v43 => v44}/github/github.go | 35 ++ .../{v43 => v44}/github/gitignore.go | 0 .../{v43 => v44}/github/interactions.go | 0 .../{v43 => v44}/github/interactions_orgs.go | 0 .../{v43 => v44}/github/interactions_repos.go | 0 .../{v43 => v44}/github/issue_import.go | 0 .../go-github/{v43 => v44}/github/issues.go | 0 .../{v43 => v44}/github/issues_assignees.go | 14 +- .../{v43 => v44}/github/issues_comments.go | 0 .../{v43 => v44}/github/issues_events.go | 0 .../{v43 => v44}/github/issues_labels.go | 0 .../{v43 => v44}/github/issues_milestones.go | 0 .../{v43 => v44}/github/issues_timeline.go | 6 +- .../go-github/{v43 => v44}/github/licenses.go | 0 .../go-github/{v43 => v44}/github/messages.go | 1 + .../{v43 => v44}/github/migrations.go | 0 .../github/migrations_source_import.go | 0 .../{v43 => v44}/github/migrations_user.go | 0 .../go-github/{v43 => v44}/github/misc.go | 0 .../go-github/v44/github/org_custom_roles.go | 46 ++ .../go-github/{v43 => v44}/github/orgs.go | 0 .../github/orgs_actions_allowed.go | 11 +- .../github/orgs_actions_permissions.go | 7 +- .../{v43 => v44}/github/orgs_audit_log.go | 0 .../{v43 => v44}/github/orgs_hooks.go | 16 +- .../github/orgs_hooks_deliveries.go | 0 .../{v43 => v44}/github/orgs_members.go | 3 + .../github/orgs_outside_collaborators.go | 0 .../{v43 => v44}/github/orgs_packages.go | 0 .../{v43 => v44}/github/orgs_projects.go | 0 .../github/orgs_users_blocking.go | 0 .../go-github/{v43 => v44}/github/packages.go | 0 .../go-github/{v43 => v44}/github/projects.go | 0 .../go-github/{v43 => v44}/github/pulls.go | 0 .../{v43 => v44}/github/pulls_comments.go | 0 .../{v43 => v44}/github/pulls_reviewers.go | 0 .../{v43 => v44}/github/pulls_reviews.go | 0 .../go-github/v44/github/pulls_threads.go | 17 + .../{v43 => v44}/github/reactions.go | 0 .../go-github/{v43 => v44}/github/repos.go | 41 +- .../v44/github/repos_actions_allowed.go | 49 ++ .../v44/github/repos_actions_permissions.go | 62 ++ .../{v43 => v44}/github/repos_autolinks.go | 0 .../github/repos_collaborators.go | 4 + .../{v43 => v44}/github/repos_comments.go | 0 .../{v43 => v44}/github/repos_commits.go | 0 .../github/repos_community_health.go | 0 .../{v43 => v44}/github/repos_contents.go | 54 +- .../{v43 => v44}/github/repos_deployments.go | 0 .../{v43 => v44}/github/repos_environments.go | 0 .../{v43 => v44}/github/repos_forks.go | 0 .../{v43 => v44}/github/repos_hooks.go | 55 +- .../github/repos_hooks_deliveries.go | 19 + .../{v43 => v44}/github/repos_invitations.go | 0 .../{v43 => v44}/github/repos_keys.go | 0 .../{v43 => v44}/github/repos_merging.go | 0 .../{v43 => v44}/github/repos_pages.go | 0 .../github/repos_prereceive_hooks.go | 0 .../{v43 => v44}/github/repos_projects.go | 0 .../{v43 => v44}/github/repos_releases.go | 0 .../{v43 => v44}/github/repos_stats.go | 10 +- .../{v43 => v44}/github/repos_statuses.go | 0 .../{v43 => v44}/github/repos_traffic.go | 0 .../go-github/{v43 => v44}/github/scim.go | 0 .../go-github/{v43 => v44}/github/search.go | 43 +- .../{v43 => v44}/github/secret_scanning.go | 0 .../go-github/{v43 => v44}/github/strings.go | 0 .../go-github/{v43 => v44}/github/teams.go | 7 +- .../github/teams_discussion_comments.go | 0 .../{v43 => v44}/github/teams_discussions.go | 0 .../{v43 => v44}/github/teams_members.go | 0 .../{v43 => v44}/github/timestamp.go | 0 .../go-github/{v43 => v44}/github/users.go | 0 .../github/users_administration.go | 0 .../{v43 => v44}/github/users_blocking.go | 0 .../{v43 => v44}/github/users_emails.go | 0 .../{v43 => v44}/github/users_followers.go | 0 .../{v43 => v44}/github/users_gpg_keys.go | 0 .../{v43 => v44}/github/users_keys.go | 0 .../{v43 => v44}/github/users_packages.go | 0 .../{v43 => v44}/github/users_projects.go | 0 .../{v43 => v44}/github/with_appengine.go | 0 .../{v43 => v44}/github/without_appengine.go | 0 vendor/modules.txt | 6 +- 194 files changed, 1034 insertions(+), 466 deletions(-) rename vendor/github.com/google/go-github/{v43 => v44}/AUTHORS (100%) rename vendor/github.com/google/go-github/{v43 => v44}/LICENSE (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/actions.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/actions_artifacts.go (84%) rename vendor/github.com/google/go-github/{v43 => v44}/github/actions_runner_groups.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/actions_runners.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/actions_secrets.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/actions_workflow_jobs.go (84%) rename vendor/github.com/google/go-github/{v43 => v44}/github/actions_workflow_runs.go (90%) rename vendor/github.com/google/go-github/{v43 => v44}/github/actions_workflows.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/activity.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/activity_events.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/activity_notifications.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/activity_star.go (99%) rename vendor/github.com/google/go-github/{v43 => v44}/github/activity_watching.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/admin.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/admin_orgs.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/admin_stats.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/admin_users.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/apps.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/apps_hooks.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/apps_hooks_deliveries.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/apps_installation.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/apps_manifest.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/apps_marketplace.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/authorizations.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/billing.go (96%) rename vendor/github.com/google/go-github/{v43 => v44}/github/checks.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/code-scanning.go (82%) rename vendor/github.com/google/go-github/{v43 => v44}/github/dependabot.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/dependabot_secrets.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/doc.go (99%) rename vendor/github.com/google/go-github/{v43 => v44}/github/enterprise.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/enterprise_actions_runners.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/enterprise_audit_log.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/event.go (98%) rename vendor/github.com/google/go-github/{v43 => v44}/github/event_types.go (93%) rename vendor/github.com/google/go-github/{v43 => v44}/github/gists.go (99%) rename vendor/github.com/google/go-github/{v43 => v44}/github/gists_comments.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/git.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/git_blobs.go (90%) rename vendor/github.com/google/go-github/{v43 => v44}/github/git_commits.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/git_refs.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/git_tags.go (94%) rename vendor/github.com/google/go-github/{v43 => v44}/github/git_trees.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/github-accessors.go (98%) rename vendor/github.com/google/go-github/{v43 => v44}/github/github.go (97%) rename vendor/github.com/google/go-github/{v43 => v44}/github/gitignore.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/interactions.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/interactions_orgs.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/interactions_repos.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/issue_import.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/issues.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/issues_assignees.go (95%) rename vendor/github.com/google/go-github/{v43 => v44}/github/issues_comments.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/issues_events.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/issues_labels.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/issues_milestones.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/issues_timeline.go (98%) rename vendor/github.com/google/go-github/{v43 => v44}/github/licenses.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/messages.go (99%) rename vendor/github.com/google/go-github/{v43 => v44}/github/migrations.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/migrations_source_import.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/migrations_user.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/misc.go (100%) create mode 100644 vendor/github.com/google/go-github/v44/github/org_custom_roles.go rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs_actions_allowed.go (89%) rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs_actions_permissions.go (96%) rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs_audit_log.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs_hooks.go (96%) rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs_hooks_deliveries.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs_members.go (99%) rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs_outside_collaborators.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs_packages.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs_projects.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/orgs_users_blocking.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/packages.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/projects.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/pulls.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/pulls_comments.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/pulls_reviewers.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/pulls_reviews.go (100%) create mode 100644 vendor/github.com/google/go-github/v44/github/pulls_threads.go rename vendor/github.com/google/go-github/{v43 => v44}/github/reactions.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos.go (98%) create mode 100644 vendor/github.com/google/go-github/v44/github/repos_actions_allowed.go create mode 100644 vendor/github.com/google/go-github/v44/github/repos_actions_permissions.go rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_autolinks.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_collaborators.go (99%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_comments.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_commits.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_community_health.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_contents.go (93%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_deployments.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_environments.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_forks.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_hooks.go (78%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_hooks_deliveries.go (85%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_invitations.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_keys.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_merging.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_pages.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_prereceive_hooks.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_projects.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_releases.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_stats.go (98%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_statuses.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/repos_traffic.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/scim.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/search.go (96%) rename vendor/github.com/google/go-github/{v43 => v44}/github/secret_scanning.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/strings.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/teams.go (99%) rename vendor/github.com/google/go-github/{v43 => v44}/github/teams_discussion_comments.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/teams_discussions.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/teams_members.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/timestamp.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/users.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/users_administration.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/users_blocking.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/users_emails.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/users_followers.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/users_gpg_keys.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/users_keys.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/users_packages.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/users_projects.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/with_appengine.go (100%) rename vendor/github.com/google/go-github/{v43 => v44}/github/without_appengine.go (100%) diff --git a/github/config.go b/github/config.go index 1251b1400a..f9aba8e8ca 100644 --- a/github/config.go +++ b/github/config.go @@ -8,7 +8,7 @@ import ( "path" "time" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/logging" "github.com/shurcooL/githubv4" "golang.org/x/oauth2" diff --git a/github/data_source_github_branch.go b/github/data_source_github_branch.go index bb84f516ef..a5d152fd2f 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/v43/github" + "github.com/google/go-github/v44/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 8f5427046c..3b456a88dc 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/data_source_github_organization.go b/github/data_source_github_organization.go index 37604e0dc9..003d307199 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_organization_team_sync_groups.go b/github/data_source_github_organization_team_sync_groups.go index 850e8a706f..9e7b7cfb5c 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/v43/github" + "github.com/google/go-github/v44/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 e5c87076f0..9c197bacac 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/v43/github" + "github.com/google/go-github/v44/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 1237464813..b0df84c3ba 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/v43/github" + "github.com/google/go-github/v44/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 dbf96d64eb..a7aedacedc 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/v43/github" + "github.com/google/go-github/v44/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 67f1b22c19..53ebb9aa11 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/v43/github" + "github.com/google/go-github/v44/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 4ae30142ae..6d2b68d0b5 100644 --- a/github/data_source_github_repository_file.go +++ b/github/data_source_github_repository_file.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/data_source_github_repository_pull_requests.go b/github/data_source_github_repository_pull_requests.go index 6d8e8145ab..e963f5ab4f 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) diff --git a/github/data_source_github_team.go b/github/data_source_github_team.go index b9a97872eb..f93079bdea 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/repository_utils.go b/github/repository_utils.go index fb2c9f6e35..f5847919af 100644 --- a/github/repository_utils.go +++ b/github/repository_utils.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/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 f3d273505b..be8ccaf95a 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/v43/github" + "github.com/google/go-github/v44/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_permissions.go b/github/resource_github_actions_organization_permissions.go index bb2ba39354..4195275cf9 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/v43/github" + "github.com/google/go-github/v44/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 254deb04b2..3a2ff823db 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/v43/github" + "github.com/google/go-github/v44/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 3e39b96197..cf284da058 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_actions_runner_group.go b/github/resource_github_actions_runner_group.go index e77afe566e..1c97797338 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/v43/github" + "github.com/google/go-github/v44/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 f2595f5b8c..d53e12d9a8 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "golang.org/x/crypto/nacl/box" ) diff --git a/github/resource_github_app_installation_repository.go b/github/resource_github_app_installation_repository.go index 596066d9d6..06e3be74af 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_branch.go b/github/resource_github_branch.go index 3bd7e9c4e8..b0cca3f9c0 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/v43/github" + "github.com/google/go-github/v44/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 b087ce077b..a843df4549 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/v43/github" + "github.com/google/go-github/v44/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 8cde59ae95..659ce0b70b 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/v43/github" + "github.com/google/go-github/v44/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 ac82f141cd..5103829995 100644 --- a/github/resource_github_branch_protection_v3_utils.go +++ b/github/resource_github_branch_protection_v3_utils.go @@ -7,7 +7,7 @@ import ( "log" "strings" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_emu_group_mapping.go b/github/resource_github_emu_group_mapping.go index df3b412515..a4d6faebdf 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_issue.go b/github/resource_github_issue.go index 56b0f43c52..5a7f1bb7be 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/v43/github" + "github.com/google/go-github/v44/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 da515b3543..6e4da60dc6 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_membership.go b/github/resource_github_membership.go index 1f466b96b6..4aba16f5a8 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/v43/github" + "github.com/google/go-github/v44/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 100e77668f..3a3c4af24e 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/v43/github" + "github.com/google/go-github/v44/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 d12517ed95..785315d958 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/v43/github" + "github.com/google/go-github/v44/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 3cbfd58e52..bf1bc130d1 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" ) diff --git a/github/resource_github_organization_webhook.go b/github/resource_github_organization_webhook.go index a1ca185bb6..156a42b7dc 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/v43/github" + "github.com/google/go-github/v44/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 5b8bd1394b..3952adc0d1 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/v43/github" + "github.com/google/go-github/v44/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 6e7df6302b..aac2a1943c 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/v43/github" + "github.com/google/go-github/v44/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 62ae08f8a1..e113b70f0b 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" ) diff --git a/github/resource_github_repository.go b/github/resource_github_repository.go index 38567d5d45..57baa7604e 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/v43/github" + "github.com/google/go-github/v44/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 59e3723f5f..0e7e6c72cc 100644 --- a/github/resource_github_repository_autolink_reference.go +++ b/github/resource_github_repository_autolink_reference.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/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 a1f8ad16f5..d5d4cf2221 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_repository_deploy_key.go b/github/resource_github_repository_deploy_key.go index 91a8113839..ba80fda216 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/v43/github" + "github.com/google/go-github/v44/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 c2dd7b2f71..6ee4d93cd2 100644 --- a/github/resource_github_repository_environment.go +++ b/github/resource_github_repository_environment.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/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 f9a923f88e..70e708bc40 100644 --- a/github/resource_github_repository_file.go +++ b/github/resource_github_repository_file.go @@ -7,7 +7,7 @@ import ( "fmt" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/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 7e0c430177..fdb0456a0b 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/v43/github" + "github.com/google/go-github/v44/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 9db834a374..1984d5dc14 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/v43/github" + "github.com/google/go-github/v44/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 826b64aa21..55cd66c1cf 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/v43/github" + "github.com/google/go-github/v44/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 8040abc649..53b34d6380 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_github_team.go b/github/resource_github_team.go index 1661e45c81..93edefa9f3 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/v43/github" + "github.com/google/go-github/v44/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 906c22cdcb..601a113617 100644 --- a/github/resource_github_team_members.go +++ b/github/resource_github_team_members.go @@ -6,7 +6,7 @@ import ( "reflect" "strconv" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/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 2db2243702..6a342baf36 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/v43/github" + "github.com/google/go-github/v44/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 ad712229da..28bef5c848 100644 --- a/github/resource_github_team_membership.go +++ b/github/resource_github_team_membership.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/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 054f69f9ca..5da2dbd4cb 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/v43/github" + "github.com/google/go-github/v44/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 f9784ccdb6..e53e4795ca 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/v43/github" + "github.com/google/go-github/v44/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 075b8a3cd5..c58fd36bfb 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/v43/github" + "github.com/google/go-github/v44/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 d6339cfee0..a622bdfc6f 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/v43/github" + "github.com/google/go-github/v44/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 68acfc4b83..47f3522631 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/v43/github" + "github.com/google/go-github/v44/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 15bae317d4..a426a370ad 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/resource_organization_block.go b/github/resource_organization_block.go index 5dfd4d23ae..2769a747c4 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/v43/github" + "github.com/google/go-github/v44/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) diff --git a/github/transport.go b/github/transport.go index b8f3f29d16..e9515aa919 100644 --- a/github/transport.go +++ b/github/transport.go @@ -9,7 +9,7 @@ import ( "sync" "time" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/github" ) const ( diff --git a/github/transport_test.go b/github/transport_test.go index aa74737f42..f2b5efc6a3 100644 --- a/github/transport_test.go +++ b/github/transport_test.go @@ -10,7 +10,7 @@ import ( "net/url" "testing" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/github" ) func TestEtagTransport(t *testing.T) { diff --git a/github/util_permissions.go b/github/util_permissions.go index 41479b54d9..1395e4868f 100644 --- a/github/util_permissions.go +++ b/github/util_permissions.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/google/go-github/v43/github" + "github.com/google/go-github/v44/github" ) const ( diff --git a/go.mod b/go.mod index 6c0918d3d5..0158a5ad17 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.16 require ( github.com/client9/misspell v0.3.4 github.com/golangci/golangci-lint v1.25.1 - github.com/google/go-github/v43 v43.0.0 + github.com/google/go-github/v44 v44.1.0 github.com/hashicorp/go-getter v1.4.2-0.20200106182914-9813cbd4eb02 // indirect github.com/hashicorp/hcl/v2 v2.3.0 // indirect github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7 // indirect diff --git a/go.sum b/go.sum index 27e80196cc..a5f0b19b34 100644 --- a/go.sum +++ b/go.sum @@ -42,7 +42,6 @@ github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bombsimon/wsl/v3 v3.0.0 h1:w9f49xQatuaeTJFaNP4SpiWSR5vfT6IstPtM62JjcqA= github.com/bombsimon/wsl/v3 v3.0.0/go.mod h1:st10JtZYLE4D5sC7b8xV4zTKZwAQjCH/Hy2Pm1FNZIc= -github.com/bradleyfalzon/ghinstallation/v2 v2.0.4/go.mod h1:B40qPqJxWE0jDZgOR1JmaMy+4AY1eBP+IByOvqyAKp0= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI= @@ -107,7 +106,6 @@ github.com/gofrs/flock v0.0.0-20190320160742-5135e617513b/go.mod h1:F1TvTiK9OcQq github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1 h1:/s5zKNz0uPFCZ5hddgPdo2TK2TVrUNMn0OOX8/aZMTE= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -157,12 +155,10 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o= -github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= -github.com/google/go-github/v41 v41.0.0/go.mod h1:XgmCA5H323A9rtgExdTcnDkcqp6S30AVACCBDOonIxg= -github.com/google/go-github/v43 v43.0.0 h1:y+GL7LIsAIF2NZlJ46ZoC/D1W1ivZasT0lnWHMYPZ+U= -github.com/google/go-github/v43 v43.0.0/go.mod h1:ZkTvvmCXBvsfPpTHXnH/d2hP9Y0cTbvN9kr5xqyXOIc= +github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-github/v44 v44.1.0 h1:shWPaufgdhr+Ad4eo/pZv9ORTxFpsxPEPEuuXAKIQGA= +github.com/google/go-github/v44 v44.1.0/go.mod h1:iWn00mWcP6PRWHhXm0zuFJ8wbEjE5AGO5D5HXYM4zgw= 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/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= diff --git a/vendor/github.com/google/go-cmp/cmp/compare.go b/vendor/github.com/google/go-cmp/cmp/compare.go index 2a5446762c..fd2b3a42b2 100644 --- a/vendor/github.com/google/go-cmp/cmp/compare.go +++ b/vendor/github.com/google/go-cmp/cmp/compare.go @@ -40,6 +40,8 @@ import ( "github.com/google/go-cmp/cmp/internal/value" ) +// TODO(≥go1.18): Use any instead of interface{}. + // Equal reports whether x and y are equal by recursively applying the // following rules in the given order to x and y and all of their sub-values: // diff --git a/vendor/github.com/google/go-cmp/cmp/report_compare.go b/vendor/github.com/google/go-cmp/cmp/report_compare.go index 104bb30538..1ef65ac1db 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_compare.go +++ b/vendor/github.com/google/go-cmp/cmp/report_compare.go @@ -116,7 +116,10 @@ func (opts formatOptions) FormatDiff(v *valueNode, ptrs *pointerReferences) (out } // For leaf nodes, format the value based on the reflect.Values alone. - if v.MaxDepth == 0 { + // As a special case, treat equal []byte as a leaf nodes. + isBytes := v.Type.Kind() == reflect.Slice && v.Type.Elem() == reflect.TypeOf(byte(0)) + isEqualBytes := isBytes && v.NumDiff+v.NumIgnored+v.NumTransformed == 0 + if v.MaxDepth == 0 || isEqualBytes { switch opts.DiffMode { case diffUnknown, diffIdentical: // Format Equal. diff --git a/vendor/github.com/google/go-cmp/cmp/report_reflect.go b/vendor/github.com/google/go-cmp/cmp/report_reflect.go index 76c04fdbd6..287b893588 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_reflect.go +++ b/vendor/github.com/google/go-cmp/cmp/report_reflect.go @@ -211,7 +211,7 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, if len(b) > 0 && utf8.Valid(b) && len(bytes.TrimFunc(b, isPrintSpace)) == 0 { out = opts.formatString("", string(b)) skipType = true - return opts.WithTypeMode(emitType).FormatType(t, out) + return opts.FormatType(t, out) } } @@ -282,7 +282,12 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, } defer ptrs.Pop() - skipType = true // Let the underlying value print the type instead + // Skip the name only if this is an unnamed pointer type. + // Otherwise taking the address of a value does not reproduce + // the named pointer type. + if v.Type().Name() == "" { + skipType = true // Let the underlying value print the type instead + } out = opts.FormatValue(v.Elem(), t.Kind(), ptrs) out = wrapTrunkReference(ptrRef, opts.PrintAddresses, out) out = &textWrap{Prefix: "&", Value: out} @@ -293,7 +298,6 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, } // Interfaces accept different concrete types, // so configure the underlying value to explicitly print the type. - skipType = true // Print the concrete type instead return opts.WithTypeMode(emitType).FormatValue(v.Elem(), t.Kind(), ptrs) default: panic(fmt.Sprintf("%v kind not handled", v.Kind())) diff --git a/vendor/github.com/google/go-github/v43/AUTHORS b/vendor/github.com/google/go-github/v44/AUTHORS similarity index 100% rename from vendor/github.com/google/go-github/v43/AUTHORS rename to vendor/github.com/google/go-github/v44/AUTHORS diff --git a/vendor/github.com/google/go-github/v43/LICENSE b/vendor/github.com/google/go-github/v44/LICENSE similarity index 100% rename from vendor/github.com/google/go-github/v43/LICENSE rename to vendor/github.com/google/go-github/v44/LICENSE diff --git a/vendor/github.com/google/go-github/v43/github/actions.go b/vendor/github.com/google/go-github/v44/github/actions.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/actions.go rename to vendor/github.com/google/go-github/v44/github/actions.go diff --git a/vendor/github.com/google/go-github/v43/github/actions_artifacts.go b/vendor/github.com/google/go-github/v44/github/actions_artifacts.go similarity index 84% rename from vendor/github.com/google/go-github/v43/github/actions_artifacts.go rename to vendor/github.com/google/go-github/v44/github/actions_artifacts.go index 4aa7dc4404..2925921208 100644 --- a/vendor/github.com/google/go-github/v43/github/actions_artifacts.go +++ b/vendor/github.com/google/go-github/v44/github/actions_artifacts.go @@ -110,45 +110,20 @@ func (s *ActionsService) GetArtifact(ctx context.Context, owner, repo string, ar func (s *ActionsService) DownloadArtifact(ctx context.Context, owner, repo string, artifactID int64, followRedirects bool) (*url.URL, *Response, error) { u := fmt.Sprintf("repos/%v/%v/actions/artifacts/%v/zip", owner, repo, artifactID) - resp, err := s.getDownloadArtifactFromURL(ctx, u, followRedirects) + 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), nil } -func (s *ActionsService) getDownloadArtifactFromURL(ctx context.Context, u string, followRedirects bool) (*http.Response, error) { - req, err := s.client.NewRequest("GET", u, nil) - if err != nil { - return nil, err - } - - var resp *http.Response - // Use http.DefaultTransport if no custom Transport is configured - req = withContext(ctx, req) - if s.client.client.Transport == nil { - resp, err = http.DefaultTransport.RoundTrip(req) - } else { - resp, err = s.client.client.Transport.RoundTrip(req) - } - if err != nil { - return nil, err - } - resp.Body.Close() - - // If redirect response is returned, follow it - if followRedirects && resp.StatusCode == http.StatusMovedPermanently { - u = resp.Header.Get("Location") - resp, err = s.getDownloadArtifactFromURL(ctx, u, false) - } - return resp, err -} - // DeleteArtifact deletes a workflow run artifact. // // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-an-artifact diff --git a/vendor/github.com/google/go-github/v43/github/actions_runner_groups.go b/vendor/github.com/google/go-github/v44/github/actions_runner_groups.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/actions_runner_groups.go rename to vendor/github.com/google/go-github/v44/github/actions_runner_groups.go diff --git a/vendor/github.com/google/go-github/v43/github/actions_runners.go b/vendor/github.com/google/go-github/v44/github/actions_runners.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/actions_runners.go rename to vendor/github.com/google/go-github/v44/github/actions_runners.go diff --git a/vendor/github.com/google/go-github/v43/github/actions_secrets.go b/vendor/github.com/google/go-github/v44/github/actions_secrets.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/actions_secrets.go rename to vendor/github.com/google/go-github/v44/github/actions_secrets.go diff --git a/vendor/github.com/google/go-github/v43/github/actions_workflow_jobs.go b/vendor/github.com/google/go-github/v44/github/actions_workflow_jobs.go similarity index 84% rename from vendor/github.com/google/go-github/v43/github/actions_workflow_jobs.go rename to vendor/github.com/google/go-github/v44/github/actions_workflow_jobs.go index 66b8ff6edb..ad0e7b6e2a 100644 --- a/vendor/github.com/google/go-github/v43/github/actions_workflow_jobs.go +++ b/vendor/github.com/google/go-github/v44/github/actions_workflow_jobs.go @@ -114,41 +114,16 @@ func (s *ActionsService) GetWorkflowJobByID(ctx context.Context, owner, repo str func (s *ActionsService) GetWorkflowJobLogs(ctx context.Context, owner, repo string, jobID int64, followRedirects bool) (*url.URL, *Response, error) { u := fmt.Sprintf("repos/%v/%v/actions/jobs/%v/logs", owner, repo, jobID) - resp, err := s.getWorkflowLogsFromURL(ctx, u, followRedirects) + 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 } - -func (s *ActionsService) getWorkflowLogsFromURL(ctx context.Context, u string, followRedirects bool) (*http.Response, error) { - req, err := s.client.NewRequest("GET", u, nil) - if err != nil { - return nil, err - } - - var resp *http.Response - // Use http.DefaultTransport if no custom Transport is configured - req = withContext(ctx, req) - if s.client.client.Transport == nil { - resp, err = http.DefaultTransport.RoundTrip(req) - } else { - resp, err = s.client.client.Transport.RoundTrip(req) - } - if err != nil { - return nil, err - } - resp.Body.Close() - - // If redirect response is returned, follow it - if followRedirects && resp.StatusCode == http.StatusMovedPermanently { - u = resp.Header.Get("Location") - resp, err = s.getWorkflowLogsFromURL(ctx, u, false) - } - return resp, err -} diff --git a/vendor/github.com/google/go-github/v43/github/actions_workflow_runs.go b/vendor/github.com/google/go-github/v44/github/actions_workflow_runs.go similarity index 90% rename from vendor/github.com/google/go-github/v43/github/actions_workflow_runs.go rename to vendor/github.com/google/go-github/v44/github/actions_workflow_runs.go index 273d2cc466..470f0f073b 100644 --- a/vendor/github.com/google/go-github/v43/github/actions_workflow_runs.go +++ b/vendor/github.com/google/go-github/v44/github/actions_workflow_runs.go @@ -211,6 +211,34 @@ func (s *ActionsService) RerunWorkflowByID(ctx context.Context, owner, repo stri return s.client.Do(ctx, req, nil) } +// RerunFailedJobsByID re-runs all of the failed jobs and their dependent jobs in a workflow run by ID. +// +// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run +func (s *ActionsService) RerunFailedJobsByID(ctx context.Context, owner, repo string, runID int64) (*Response, error) { + u := fmt.Sprintf("repos/%v/%v/actions/runs/%v/rerun-failed-jobs", owner, repo, runID) + + req, err := s.client.NewRequest("POST", u, nil) + if err != nil { + return nil, err + } + + return s.client.Do(ctx, req, nil) +} + +// RerunJobByID re-runs a job and its dependent jobs in a workflow run by ID. +// +// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run +func (s *ActionsService) RerunJobByID(ctx context.Context, owner, repo string, jobID int64) (*Response, error) { + u := fmt.Sprintf("repos/%v/%v/actions/jobs/%v/rerun", owner, repo, jobID) + + req, err := s.client.NewRequest("POST", u, nil) + if err != nil { + return nil, err + } + + return s.client.Do(ctx, req, nil) +} + // CancelWorkflowRunByID cancels a workflow run by ID. // // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#cancel-a-workflow-run @@ -231,14 +259,16 @@ func (s *ActionsService) CancelWorkflowRunByID(ctx context.Context, owner, repo func (s *ActionsService) GetWorkflowRunLogs(ctx context.Context, owner, repo string, runID int64, followRedirects bool) (*url.URL, *Response, error) { u := fmt.Sprintf("repos/%v/%v/actions/runs/%v/logs", owner, repo, runID) - resp, err := s.getWorkflowLogsFromURL(ctx, u, followRedirects) + 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 } diff --git a/vendor/github.com/google/go-github/v43/github/actions_workflows.go b/vendor/github.com/google/go-github/v44/github/actions_workflows.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/actions_workflows.go rename to vendor/github.com/google/go-github/v44/github/actions_workflows.go diff --git a/vendor/github.com/google/go-github/v43/github/activity.go b/vendor/github.com/google/go-github/v44/github/activity.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/activity.go rename to vendor/github.com/google/go-github/v44/github/activity.go diff --git a/vendor/github.com/google/go-github/v43/github/activity_events.go b/vendor/github.com/google/go-github/v44/github/activity_events.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/activity_events.go rename to vendor/github.com/google/go-github/v44/github/activity_events.go diff --git a/vendor/github.com/google/go-github/v43/github/activity_notifications.go b/vendor/github.com/google/go-github/v44/github/activity_notifications.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/activity_notifications.go rename to vendor/github.com/google/go-github/v44/github/activity_notifications.go diff --git a/vendor/github.com/google/go-github/v43/github/activity_star.go b/vendor/github.com/google/go-github/v44/github/activity_star.go similarity index 99% rename from vendor/github.com/google/go-github/v43/github/activity_star.go rename to vendor/github.com/google/go-github/v44/github/activity_star.go index ad07aac752..d17ea9c3f2 100644 --- a/vendor/github.com/google/go-github/v43/github/activity_star.go +++ b/vendor/github.com/google/go-github/v44/github/activity_star.go @@ -108,6 +108,7 @@ func (s *ActivityService) IsStarred(ctx context.Context, owner, repo string) (bo if err != nil { return false, nil, err } + resp, err := s.client.Do(ctx, req, nil) starred, err := parseBoolResponse(err) return starred, resp, err @@ -122,6 +123,7 @@ func (s *ActivityService) Star(ctx context.Context, owner, repo string) (*Respon if err != nil { return nil, err } + return s.client.Do(ctx, req, nil) } @@ -134,5 +136,6 @@ func (s *ActivityService) Unstar(ctx context.Context, owner, repo string) (*Resp if err != nil { return nil, err } + return s.client.Do(ctx, req, nil) } diff --git a/vendor/github.com/google/go-github/v43/github/activity_watching.go b/vendor/github.com/google/go-github/v44/github/activity_watching.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/activity_watching.go rename to vendor/github.com/google/go-github/v44/github/activity_watching.go diff --git a/vendor/github.com/google/go-github/v43/github/admin.go b/vendor/github.com/google/go-github/v44/github/admin.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/admin.go rename to vendor/github.com/google/go-github/v44/github/admin.go diff --git a/vendor/github.com/google/go-github/v43/github/admin_orgs.go b/vendor/github.com/google/go-github/v44/github/admin_orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/admin_orgs.go rename to vendor/github.com/google/go-github/v44/github/admin_orgs.go diff --git a/vendor/github.com/google/go-github/v43/github/admin_stats.go b/vendor/github.com/google/go-github/v44/github/admin_stats.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/admin_stats.go rename to vendor/github.com/google/go-github/v44/github/admin_stats.go diff --git a/vendor/github.com/google/go-github/v43/github/admin_users.go b/vendor/github.com/google/go-github/v44/github/admin_users.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/admin_users.go rename to vendor/github.com/google/go-github/v44/github/admin_users.go diff --git a/vendor/github.com/google/go-github/v43/github/apps.go b/vendor/github.com/google/go-github/v44/github/apps.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/apps.go rename to vendor/github.com/google/go-github/v44/github/apps.go diff --git a/vendor/github.com/google/go-github/v43/github/apps_hooks.go b/vendor/github.com/google/go-github/v44/github/apps_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/apps_hooks.go rename to vendor/github.com/google/go-github/v44/github/apps_hooks.go diff --git a/vendor/github.com/google/go-github/v43/github/apps_hooks_deliveries.go b/vendor/github.com/google/go-github/v44/github/apps_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/apps_hooks_deliveries.go rename to vendor/github.com/google/go-github/v44/github/apps_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v43/github/apps_installation.go b/vendor/github.com/google/go-github/v44/github/apps_installation.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/apps_installation.go rename to vendor/github.com/google/go-github/v44/github/apps_installation.go diff --git a/vendor/github.com/google/go-github/v43/github/apps_manifest.go b/vendor/github.com/google/go-github/v44/github/apps_manifest.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/apps_manifest.go rename to vendor/github.com/google/go-github/v44/github/apps_manifest.go diff --git a/vendor/github.com/google/go-github/v43/github/apps_marketplace.go b/vendor/github.com/google/go-github/v44/github/apps_marketplace.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/apps_marketplace.go rename to vendor/github.com/google/go-github/v44/github/apps_marketplace.go diff --git a/vendor/github.com/google/go-github/v43/github/authorizations.go b/vendor/github.com/google/go-github/v44/github/authorizations.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/authorizations.go rename to vendor/github.com/google/go-github/v44/github/authorizations.go diff --git a/vendor/github.com/google/go-github/v43/github/billing.go b/vendor/github.com/google/go-github/v44/github/billing.go similarity index 96% rename from vendor/github.com/google/go-github/v43/github/billing.go rename to vendor/github.com/google/go-github/v44/github/billing.go index 8921833bdb..dea4677beb 100644 --- a/vendor/github.com/google/go-github/v43/github/billing.go +++ b/vendor/github.com/google/go-github/v44/github/billing.go @@ -79,7 +79,7 @@ func (s *BillingService) GetActionsBillingOrg(ctx context.Context, org string) ( return nil, resp, err } - return actionsOrgBilling, resp, err + return actionsOrgBilling, resp, nil } // GetPackagesBillingOrg returns the free and paid storage used for GitHub Packages in gigabytes for an Org. @@ -98,7 +98,7 @@ func (s *BillingService) GetPackagesBillingOrg(ctx context.Context, org string) return nil, resp, err } - return packagesOrgBilling, resp, err + return packagesOrgBilling, resp, nil } // GetStorageBillingOrg returns the estimated paid and estimated total storage used for GitHub Actions @@ -118,7 +118,7 @@ func (s *BillingService) GetStorageBillingOrg(ctx context.Context, org string) ( return nil, resp, err } - return storageOrgBilling, resp, err + return storageOrgBilling, resp, nil } // GetAdvancedSecurityActiveCommittersOrg returns the GitHub Advanced Security active committers for an organization per repository. @@ -137,7 +137,7 @@ func (s *BillingService) GetAdvancedSecurityActiveCommittersOrg(ctx context.Cont return nil, resp, err } - return activeOrgCommitters, resp, err + return activeOrgCommitters, resp, nil } // GetActionsBillingUser returns the summary of the free and paid GitHub Actions minutes used for a user. @@ -156,7 +156,7 @@ func (s *BillingService) GetActionsBillingUser(ctx context.Context, user string) return nil, resp, err } - return actionsUserBilling, resp, err + return actionsUserBilling, resp, nil } // GetPackagesBillingUser returns the free and paid storage used for GitHub Packages in gigabytes for a user. @@ -175,7 +175,7 @@ func (s *BillingService) GetPackagesBillingUser(ctx context.Context, user string return nil, resp, err } - return packagesUserBilling, resp, err + return packagesUserBilling, resp, nil } // GetStorageBillingUser returns the estimated paid and estimated total storage used for GitHub Actions @@ -195,5 +195,5 @@ func (s *BillingService) GetStorageBillingUser(ctx context.Context, user string) return nil, resp, err } - return storageUserBilling, resp, err + return storageUserBilling, resp, nil } diff --git a/vendor/github.com/google/go-github/v43/github/checks.go b/vendor/github.com/google/go-github/v44/github/checks.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/checks.go rename to vendor/github.com/google/go-github/v44/github/checks.go diff --git a/vendor/github.com/google/go-github/v43/github/code-scanning.go b/vendor/github.com/google/go-github/v44/github/code-scanning.go similarity index 82% rename from vendor/github.com/google/go-github/v43/github/code-scanning.go rename to vendor/github.com/google/go-github/v44/github/code-scanning.go index 9616f3a26d..48d7295230 100644 --- a/vendor/github.com/google/go-github/v43/github/code-scanning.go +++ b/vendor/github.com/google/go-github/v44/github/code-scanning.go @@ -67,22 +67,27 @@ type Tool struct { // // GitHub API docs: https://docs.github.com/en/rest/reference/code-scanning#list-code-scanning-alerts-for-a-repository type Alert struct { - RuleID *string `json:"rule_id,omitempty"` - RuleSeverity *string `json:"rule_severity,omitempty"` - RuleDescription *string `json:"rule_description,omitempty"` - Rule *Rule `json:"rule,omitempty"` - Tool *Tool `json:"tool,omitempty"` - CreatedAt *Timestamp `json:"created_at,omitempty"` - State *string `json:"state,omitempty"` - ClosedBy *User `json:"closed_by,omitempty"` - ClosedAt *Timestamp `json:"closed_at,omitempty"` - URL *string `json:"url,omitempty"` - HTMLURL *string `json:"html_url,omitempty"` - MostRecentInstance *MostRecentInstance `json:"most_recent_instance,omitempty"` - DismissedBy *User `json:"dismissed_by,omitempty"` - DismissedAt *Timestamp `json:"dismissed_at,omitempty"` - DismissedReason *string `json:"dismissed_reason,omitempty"` - InstancesURL *string `json:"instances_url,omitempty"` + Number *int `json:"number,omitempty"` + Repository *Repository `json:"repository,omitempty"` + RuleID *string `json:"rule_id,omitempty"` + RuleSeverity *string `json:"rule_severity,omitempty"` + RuleDescription *string `json:"rule_description,omitempty"` + Rule *Rule `json:"rule,omitempty"` + Tool *Tool `json:"tool,omitempty"` + CreatedAt *Timestamp `json:"created_at,omitempty"` + UpdatedAt *Timestamp `json:"updated_at,omitempty"` + FixedAt *Timestamp `json:"fixed_at,omitempty"` + State *string `json:"state,omitempty"` + ClosedBy *User `json:"closed_by,omitempty"` + ClosedAt *Timestamp `json:"closed_at,omitempty"` + URL *string `json:"url,omitempty"` + HTMLURL *string `json:"html_url,omitempty"` + MostRecentInstance *MostRecentInstance `json:"most_recent_instance,omitempty"` + Instances []*MostRecentInstance `json:"instances,omitempty"` + DismissedBy *User `json:"dismissed_by,omitempty"` + DismissedAt *Timestamp `json:"dismissed_at,omitempty"` + DismissedReason *string `json:"dismissed_reason,omitempty"` + InstancesURL *string `json:"instances_url,omitempty"` } // ID returns the ID associated with an alert. It is the number at the end of the security alert's URL. @@ -171,6 +176,33 @@ type SarifID struct { URL *string `json:"url,omitempty"` } +// ListAlertsForOrg lists code scanning alerts for an org. +// +// You must use an access token with the security_events scope to use this endpoint. GitHub Apps must have the security_events +// read permission to use this endpoint. +// +// GitHub API docs: https://docs.github.com/en/rest/code-scanning#list-code-scanning-alerts-for-an-organization +func (s *CodeScanningService) ListAlertsForOrg(ctx context.Context, org string, opts *AlertListOptions) ([]*Alert, *Response, error) { + u := fmt.Sprintf("orgs/%v/code-scanning/alerts", 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 + } + + var alerts []*Alert + resp, err := s.client.Do(ctx, req, &alerts) + if err != nil { + return nil, resp, err + } + + return alerts, resp, nil +} + // ListAlertsForRepo lists code scanning alerts for a repository. // // Lists all open code scanning alerts for the default branch (usually master) and protected branches in a repository. diff --git a/vendor/github.com/google/go-github/v43/github/dependabot.go b/vendor/github.com/google/go-github/v44/github/dependabot.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/dependabot.go rename to vendor/github.com/google/go-github/v44/github/dependabot.go diff --git a/vendor/github.com/google/go-github/v43/github/dependabot_secrets.go b/vendor/github.com/google/go-github/v44/github/dependabot_secrets.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/dependabot_secrets.go rename to vendor/github.com/google/go-github/v44/github/dependabot_secrets.go diff --git a/vendor/github.com/google/go-github/v43/github/doc.go b/vendor/github.com/google/go-github/v44/github/doc.go similarity index 99% rename from vendor/github.com/google/go-github/v43/github/doc.go rename to vendor/github.com/google/go-github/v44/github/doc.go index 8f16c65846..e91d708108 100644 --- a/vendor/github.com/google/go-github/v43/github/doc.go +++ b/vendor/github.com/google/go-github/v44/github/doc.go @@ -8,7 +8,7 @@ Package github provides a client for using the GitHub API. Usage: - import "github.com/google/go-github/v43/github" // with go modules enabled (GO111MODULE=on or outside GOPATH) + import "github.com/google/go-github/v44/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/v43/github/enterprise.go b/vendor/github.com/google/go-github/v44/github/enterprise.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/enterprise.go rename to vendor/github.com/google/go-github/v44/github/enterprise.go diff --git a/vendor/github.com/google/go-github/v43/github/enterprise_actions_runners.go b/vendor/github.com/google/go-github/v44/github/enterprise_actions_runners.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/enterprise_actions_runners.go rename to vendor/github.com/google/go-github/v44/github/enterprise_actions_runners.go diff --git a/vendor/github.com/google/go-github/v43/github/enterprise_audit_log.go b/vendor/github.com/google/go-github/v44/github/enterprise_audit_log.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/enterprise_audit_log.go rename to vendor/github.com/google/go-github/v44/github/enterprise_audit_log.go diff --git a/vendor/github.com/google/go-github/v43/github/event.go b/vendor/github.com/google/go-github/v44/github/event.go similarity index 98% rename from vendor/github.com/google/go-github/v43/github/event.go rename to vendor/github.com/google/go-github/v44/github/event.go index 9a39e2e95f..5c10365970 100644 --- a/vendor/github.com/google/go-github/v43/github/event.go +++ b/vendor/github.com/google/go-github/v44/github/event.go @@ -102,6 +102,8 @@ func (e *Event) ParsePayload() (payload interface{}, err error) { payload = &PullRequestReviewEvent{} case "PullRequestReviewCommentEvent": payload = &PullRequestReviewCommentEvent{} + case "PullRequestReviewThreadEvent": + payload = &PullRequestReviewThreadEvent{} case "PullRequestTargetEvent": payload = &PullRequestTargetEvent{} case "PushEvent": diff --git a/vendor/github.com/google/go-github/v43/github/event_types.go b/vendor/github.com/google/go-github/v44/github/event_types.go similarity index 93% rename from vendor/github.com/google/go-github/v43/github/event_types.go rename to vendor/github.com/google/go-github/v44/github/event_types.go index c940ec8f12..7cfba9abbd 100644 --- a/vendor/github.com/google/go-github/v43/github/event_types.go +++ b/vendor/github.com/google/go-github/v44/github/event_types.go @@ -830,6 +830,24 @@ type PullRequestReviewCommentEvent struct { Installation *Installation `json:"installation,omitempty"` } +// PullRequestReviewThreadEvent is triggered when a comment made as part of a +// review of a pull request is marked resolved or unresolved. +// The Webhook event name is "pull_request_review_thread". +// +// GitHub API docs: https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review_thread +type PullRequestReviewThreadEvent struct { + // Action is the action that was performed on the comment. + // Possible values are: "resolved", "unresolved". + Action *string `json:"action,omitempty"` + Thread *PullRequestThread `json:"thread,omitempty"` + PullRequest *PullRequest `json:"pull_request,omitempty"` + + // The following fields are only populated by Webhook events. + Repo *Repository `json:"repository,omitempty"` + Sender *User `json:"sender,omitempty"` + Installation *Installation `json:"installation,omitempty"` +} + // PullRequestTargetEvent is triggered when a pull request is assigned, unassigned, labeled, // unlabeled, opened, edited, closed, reopened, synchronize, ready_for_review, // locked, unlocked, a pull request review is requested, or a review request is removed. @@ -885,6 +903,7 @@ type PushEvent struct { DistinctSize *int `json:"distinct_size,omitempty"` // The following fields are only populated by Webhook events. + Action *string `json:"action,omitempty"` After *string `json:"after,omitempty"` Created *bool `json:"created,omitempty"` Deleted *bool `json:"deleted,omitempty"` @@ -1248,3 +1267,71 @@ type WorkflowRunEvent struct { Sender *User `json:"sender,omitempty"` Installation *Installation `json:"installation,omitempty"` } + +// SecurityAdvisory represents the advisory object in SecurityAdvisoryEvent payload. +// +// GitHub API docs: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory +type SecurityAdvisory struct { + GHSAID *string `json:"ghsa_id,omitempty"` + Summary *string `json:"summary,omitempty"` + Description *string `json:"description,omitempty"` + Severity *string `json:"severity,omitempty"` + Identifiers []*AdvisoryIdentifier `json:"identifiers,omitempty"` + References []*AdvisoryReference `json:"references,omitempty"` + PublishedAt *Timestamp `json:"published_at,omitempty"` + UpdatedAt *Timestamp `json:"updated_at,omitempty"` + WithdrawnAt *Timestamp `json:"withdrawn_at,omitempty"` + Vulnerabilities []*AdvisoryVulnerability `json:"vulnerabilities,omitempty"` +} + +// AdvisoryIdentifier represents the identifier for a Security Advisory. +type AdvisoryIdentifier struct { + Value *string `json:"value,omitempty"` + Type *string `json:"type,omitempty"` +} + +// AdvisoryReference represents the reference url for the security advisory. +type AdvisoryReference struct { + URL *string `json:"url,omitempty"` +} + +// AdvisoryVulnerability represents the vulnerability object for a Security Advisory. +type AdvisoryVulnerability struct { + Package *VulnerabilityPackage `json:"package,omitempty"` + Severity *string `json:"severity,omitempty"` + VulnerableVersionRange *string `json:"vulnerable_version_range,omitempty"` + FirstPatchedVersion *FirstPatchedVersion `json:"first_patched_version,omitempty"` +} + +// VulnerabilityPackage represents the package object for an Advisory Vulnerability. +type VulnerabilityPackage struct { + Ecosystem *string `json:"ecosystem,omitempty"` + Name *string `json:"name,omitempty"` +} + +// FirstPatchedVersion represents the identifier for the first patched version of that vulnerability. +type FirstPatchedVersion struct { + Identifier *string `json:"identifier,omitempty"` +} + +// SecurityAdvisoryEvent is triggered when a security-related vulnerability is found in software on GitHub. +// +// GitHub API docs: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory +type SecurityAdvisoryEvent struct { + Action *string `json:"action,omitempty"` + SecurityAdvisory *SecurityAdvisory `json:"security_advisory,omitempty"` +} + +// CodeScanningAlertEvent is triggered when a code scanning finds a potential vulnerability or error in your code. +// +// GitHub API docs: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#code_scanning_alert +type CodeScanningAlertEvent struct { + Action *string `json:"action,omitempty"` + Alert *Alert `json:"alert,omitempty"` + Ref *string `json:"ref,omitempty"` + // CommitOID is the commit SHA of the code scanning alert + CommitOID *string `json:"commit_oid,omitempty"` + Repo *Repository `json:"repository,omitempty"` + Org *Organization `json:"organization,omitempty"` + Sender *User `json:"sender,omitempty"` +} diff --git a/vendor/github.com/google/go-github/v43/github/gists.go b/vendor/github.com/google/go-github/v44/github/gists.go similarity index 99% rename from vendor/github.com/google/go-github/v43/github/gists.go rename to vendor/github.com/google/go-github/v44/github/gists.go index 4971c6bf54..40a4aaf581 100644 --- a/vendor/github.com/google/go-github/v43/github/gists.go +++ b/vendor/github.com/google/go-github/v44/github/gists.go @@ -279,6 +279,7 @@ func (s *GistsService) Delete(ctx context.Context, id string) (*Response, error) if err != nil { return nil, err } + return s.client.Do(ctx, req, nil) } @@ -291,6 +292,7 @@ func (s *GistsService) Star(ctx context.Context, id string) (*Response, error) { if err != nil { return nil, err } + return s.client.Do(ctx, req, nil) } @@ -303,6 +305,7 @@ func (s *GistsService) Unstar(ctx context.Context, id string) (*Response, error) if err != nil { return nil, err } + return s.client.Do(ctx, req, nil) } @@ -315,6 +318,7 @@ func (s *GistsService) IsStarred(ctx context.Context, id string) (bool, *Respons if err != nil { return false, nil, err } + resp, err := s.client.Do(ctx, req, nil) starred, err := parseBoolResponse(err) return starred, resp, err diff --git a/vendor/github.com/google/go-github/v43/github/gists_comments.go b/vendor/github.com/google/go-github/v44/github/gists_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/gists_comments.go rename to vendor/github.com/google/go-github/v44/github/gists_comments.go diff --git a/vendor/github.com/google/go-github/v43/github/git.go b/vendor/github.com/google/go-github/v44/github/git.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/git.go rename to vendor/github.com/google/go-github/v44/github/git.go diff --git a/vendor/github.com/google/go-github/v43/github/git_blobs.go b/vendor/github.com/google/go-github/v44/github/git_blobs.go similarity index 90% rename from vendor/github.com/google/go-github/v43/github/git_blobs.go rename to vendor/github.com/google/go-github/v44/github/git_blobs.go index 6bc59c6f88..7cbd411ca7 100644 --- a/vendor/github.com/google/go-github/v43/github/git_blobs.go +++ b/vendor/github.com/google/go-github/v44/github/git_blobs.go @@ -33,7 +33,11 @@ func (s *GitService) GetBlob(ctx context.Context, owner string, repo string, sha blob := new(Blob) resp, err := s.client.Do(ctx, req, blob) - return blob, resp, err + if err != nil { + return nil, resp, err + } + + return blob, resp, nil } // GetBlobRaw fetches a blob's contents from a repo. @@ -46,11 +50,16 @@ func (s *GitService) GetBlobRaw(ctx context.Context, owner, repo, sha string) ([ if err != nil { return nil, nil, err } + req.Header.Set("Accept", "application/vnd.github.v3.raw") var buf bytes.Buffer resp, err := s.client.Do(ctx, req, &buf) - return buf.Bytes(), resp, err + if err != nil { + return nil, resp, err + } + + return buf.Bytes(), resp, nil } // CreateBlob creates a blob object. @@ -65,5 +74,9 @@ func (s *GitService) CreateBlob(ctx context.Context, owner string, repo string, t := new(Blob) resp, err := s.client.Do(ctx, req, t) - return t, resp, err + if err != nil { + return nil, resp, err + } + + return t, resp, nil } diff --git a/vendor/github.com/google/go-github/v43/github/git_commits.go b/vendor/github.com/google/go-github/v44/github/git_commits.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/git_commits.go rename to vendor/github.com/google/go-github/v44/github/git_commits.go diff --git a/vendor/github.com/google/go-github/v43/github/git_refs.go b/vendor/github.com/google/go-github/v44/github/git_refs.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/git_refs.go rename to vendor/github.com/google/go-github/v44/github/git_refs.go diff --git a/vendor/github.com/google/go-github/v43/github/git_tags.go b/vendor/github.com/google/go-github/v44/github/git_tags.go similarity index 94% rename from vendor/github.com/google/go-github/v43/github/git_tags.go rename to vendor/github.com/google/go-github/v44/github/git_tags.go index 10029c4549..12cfc1b3ef 100644 --- a/vendor/github.com/google/go-github/v43/github/git_tags.go +++ b/vendor/github.com/google/go-github/v44/github/git_tags.go @@ -45,7 +45,11 @@ func (s *GitService) GetTag(ctx context.Context, owner string, repo string, sha tag := new(Tag) resp, err := s.client.Do(ctx, req, tag) - return tag, resp, err + if err != nil { + return nil, resp, err + } + + return tag, resp, nil } // CreateTag creates a tag object. @@ -72,5 +76,9 @@ func (s *GitService) CreateTag(ctx context.Context, owner string, repo string, t t := new(Tag) resp, err := s.client.Do(ctx, req, t) - return t, resp, err + if err != nil { + return nil, resp, err + } + + return t, resp, nil } diff --git a/vendor/github.com/google/go-github/v43/github/git_trees.go b/vendor/github.com/google/go-github/v44/github/git_trees.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/git_trees.go rename to vendor/github.com/google/go-github/v44/github/git_trees.go diff --git a/vendor/github.com/google/go-github/v43/github/github-accessors.go b/vendor/github.com/google/go-github/v44/github/github-accessors.go similarity index 98% rename from vendor/github.com/google/go-github/v43/github/github-accessors.go rename to vendor/github.com/google/go-github/v44/github/github-accessors.go index 6c13f545cd..0144466378 100644 --- a/vendor/github.com/google/go-github/v43/github/github-accessors.go +++ b/vendor/github.com/google/go-github/v44/github/github-accessors.go @@ -4,6 +4,8 @@ // license that can be found in the LICENSE file. // Code generated by gen-accessors; DO NOT EDIT. +// Instead, please run "go generate ./..." as described here: +// https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch package github @@ -60,6 +62,30 @@ func (a *ActionsPermissions) GetSelectedActionsURL() string { return *a.SelectedActionsURL } +// GetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise. +func (a *ActionsPermissionsRepository) GetAllowedActions() string { + if a == nil || a.AllowedActions == nil { + return "" + } + return *a.AllowedActions +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (a *ActionsPermissionsRepository) GetEnabled() bool { + if a == nil || a.Enabled == nil { + return false + } + return *a.Enabled +} + +// GetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise. +func (a *ActionsPermissionsRepository) GetSelectedActionsURL() string { + if a == nil || a.SelectedActionsURL == nil { + return "" + } + return *a.SelectedActionsURL +} + // GetURL returns the URL field if it's non-nil, zero value otherwise. func (a *AdminEnforcement) GetURL() string { if a == nil || a.URL == nil { @@ -172,6 +198,62 @@ func (a *AdvancedSecurityCommittersBreakdown) GetUserLogin() string { return *a.UserLogin } +// GetType returns the Type field if it's non-nil, zero value otherwise. +func (a *AdvisoryIdentifier) GetType() string { + if a == nil || a.Type == nil { + return "" + } + return *a.Type +} + +// GetValue returns the Value field if it's non-nil, zero value otherwise. +func (a *AdvisoryIdentifier) GetValue() string { + if a == nil || a.Value == nil { + return "" + } + return *a.Value +} + +// GetURL returns the URL field if it's non-nil, zero value otherwise. +func (a *AdvisoryReference) GetURL() string { + if a == nil || a.URL == nil { + return "" + } + return *a.URL +} + +// GetFirstPatchedVersion returns the FirstPatchedVersion field. +func (a *AdvisoryVulnerability) GetFirstPatchedVersion() *FirstPatchedVersion { + if a == nil { + return nil + } + return a.FirstPatchedVersion +} + +// GetPackage returns the Package field. +func (a *AdvisoryVulnerability) GetPackage() *VulnerabilityPackage { + if a == nil { + return nil + } + return a.Package +} + +// GetSeverity returns the Severity field if it's non-nil, zero value otherwise. +func (a *AdvisoryVulnerability) GetSeverity() string { + if a == nil || a.Severity == nil { + return "" + } + return *a.Severity +} + +// GetVulnerableVersionRange returns the VulnerableVersionRange field if it's non-nil, zero value otherwise. +func (a *AdvisoryVulnerability) GetVulnerableVersionRange() string { + if a == nil || a.VulnerableVersionRange == nil { + return "" + } + return *a.VulnerableVersionRange +} + // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. func (a *Alert) GetClosedAt() Timestamp { if a == nil || a.ClosedAt == nil { @@ -220,6 +302,14 @@ func (a *Alert) GetDismissedReason() string { return *a.DismissedReason } +// GetFixedAt returns the FixedAt field if it's non-nil, zero value otherwise. +func (a *Alert) GetFixedAt() Timestamp { + if a == nil || a.FixedAt == nil { + return Timestamp{} + } + return *a.FixedAt +} + // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. func (a *Alert) GetHTMLURL() string { if a == nil || a.HTMLURL == nil { @@ -244,6 +334,22 @@ func (a *Alert) GetMostRecentInstance() *MostRecentInstance { return a.MostRecentInstance } +// GetNumber returns the Number field if it's non-nil, zero value otherwise. +func (a *Alert) GetNumber() int { + if a == nil || a.Number == nil { + return 0 + } + return *a.Number +} + +// GetRepository returns the Repository field. +func (a *Alert) GetRepository() *Repository { + if a == nil { + return nil + } + return a.Repository +} + // GetRule returns the Rule field. func (a *Alert) GetRule() *Rule { if a == nil { @@ -292,6 +398,14 @@ func (a *Alert) GetTool() *Tool { return a.Tool } +// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. +func (a *Alert) GetUpdatedAt() Timestamp { + if a == nil || a.UpdatedAt == nil { + return Timestamp{} + } + return *a.UpdatedAt +} + // GetURL returns the URL field if it's non-nil, zero value otherwise. func (a *Alert) GetURL() string { if a == nil || a.URL == nil { @@ -2212,6 +2326,62 @@ func (c *CodeResult) GetSHA() string { return *c.SHA } +// GetAction returns the Action field if it's non-nil, zero value otherwise. +func (c *CodeScanningAlertEvent) GetAction() string { + if c == nil || c.Action == nil { + return "" + } + return *c.Action +} + +// GetAlert returns the Alert field. +func (c *CodeScanningAlertEvent) GetAlert() *Alert { + if c == nil { + return nil + } + return c.Alert +} + +// GetCommitOID returns the CommitOID field if it's non-nil, zero value otherwise. +func (c *CodeScanningAlertEvent) GetCommitOID() string { + if c == nil || c.CommitOID == nil { + return "" + } + return *c.CommitOID +} + +// GetOrg returns the Org field. +func (c *CodeScanningAlertEvent) GetOrg() *Organization { + if c == nil { + return nil + } + return c.Org +} + +// GetRef returns the Ref field if it's non-nil, zero value otherwise. +func (c *CodeScanningAlertEvent) GetRef() string { + if c == nil || c.Ref == nil { + return "" + } + return *c.Ref +} + +// GetRepo returns the Repo field. +func (c *CodeScanningAlertEvent) GetRepo() *Repository { + if c == nil { + return nil + } + return c.Repo +} + +// GetSender returns the Sender field. +func (c *CodeScanningAlertEvent) GetSender() *User { + if c == nil { + return nil + } + return c.Sender +} + // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. func (c *CodeSearchResult) GetIncompleteResults() bool { if c == nil || c.IncompleteResults == nil { @@ -3380,6 +3550,22 @@ func (c *CreateUserProjectOptions) GetBody() string { return *c.Body } +// GetID returns the ID field if it's non-nil, zero value otherwise. +func (c *CustomRepoRoles) GetID() int64 { + if c == nil || c.ID == nil { + return 0 + } + return *c.ID +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (c *CustomRepoRoles) GetName() string { + if c == nil || c.Name == nil { + return "" + } + return *c.Name +} + // GetInstallation returns the Installation field. func (d *DeleteEvent) GetInstallation() *Installation { if d == nil { @@ -4932,6 +5118,14 @@ func (f *Feeds) GetUserURL() string { return *f.UserURL } +// GetIdentifier returns the Identifier field if it's non-nil, zero value otherwise. +func (f *FirstPatchedVersion) GetIdentifier() string { + if f == nil || f.Identifier == nil { + return "" + } + return *f.Identifier +} + // GetForkee returns the Forkee field. func (f *ForkEvent) GetForkee() *Repository { if f == nil { @@ -9516,6 +9710,14 @@ func (o *Organization) GetURL() string { return *o.URL } +// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. +func (o *OrganizationCustomRepoRoles) GetTotalCount() int { + if o == nil || o.TotalCount == nil { + return 0 + } + return *o.TotalCount +} + // GetAction returns the Action field if it's non-nil, zero value otherwise. func (o *OrganizationEvent) GetAction() string { if o == nil || o.Action == nil { @@ -12652,6 +12854,54 @@ func (p *PullRequestReviewsEnforcementUpdate) GetRequireCodeOwnerReviews() bool return *p.RequireCodeOwnerReviews } +// GetAction returns the Action field if it's non-nil, zero value otherwise. +func (p *PullRequestReviewThreadEvent) GetAction() string { + if p == nil || p.Action == nil { + return "" + } + return *p.Action +} + +// GetInstallation returns the Installation field. +func (p *PullRequestReviewThreadEvent) GetInstallation() *Installation { + if p == nil { + return nil + } + return p.Installation +} + +// GetPullRequest returns the PullRequest field. +func (p *PullRequestReviewThreadEvent) GetPullRequest() *PullRequest { + if p == nil { + return nil + } + return p.PullRequest +} + +// GetRepo returns the Repo field. +func (p *PullRequestReviewThreadEvent) GetRepo() *Repository { + if p == nil { + return nil + } + return p.Repo +} + +// GetSender returns the Sender field. +func (p *PullRequestReviewThreadEvent) GetSender() *User { + if p == nil { + return nil + } + return p.Sender +} + +// GetThread returns the Thread field. +func (p *PullRequestReviewThreadEvent) GetThread() *PullRequestThread { + if p == nil { + return nil + } + return p.Thread +} + // GetAction returns the Action field if it's non-nil, zero value otherwise. func (p *PullRequestTargetEvent) GetAction() string { if p == nil || p.Action == nil { @@ -12764,6 +13014,22 @@ func (p *PullRequestTargetEvent) GetSender() *User { return p.Sender } +// GetID returns the ID field if it's non-nil, zero value otherwise. +func (p *PullRequestThread) GetID() int64 { + if p == nil || p.ID == nil { + return 0 + } + return *p.ID +} + +// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. +func (p *PullRequestThread) GetNodeID() string { + if p == nil || p.NodeID == nil { + return "" + } + return *p.NodeID +} + // GetMergablePulls returns the MergablePulls field if it's non-nil, zero value otherwise. func (p *PullStats) GetMergablePulls() int { if p == nil || p.MergablePulls == nil { @@ -12820,6 +13086,14 @@ func (p *PunchCard) GetHour() int { return *p.Hour } +// GetAction returns the Action field if it's non-nil, zero value otherwise. +func (p *PushEvent) GetAction() string { + if p == nil || p.Action == nil { + return "" + } + return *p.Action +} + // GetAfter returns the After field if it's non-nil, zero value otherwise. func (p *PushEvent) GetAfter() string { if p == nil || p.After == nil { @@ -13700,6 +13974,14 @@ func (r *Repository) GetAllowSquashMerge() bool { return *r.AllowSquashMerge } +// GetAllowUpdateBranch returns the AllowUpdateBranch field if it's non-nil, zero value otherwise. +func (r *Repository) GetAllowUpdateBranch() bool { + if r == nil || r.AllowUpdateBranch == nil { + return false + } + return *r.AllowUpdateBranch +} + // GetArchived returns the Archived field if it's non-nil, zero value otherwise. func (r *Repository) GetArchived() bool { if r == nil || r.Archived == nil { @@ -16236,6 +16518,78 @@ func (s *SecretScanningAlertUpdateOptions) GetState() string { return *s.State } +// GetDescription returns the Description field if it's non-nil, zero value otherwise. +func (s *SecurityAdvisory) GetDescription() string { + if s == nil || s.Description == nil { + return "" + } + return *s.Description +} + +// GetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise. +func (s *SecurityAdvisory) GetGHSAID() string { + if s == nil || s.GHSAID == nil { + return "" + } + return *s.GHSAID +} + +// GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. +func (s *SecurityAdvisory) GetPublishedAt() Timestamp { + if s == nil || s.PublishedAt == nil { + return Timestamp{} + } + return *s.PublishedAt +} + +// GetSeverity returns the Severity field if it's non-nil, zero value otherwise. +func (s *SecurityAdvisory) GetSeverity() string { + if s == nil || s.Severity == nil { + return "" + } + return *s.Severity +} + +// GetSummary returns the Summary field if it's non-nil, zero value otherwise. +func (s *SecurityAdvisory) GetSummary() string { + if s == nil || s.Summary == nil { + return "" + } + return *s.Summary +} + +// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. +func (s *SecurityAdvisory) GetUpdatedAt() Timestamp { + if s == nil || s.UpdatedAt == nil { + return Timestamp{} + } + return *s.UpdatedAt +} + +// GetWithdrawnAt returns the WithdrawnAt field if it's non-nil, zero value otherwise. +func (s *SecurityAdvisory) GetWithdrawnAt() Timestamp { + if s == nil || s.WithdrawnAt == nil { + return Timestamp{} + } + return *s.WithdrawnAt +} + +// GetAction returns the Action field if it's non-nil, zero value otherwise. +func (s *SecurityAdvisoryEvent) GetAction() string { + if s == nil || s.Action == nil { + return "" + } + return *s.Action +} + +// GetSecurityAdvisory returns the SecurityAdvisory field. +func (s *SecurityAdvisoryEvent) GetSecurityAdvisory() *SecurityAdvisory { + if s == nil { + return nil + } + return s.SecurityAdvisory +} + // GetAdvancedSecurity returns the AdvancedSecurity field. func (s *SecurityAndAnalysis) GetAdvancedSecurity() *AdvancedSecurity { if s == nil { @@ -18732,208 +19086,40 @@ func (u *UserSuspendOptions) GetReason() string { return *u.Reason } -// GetAction returns the Action field if it's non-nil, zero value otherwise. -func (w *WatchEvent) GetAction() string { - if w == nil || w.Action == nil { +// GetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise. +func (v *VulnerabilityPackage) GetEcosystem() string { + if v == nil || v.Ecosystem == nil { return "" } - return *w.Action -} - -// GetInstallation returns the Installation field. -func (w *WatchEvent) GetInstallation() *Installation { - if w == nil { - return nil - } - return w.Installation -} - -// GetRepo returns the Repo field. -func (w *WatchEvent) GetRepo() *Repository { - if w == nil { - return nil - } - return w.Repo -} - -// GetSender returns the Sender field. -func (w *WatchEvent) GetSender() *User { - if w == nil { - return nil - } - return w.Sender -} - -// GetEmail returns the Email field if it's non-nil, zero value otherwise. -func (w *WebHookAuthor) GetEmail() string { - if w == nil || w.Email == nil { - return "" - } - return *w.Email + return *v.Ecosystem } // GetName returns the Name field if it's non-nil, zero value otherwise. -func (w *WebHookAuthor) GetName() string { - if w == nil || w.Name == nil { +func (v *VulnerabilityPackage) GetName() string { + if v == nil || v.Name == nil { return "" } - return *w.Name -} - -// GetUsername returns the Username field if it's non-nil, zero value otherwise. -func (w *WebHookAuthor) GetUsername() string { - if w == nil || w.Username == nil { - return "" - } - return *w.Username -} - -// GetAuthor returns the Author field. -func (w *WebHookCommit) GetAuthor() *WebHookAuthor { - if w == nil { - return nil - } - return w.Author -} - -// GetCommitter returns the Committer field. -func (w *WebHookCommit) GetCommitter() *WebHookAuthor { - if w == nil { - return nil - } - return w.Committer -} - -// GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. -func (w *WebHookCommit) GetDistinct() bool { - if w == nil || w.Distinct == nil { - return false - } - return *w.Distinct -} - -// GetID returns the ID field if it's non-nil, zero value otherwise. -func (w *WebHookCommit) GetID() string { - if w == nil || w.ID == nil { - return "" - } - return *w.ID -} - -// GetMessage returns the Message field if it's non-nil, zero value otherwise. -func (w *WebHookCommit) GetMessage() string { - if w == nil || w.Message == nil { - return "" - } - return *w.Message -} - -// GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. -func (w *WebHookCommit) GetTimestamp() time.Time { - if w == nil || w.Timestamp == nil { - return time.Time{} - } - return *w.Timestamp + return *v.Name } // GetAction returns the Action field if it's non-nil, zero value otherwise. -func (w *WebHookPayload) GetAction() string { +func (w *WatchEvent) GetAction() string { if w == nil || w.Action == nil { return "" } return *w.Action } -// GetAfter returns the After field if it's non-nil, zero value otherwise. -func (w *WebHookPayload) GetAfter() string { - if w == nil || w.After == nil { - return "" - } - return *w.After -} - -// GetBefore returns the Before field if it's non-nil, zero value otherwise. -func (w *WebHookPayload) GetBefore() string { - if w == nil || w.Before == nil { - return "" - } - return *w.Before -} - -// GetCompare returns the Compare field if it's non-nil, zero value otherwise. -func (w *WebHookPayload) GetCompare() string { - if w == nil || w.Compare == nil { - return "" - } - return *w.Compare -} - -// GetCreated returns the Created field if it's non-nil, zero value otherwise. -func (w *WebHookPayload) GetCreated() bool { - if w == nil || w.Created == nil { - return false - } - return *w.Created -} - -// GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. -func (w *WebHookPayload) GetDeleted() bool { - if w == nil || w.Deleted == nil { - return false - } - return *w.Deleted -} - -// GetForced returns the Forced field if it's non-nil, zero value otherwise. -func (w *WebHookPayload) GetForced() bool { - if w == nil || w.Forced == nil { - return false - } - return *w.Forced -} - -// GetHeadCommit returns the HeadCommit field. -func (w *WebHookPayload) GetHeadCommit() *WebHookCommit { - if w == nil { - return nil - } - return w.HeadCommit -} - // GetInstallation returns the Installation field. -func (w *WebHookPayload) GetInstallation() *Installation { +func (w *WatchEvent) GetInstallation() *Installation { if w == nil { return nil } return w.Installation } -// GetOrganization returns the Organization field. -func (w *WebHookPayload) GetOrganization() *Organization { - if w == nil { - return nil - } - return w.Organization -} - -// GetPusher returns the Pusher field. -func (w *WebHookPayload) GetPusher() *User { - if w == nil { - return nil - } - return w.Pusher -} - -// GetRef returns the Ref field if it's non-nil, zero value otherwise. -func (w *WebHookPayload) GetRef() string { - if w == nil || w.Ref == nil { - return "" - } - return *w.Ref -} - // GetRepo returns the Repo field. -func (w *WebHookPayload) GetRepo() *Repository { +func (w *WatchEvent) GetRepo() *Repository { if w == nil { return nil } @@ -18941,7 +19127,7 @@ func (w *WebHookPayload) GetRepo() *Repository { } // GetSender returns the Sender field. -func (w *WebHookPayload) GetSender() *User { +func (w *WatchEvent) GetSender() *User { if w == nil { return nil } diff --git a/vendor/github.com/google/go-github/v43/github/github.go b/vendor/github.com/google/go-github/v44/github/github.go similarity index 97% rename from vendor/github.com/google/go-github/v43/github/github.go rename to vendor/github.com/google/go-github/v44/github/github.go index 164b2d0678..080a8794dd 100644 --- a/vendor/github.com/google/go-github/v43/github/github.go +++ b/vendor/github.com/google/go-github/v44/github/github.go @@ -353,6 +353,7 @@ func NewEnterpriseClient(baseURL, uploadURL string, httpClient *http.Client) (*C if err != nil { return nil, err } + if !strings.HasSuffix(baseEndpoint.Path, "/") { baseEndpoint.Path += "/" } @@ -366,6 +367,7 @@ func NewEnterpriseClient(baseURL, uploadURL string, httpClient *http.Client) (*C if err != nil { return nil, err } + if !strings.HasSuffix(uploadEndpoint.Path, "/") { uploadEndpoint.Path += "/" } @@ -390,6 +392,7 @@ func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Requ if !strings.HasSuffix(c.BaseURL.Path, "/") { return nil, fmt.Errorf("BaseURL must have a trailing slash, but %q does not", c.BaseURL) } + u, err := c.BaseURL.Parse(urlStr) if err != nil { return nil, err @@ -437,6 +440,7 @@ func (c *Client) NewUploadRequest(urlStr string, reader io.Reader, size int64, m if err != nil { return nil, err } + req.ContentLength = size if mediaType == "" { @@ -621,6 +625,7 @@ func (c *Client) BareDo(ctx context.Context, req *http.Request) (*Response, erro if ctx == nil { return nil, errNonNilContext } + req = withContext(ctx, req) rateLimitCategory := category(req.URL.Path) @@ -996,6 +1001,7 @@ func CheckResponse(r *http.Response) error { if c := r.StatusCode; 200 <= c && c <= 299 { return nil } + errorResponse := &ErrorResponse{Response: r} data, err := ioutil.ReadAll(r.Body) if err == nil && data != nil { @@ -1279,6 +1285,35 @@ func formatRateReset(d time.Duration) string { return fmt.Sprintf("[rate reset in %v]", timeString) } +// When using roundTripWithOptionalFollowRedirect, note that it +// is the responsibility of the caller to close the response body. +func (c *Client) roundTripWithOptionalFollowRedirect(ctx context.Context, u string, followRedirects bool) (*http.Response, error) { + req, err := c.NewRequest("GET", u, nil) + if err != nil { + return nil, err + } + + var resp *http.Response + // Use http.DefaultTransport if no custom Transport is configured + req = withContext(ctx, req) + if c.client.Transport == nil { + resp, err = http.DefaultTransport.RoundTrip(req) + } else { + resp, err = c.client.Transport.RoundTrip(req) + } + if err != nil { + return nil, err + } + + // If redirect response is returned, follow it + if followRedirects && resp.StatusCode == http.StatusMovedPermanently { + resp.Body.Close() + u = resp.Header.Get("Location") + resp, err = c.roundTripWithOptionalFollowRedirect(ctx, u, false) + } + return resp, err +} + // Bool is a helper routine that allocates a new bool value // to store v and returns a pointer to it. func Bool(v bool) *bool { return &v } diff --git a/vendor/github.com/google/go-github/v43/github/gitignore.go b/vendor/github.com/google/go-github/v44/github/gitignore.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/gitignore.go rename to vendor/github.com/google/go-github/v44/github/gitignore.go diff --git a/vendor/github.com/google/go-github/v43/github/interactions.go b/vendor/github.com/google/go-github/v44/github/interactions.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/interactions.go rename to vendor/github.com/google/go-github/v44/github/interactions.go diff --git a/vendor/github.com/google/go-github/v43/github/interactions_orgs.go b/vendor/github.com/google/go-github/v44/github/interactions_orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/interactions_orgs.go rename to vendor/github.com/google/go-github/v44/github/interactions_orgs.go diff --git a/vendor/github.com/google/go-github/v43/github/interactions_repos.go b/vendor/github.com/google/go-github/v44/github/interactions_repos.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/interactions_repos.go rename to vendor/github.com/google/go-github/v44/github/interactions_repos.go diff --git a/vendor/github.com/google/go-github/v43/github/issue_import.go b/vendor/github.com/google/go-github/v44/github/issue_import.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/issue_import.go rename to vendor/github.com/google/go-github/v44/github/issue_import.go diff --git a/vendor/github.com/google/go-github/v43/github/issues.go b/vendor/github.com/google/go-github/v44/github/issues.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/issues.go rename to vendor/github.com/google/go-github/v44/github/issues.go diff --git a/vendor/github.com/google/go-github/v43/github/issues_assignees.go b/vendor/github.com/google/go-github/v44/github/issues_assignees.go similarity index 95% rename from vendor/github.com/google/go-github/v43/github/issues_assignees.go rename to vendor/github.com/google/go-github/v44/github/issues_assignees.go index 9f15aea43f..34e0bb506f 100644 --- a/vendor/github.com/google/go-github/v43/github/issues_assignees.go +++ b/vendor/github.com/google/go-github/v44/github/issues_assignees.go @@ -25,6 +25,7 @@ func (s *IssuesService) ListAssignees(ctx context.Context, owner, repo string, o if err != nil { return nil, nil, err } + var assignees []*User resp, err := s.client.Do(ctx, req, &assignees) if err != nil { @@ -43,6 +44,7 @@ func (s *IssuesService) IsAssignee(ctx context.Context, owner, repo, user string if err != nil { return false, nil, err } + resp, err := s.client.Do(ctx, req, nil) assignee, err := parseBoolResponse(err) return assignee, resp, err @@ -63,7 +65,11 @@ func (s *IssuesService) AddAssignees(ctx context.Context, owner, repo string, nu issue := &Issue{} resp, err := s.client.Do(ctx, req, issue) - return issue, resp, err + if err != nil { + return nil, resp, err + } + + return issue, resp, nil } // RemoveAssignees removes the provided GitHub users as assignees from the issue. @@ -81,5 +87,9 @@ func (s *IssuesService) RemoveAssignees(ctx context.Context, owner, repo string, issue := &Issue{} resp, err := s.client.Do(ctx, req, issue) - return issue, resp, err + if err != nil { + return nil, resp, err + } + + return issue, resp, nil } diff --git a/vendor/github.com/google/go-github/v43/github/issues_comments.go b/vendor/github.com/google/go-github/v44/github/issues_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/issues_comments.go rename to vendor/github.com/google/go-github/v44/github/issues_comments.go diff --git a/vendor/github.com/google/go-github/v43/github/issues_events.go b/vendor/github.com/google/go-github/v44/github/issues_events.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/issues_events.go rename to vendor/github.com/google/go-github/v44/github/issues_events.go diff --git a/vendor/github.com/google/go-github/v43/github/issues_labels.go b/vendor/github.com/google/go-github/v44/github/issues_labels.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/issues_labels.go rename to vendor/github.com/google/go-github/v44/github/issues_labels.go diff --git a/vendor/github.com/google/go-github/v43/github/issues_milestones.go b/vendor/github.com/google/go-github/v44/github/issues_milestones.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/issues_milestones.go rename to vendor/github.com/google/go-github/v44/github/issues_milestones.go diff --git a/vendor/github.com/google/go-github/v43/github/issues_timeline.go b/vendor/github.com/google/go-github/v44/github/issues_timeline.go similarity index 98% rename from vendor/github.com/google/go-github/v43/github/issues_timeline.go rename to vendor/github.com/google/go-github/v44/github/issues_timeline.go index 845e3f767c..d0ee0a78f2 100644 --- a/vendor/github.com/google/go-github/v43/github/issues_timeline.go +++ b/vendor/github.com/google/go-github/v44/github/issues_timeline.go @@ -180,5 +180,9 @@ func (s *IssuesService) ListIssueTimeline(ctx context.Context, owner, repo strin var events []*Timeline resp, err := s.client.Do(ctx, req, &events) - return events, resp, err + if err != nil { + return nil, resp, err + } + + return events, resp, nil } diff --git a/vendor/github.com/google/go-github/v43/github/licenses.go b/vendor/github.com/google/go-github/v44/github/licenses.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/licenses.go rename to vendor/github.com/google/go-github/v44/github/licenses.go diff --git a/vendor/github.com/google/go-github/v43/github/messages.go b/vendor/github.com/google/go-github/v44/github/messages.go similarity index 99% rename from vendor/github.com/google/go-github/v43/github/messages.go rename to vendor/github.com/google/go-github/v44/github/messages.go index c1e8161b67..324d3b80cc 100644 --- a/vendor/github.com/google/go-github/v43/github/messages.go +++ b/vendor/github.com/google/go-github/v44/github/messages.go @@ -81,6 +81,7 @@ var ( "pull_request": "PullRequestEvent", "pull_request_review": "PullRequestReviewEvent", "pull_request_review_comment": "PullRequestReviewCommentEvent", + "pull_request_review_thread": "PullRequestReviewThreadEvent", "pull_request_target": "PullRequestTargetEvent", "push": "PushEvent", "repository": "RepositoryEvent", diff --git a/vendor/github.com/google/go-github/v43/github/migrations.go b/vendor/github.com/google/go-github/v44/github/migrations.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/migrations.go rename to vendor/github.com/google/go-github/v44/github/migrations.go diff --git a/vendor/github.com/google/go-github/v43/github/migrations_source_import.go b/vendor/github.com/google/go-github/v44/github/migrations_source_import.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/migrations_source_import.go rename to vendor/github.com/google/go-github/v44/github/migrations_source_import.go diff --git a/vendor/github.com/google/go-github/v43/github/migrations_user.go b/vendor/github.com/google/go-github/v44/github/migrations_user.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/migrations_user.go rename to vendor/github.com/google/go-github/v44/github/migrations_user.go diff --git a/vendor/github.com/google/go-github/v43/github/misc.go b/vendor/github.com/google/go-github/v44/github/misc.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/misc.go rename to vendor/github.com/google/go-github/v44/github/misc.go diff --git a/vendor/github.com/google/go-github/v44/github/org_custom_roles.go b/vendor/github.com/google/go-github/v44/github/org_custom_roles.go new file mode 100644 index 0000000000..7c60fea07b --- /dev/null +++ b/vendor/github.com/google/go-github/v44/github/org_custom_roles.go @@ -0,0 +1,46 @@ +// Copyright 2022 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" +) + +// OrganizationCustomRepoRoles represents custom repository roles available in specified organization. +type OrganizationCustomRepoRoles struct { + TotalCount *int `json:"total_count,omitempty"` + CustomRepoRoles []*CustomRepoRoles `json:"custom_roles,omitempty"` +} + +// CustomRepoRoles represents custom repository roles for an organization. +// See https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization +// for more information. +type CustomRepoRoles struct { + ID *int64 `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// ListCustomRepoRoles lists the custom repository roles available in this organization. +// In order to see custom repository roles in an organization, the authenticated user must be an organization owner. +// +// GitHub API docs: https://docs.github.com/en/rest/orgs/custom-roles +func (s *OrganizationsService) ListCustomRepoRoles(ctx context.Context, org string) (*OrganizationCustomRepoRoles, *Response, error) { + u := fmt.Sprintf("organizations/%v/custom_roles", org) + + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + customRepoRoles := new(OrganizationCustomRepoRoles) + resp, err := s.client.Do(ctx, req, customRepoRoles) + if err != nil { + return nil, resp, err + } + + return customRepoRoles, resp, nil +} diff --git a/vendor/github.com/google/go-github/v43/github/orgs.go b/vendor/github.com/google/go-github/v44/github/orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/orgs.go rename to vendor/github.com/google/go-github/v44/github/orgs.go diff --git a/vendor/github.com/google/go-github/v43/github/orgs_actions_allowed.go b/vendor/github.com/google/go-github/v44/github/orgs_actions_allowed.go similarity index 89% rename from vendor/github.com/google/go-github/v43/github/orgs_actions_allowed.go rename to vendor/github.com/google/go-github/v44/github/orgs_actions_allowed.go index 9032d033b6..49bcb00f94 100644 --- a/vendor/github.com/google/go-github/v43/github/orgs_actions_allowed.go +++ b/vendor/github.com/google/go-github/v44/github/orgs_actions_allowed.go @@ -10,9 +10,9 @@ import ( "fmt" ) -// ActionsAllowed represents selected actions that are allowed in an organization. +// ActionsAllowed represents selected actions that are allowed. // -// GitHub API docs: https://docs.github.com/en/rest/reference/actions#get-allowed-actions-for-an-organization +// GitHub API docs: https://docs.github.com/en/rest/reference/actions#set-allowed-actions-and-workflows-for-an-organization--parameters type ActionsAllowed struct { GithubOwnedAllowed *bool `json:"github_owned_allowed,omitempty"` VerifiedAllowed *bool `json:"verified_allowed,omitempty"` @@ -52,7 +52,12 @@ func (s *OrganizationsService) EditActionsAllowed(ctx context.Context, org strin if err != nil { return nil, nil, err } + p := new(ActionsAllowed) resp, err := s.client.Do(ctx, req, p) - return p, resp, err + if err != nil { + return nil, resp, err + } + + return p, resp, nil } diff --git a/vendor/github.com/google/go-github/v43/github/orgs_actions_permissions.go b/vendor/github.com/google/go-github/v44/github/orgs_actions_permissions.go similarity index 96% rename from vendor/github.com/google/go-github/v43/github/orgs_actions_permissions.go rename to vendor/github.com/google/go-github/v44/github/orgs_actions_permissions.go index b8a10b2520..fc1fe31361 100644 --- a/vendor/github.com/google/go-github/v43/github/orgs_actions_permissions.go +++ b/vendor/github.com/google/go-github/v44/github/orgs_actions_permissions.go @@ -52,7 +52,12 @@ func (s *OrganizationsService) EditActionsPermissions(ctx context.Context, org s if err != nil { return nil, nil, err } + p := new(ActionsPermissions) resp, err := s.client.Do(ctx, req, p) - return p, resp, err + if err != nil { + return nil, resp, err + } + + return p, resp, nil } diff --git a/vendor/github.com/google/go-github/v43/github/orgs_audit_log.go b/vendor/github.com/google/go-github/v44/github/orgs_audit_log.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/orgs_audit_log.go rename to vendor/github.com/google/go-github/v44/github/orgs_audit_log.go diff --git a/vendor/github.com/google/go-github/v43/github/orgs_hooks.go b/vendor/github.com/google/go-github/v44/github/orgs_hooks.go similarity index 96% rename from vendor/github.com/google/go-github/v43/github/orgs_hooks.go rename to vendor/github.com/google/go-github/v44/github/orgs_hooks.go index dc90656878..26687e565b 100644 --- a/vendor/github.com/google/go-github/v43/github/orgs_hooks.go +++ b/vendor/github.com/google/go-github/v44/github/orgs_hooks.go @@ -43,9 +43,14 @@ func (s *OrganizationsService) GetHook(ctx context.Context, org string, id int64 if err != nil { return nil, nil, err } + hook := new(Hook) resp, err := s.client.Do(ctx, req, hook) - return hook, resp, err + if err != nil { + return nil, resp, err + } + + return hook, resp, nil } // CreateHook creates a Hook for the specified org. @@ -88,9 +93,14 @@ func (s *OrganizationsService) EditHook(ctx context.Context, org string, id int6 if err != nil { return nil, nil, err } + h := new(Hook) resp, err := s.client.Do(ctx, req, h) - return h, resp, err + if err != nil { + return nil, resp, err + } + + return h, resp, nil } // PingHook triggers a 'ping' event to be sent to the Hook. @@ -102,6 +112,7 @@ func (s *OrganizationsService) PingHook(ctx context.Context, org string, id int6 if err != nil { return nil, err } + return s.client.Do(ctx, req, nil) } @@ -114,5 +125,6 @@ func (s *OrganizationsService) DeleteHook(ctx context.Context, org string, id in if err != nil { return nil, err } + return s.client.Do(ctx, req, nil) } diff --git a/vendor/github.com/google/go-github/v43/github/orgs_hooks_deliveries.go b/vendor/github.com/google/go-github/v44/github/orgs_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/orgs_hooks_deliveries.go rename to vendor/github.com/google/go-github/v44/github/orgs_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v43/github/orgs_members.go b/vendor/github.com/google/go-github/v44/github/orgs_members.go similarity index 99% rename from vendor/github.com/google/go-github/v43/github/orgs_members.go rename to vendor/github.com/google/go-github/v44/github/orgs_members.go index f3a2f17c08..dd4845441f 100644 --- a/vendor/github.com/google/go-github/v43/github/orgs_members.go +++ b/vendor/github.com/google/go-github/v44/github/orgs_members.go @@ -295,6 +295,7 @@ func (s *OrganizationsService) ListPendingOrgInvitations(ctx context.Context, or if err != nil { return nil, resp, err } + return pendingInvitations, resp, nil } @@ -336,6 +337,7 @@ func (s *OrganizationsService) CreateOrgInvitation(ctx context.Context, org stri if err != nil { return nil, resp, err } + return invitation, resp, nil } @@ -360,6 +362,7 @@ func (s *OrganizationsService) ListOrgInvitationTeams(ctx context.Context, org, if err != nil { return nil, resp, err } + return orgInvitationTeams, resp, nil } diff --git a/vendor/github.com/google/go-github/v43/github/orgs_outside_collaborators.go b/vendor/github.com/google/go-github/v44/github/orgs_outside_collaborators.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/orgs_outside_collaborators.go rename to vendor/github.com/google/go-github/v44/github/orgs_outside_collaborators.go diff --git a/vendor/github.com/google/go-github/v43/github/orgs_packages.go b/vendor/github.com/google/go-github/v44/github/orgs_packages.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/orgs_packages.go rename to vendor/github.com/google/go-github/v44/github/orgs_packages.go diff --git a/vendor/github.com/google/go-github/v43/github/orgs_projects.go b/vendor/github.com/google/go-github/v44/github/orgs_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/orgs_projects.go rename to vendor/github.com/google/go-github/v44/github/orgs_projects.go diff --git a/vendor/github.com/google/go-github/v43/github/orgs_users_blocking.go b/vendor/github.com/google/go-github/v44/github/orgs_users_blocking.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/orgs_users_blocking.go rename to vendor/github.com/google/go-github/v44/github/orgs_users_blocking.go diff --git a/vendor/github.com/google/go-github/v43/github/packages.go b/vendor/github.com/google/go-github/v44/github/packages.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/packages.go rename to vendor/github.com/google/go-github/v44/github/packages.go diff --git a/vendor/github.com/google/go-github/v43/github/projects.go b/vendor/github.com/google/go-github/v44/github/projects.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/projects.go rename to vendor/github.com/google/go-github/v44/github/projects.go diff --git a/vendor/github.com/google/go-github/v43/github/pulls.go b/vendor/github.com/google/go-github/v44/github/pulls.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/pulls.go rename to vendor/github.com/google/go-github/v44/github/pulls.go diff --git a/vendor/github.com/google/go-github/v43/github/pulls_comments.go b/vendor/github.com/google/go-github/v44/github/pulls_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/pulls_comments.go rename to vendor/github.com/google/go-github/v44/github/pulls_comments.go diff --git a/vendor/github.com/google/go-github/v43/github/pulls_reviewers.go b/vendor/github.com/google/go-github/v44/github/pulls_reviewers.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/pulls_reviewers.go rename to vendor/github.com/google/go-github/v44/github/pulls_reviewers.go diff --git a/vendor/github.com/google/go-github/v43/github/pulls_reviews.go b/vendor/github.com/google/go-github/v44/github/pulls_reviews.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/pulls_reviews.go rename to vendor/github.com/google/go-github/v44/github/pulls_reviews.go diff --git a/vendor/github.com/google/go-github/v44/github/pulls_threads.go b/vendor/github.com/google/go-github/v44/github/pulls_threads.go new file mode 100644 index 0000000000..23e924d88f --- /dev/null +++ b/vendor/github.com/google/go-github/v44/github/pulls_threads.go @@ -0,0 +1,17 @@ +// Copyright 2022 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 + +// PullRequestThread represents a thread of comments on a pull request. +type PullRequestThread struct { + ID *int64 `json:"id,omitempty"` + NodeID *string `json:"node_id,omitempty"` + Comments []*PullRequestComment `json:"comments,omitempty"` +} + +func (p PullRequestThread) String() string { + return Stringify(p) +} diff --git a/vendor/github.com/google/go-github/v43/github/reactions.go b/vendor/github.com/google/go-github/v44/github/reactions.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/reactions.go rename to vendor/github.com/google/go-github/v44/github/reactions.go diff --git a/vendor/github.com/google/go-github/v43/github/repos.go b/vendor/github.com/google/go-github/v44/github/repos.go similarity index 98% rename from vendor/github.com/google/go-github/v43/github/repos.go rename to vendor/github.com/google/go-github/v44/github/repos.go index 2b1139b679..49a64ee730 100644 --- a/vendor/github.com/google/go-github/v43/github/repos.go +++ b/vendor/github.com/google/go-github/v44/github/repos.go @@ -63,6 +63,7 @@ type Repository struct { Organization *Organization `json:"organization,omitempty"` Permissions map[string]bool `json:"permissions,omitempty"` AllowRebaseMerge *bool `json:"allow_rebase_merge,omitempty"` + AllowUpdateBranch *bool `json:"allow_update_branch,omitempty"` AllowSquashMerge *bool `json:"allow_squash_merge,omitempty"` AllowMergeCommit *bool `json:"allow_merge_commit,omitempty"` AllowAutoMerge *bool `json:"allow_auto_merge,omitempty"` @@ -363,6 +364,7 @@ type createRepoRequest struct { AllowSquashMerge *bool `json:"allow_squash_merge,omitempty"` AllowMergeCommit *bool `json:"allow_merge_commit,omitempty"` AllowRebaseMerge *bool `json:"allow_rebase_merge,omitempty"` + AllowUpdateBranch *bool `json:"allow_update_branch,omitempty"` AllowAutoMerge *bool `json:"allow_auto_merge,omitempty"` AllowForking *bool `json:"allow_forking,omitempty"` DeleteBranchOnMerge *bool `json:"delete_branch_on_merge,omitempty"` @@ -407,6 +409,7 @@ func (s *RepositoriesService) Create(ctx context.Context, org string, repo *Repo AllowSquashMerge: repo.AllowSquashMerge, AllowMergeCommit: repo.AllowMergeCommit, AllowRebaseMerge: repo.AllowRebaseMerge, + AllowUpdateBranch: repo.AllowUpdateBranch, AllowAutoMerge: repo.AllowAutoMerge, AllowForking: repo.AllowForking, DeleteBranchOnMerge: repo.DeleteBranchOnMerge, @@ -614,7 +617,6 @@ func (s *RepositoriesService) GetVulnerabilityAlerts(ctx context.Context, owner, resp, err := s.client.Do(ctx, req, nil) vulnerabilityAlertsEnabled, err := parseBoolResponse(err) - return vulnerabilityAlertsEnabled, resp, err } @@ -1058,7 +1060,7 @@ func (s *RepositoriesService) ListBranches(ctx context.Context, owner string, re func (s *RepositoriesService) GetBranch(ctx context.Context, owner, repo, branch string, followRedirects bool) (*Branch, *Response, error) { u := fmt.Sprintf("repos/%v/%v/branches/%v", owner, repo, branch) - resp, err := s.getBranchFromURL(ctx, u, followRedirects) + resp, err := s.client.roundTripWithOptionalFollowRedirect(ctx, u, followRedirects) if err != nil { return nil, nil, err } @@ -1073,33 +1075,6 @@ func (s *RepositoriesService) GetBranch(ctx context.Context, owner, repo, branch return b, newResponse(resp), err } -func (s *RepositoriesService) getBranchFromURL(ctx context.Context, u string, followRedirects bool) (*http.Response, error) { - req, err := s.client.NewRequest("GET", u, nil) - if err != nil { - return nil, err - } - - var resp *http.Response - // Use http.DefaultTransport if no custom Transport is configured - req = withContext(ctx, req) - if s.client.client.Transport == nil { - resp, err = http.DefaultTransport.RoundTrip(req) - } else { - resp, err = s.client.client.Transport.RoundTrip(req) - } - if err != nil { - return nil, err - } - - // If redirect response is returned, follow it - if followRedirects && resp.StatusCode == http.StatusMovedPermanently { - resp.Body.Close() - u = resp.Header.Get("Location") - resp, err = s.getBranchFromURL(ctx, u, false) - } - return resp, err -} - // renameBranchRequest represents a request to rename a branch. type renameBranchRequest struct { NewName string `json:"new_name"` @@ -1273,7 +1248,7 @@ func (s *RepositoriesService) RequireSignaturesOnProtectedBranch(ctx context.Con return nil, resp, err } - return r, resp, err + return r, resp, nil } // OptionalSignaturesOnProtectedBranch removes required signed commits on a given branch. @@ -1385,7 +1360,7 @@ func (s *RepositoriesService) UpdatePullRequestReviewEnforcement(ctx context.Con return nil, resp, err } - return r, resp, err + return r, resp, nil } // DisableDismissalRestrictions disables dismissal restrictions of a protected branch. @@ -1413,7 +1388,7 @@ func (s *RepositoriesService) DisableDismissalRestrictions(ctx context.Context, return nil, resp, err } - return r, resp, err + return r, resp, nil } // RemovePullRequestReviewEnforcement removes pull request enforcement of a protected branch. @@ -1465,7 +1440,7 @@ func (s *RepositoriesService) AddAdminEnforcement(ctx context.Context, owner, re return nil, resp, err } - return r, resp, err + return r, resp, nil } // RemoveAdminEnforcement removes admin enforcement from a protected branch. diff --git a/vendor/github.com/google/go-github/v44/github/repos_actions_allowed.go b/vendor/github.com/google/go-github/v44/github/repos_actions_allowed.go new file mode 100644 index 0000000000..2770fcccf6 --- /dev/null +++ b/vendor/github.com/google/go-github/v44/github/repos_actions_allowed.go @@ -0,0 +1,49 @@ +// Copyright 2022 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" +) + +// GetActionsAllowed gets the actions that are allowed in a repository. +// +// GitHub API docs: https://docs.github.com/en/rest/reference/actions#get-allowed-actions-and-workflows-for-a-repository +func (s *RepositoriesService) GetActionsAllowed(ctx context.Context, org, repo string) (*ActionsAllowed, *Response, error) { + u := fmt.Sprintf("repos/%v/%v/actions/permissions/selected-actions", org, repo) + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + actionsAllowed := new(ActionsAllowed) + resp, err := s.client.Do(ctx, req, actionsAllowed) + if err != nil { + return nil, resp, err + } + + return actionsAllowed, resp, nil +} + +// EditActionsAllowed sets the actions that are allowed in a repository. +// +// GitHub API docs: https://docs.github.com/en/rest/reference/actions#set-allowed-actions-and-workflows-for-a-repository +func (s *RepositoriesService) EditActionsAllowed(ctx context.Context, org, repo string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) { + u := fmt.Sprintf("repos/%v/%v/actions/permissions/selected-actions", org, repo) + req, err := s.client.NewRequest("PUT", u, actionsAllowed) + if err != nil { + return nil, nil, err + } + + p := new(ActionsAllowed) + resp, err := s.client.Do(ctx, req, p) + if err != nil { + return nil, resp, err + } + + return p, resp, nil +} diff --git a/vendor/github.com/google/go-github/v44/github/repos_actions_permissions.go b/vendor/github.com/google/go-github/v44/github/repos_actions_permissions.go new file mode 100644 index 0000000000..bff8c2f5ab --- /dev/null +++ b/vendor/github.com/google/go-github/v44/github/repos_actions_permissions.go @@ -0,0 +1,62 @@ +// Copyright 2022 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" +) + +// ActionsPermissionsRepository represents a policy for repositories and allowed actions in a repository. +// +// GitHub API docs: https://docs.github.com/en/rest/reference/actions#set-github-actions-permissions-for-a-repository--parameters +type ActionsPermissionsRepository struct { + Enabled *bool `json:"enabled,omitempty"` + AllowedActions *string `json:"allowed_actions,omitempty"` + SelectedActionsURL *string `json:"selected_actions_url,omitempty"` +} + +func (a ActionsPermissionsRepository) String() string { + return Stringify(a) +} + +// GetActionsPermissions gets the GitHub Actions permissions policy for repositories and allowed actions in a repository. +// +// GitHub API docs: https://docs.github.com/en/rest/reference/actions#get-github-actions-permissions-for-a-repository +func (s *RepositoriesService) GetActionsPermissions(ctx context.Context, owner, repo string) (*ActionsPermissionsRepository, *Response, error) { + u := fmt.Sprintf("repos/%v/%v/actions/permissions", owner, repo) + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + permissions := new(ActionsPermissionsRepository) + resp, err := s.client.Do(ctx, req, permissions) + if err != nil { + return nil, resp, err + } + + return permissions, resp, nil +} + +// EditActionsPermissions sets the permissions policy for repositories and allowed actions in a repository. +// +// GitHub API docs: https://docs.github.com/en/rest/reference/actions#set-github-actions-permissions-for-a-repository +func (s *RepositoriesService) EditActionsPermissions(ctx context.Context, owner, repo string, actionsPermissionsRepository ActionsPermissionsRepository) (*ActionsPermissionsRepository, *Response, error) { + u := fmt.Sprintf("repos/%v/%v/actions/permissions", owner, repo) + req, err := s.client.NewRequest("PUT", u, actionsPermissionsRepository) + if err != nil { + return nil, nil, err + } + + permissions := new(ActionsPermissionsRepository) + resp, err := s.client.Do(ctx, req, permissions) + if err != nil { + return nil, resp, err + } + + return permissions, resp, nil +} diff --git a/vendor/github.com/google/go-github/v43/github/repos_autolinks.go b/vendor/github.com/google/go-github/v44/github/repos_autolinks.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_autolinks.go rename to vendor/github.com/google/go-github/v44/github/repos_autolinks.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_collaborators.go b/vendor/github.com/google/go-github/v44/github/repos_collaborators.go similarity index 99% rename from vendor/github.com/google/go-github/v43/github/repos_collaborators.go rename to vendor/github.com/google/go-github/v44/github/repos_collaborators.go index ccb97a192a..dcb97b5ed2 100644 --- a/vendor/github.com/google/go-github/v43/github/repos_collaborators.go +++ b/vendor/github.com/google/go-github/v44/github/repos_collaborators.go @@ -104,6 +104,7 @@ func (s *RepositoriesService) GetPermissionLevel(ctx context.Context, owner, rep if err != nil { return nil, resp, err } + return rpl, resp, nil } @@ -132,11 +133,13 @@ func (s *RepositoriesService) AddCollaborator(ctx context.Context, owner, repo, if err != nil { return nil, nil, err } + acr := new(CollaboratorInvitation) resp, err := s.client.Do(ctx, req, acr) if err != nil { return nil, resp, err } + return acr, resp, nil } @@ -150,5 +153,6 @@ func (s *RepositoriesService) RemoveCollaborator(ctx context.Context, owner, rep if err != nil { return nil, err } + return s.client.Do(ctx, req, nil) } diff --git a/vendor/github.com/google/go-github/v43/github/repos_comments.go b/vendor/github.com/google/go-github/v44/github/repos_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_comments.go rename to vendor/github.com/google/go-github/v44/github/repos_comments.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_commits.go b/vendor/github.com/google/go-github/v44/github/repos_commits.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_commits.go rename to vendor/github.com/google/go-github/v44/github/repos_commits.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_community_health.go b/vendor/github.com/google/go-github/v44/github/repos_community_health.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_community_health.go rename to vendor/github.com/google/go-github/v44/github/repos_community_health.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_contents.go b/vendor/github.com/google/go-github/v44/github/repos_contents.go similarity index 93% rename from vendor/github.com/google/go-github/v43/github/repos_contents.go rename to vendor/github.com/google/go-github/v44/github/repos_contents.go index 86e11c0a75..3175137250 100644 --- a/vendor/github.com/google/go-github/v43/github/repos_contents.go +++ b/vendor/github.com/google/go-github/v44/github/repos_contents.go @@ -102,15 +102,18 @@ func (s *RepositoriesService) GetReadme(ctx context.Context, owner, repo string, if err != nil { return nil, nil, err } + req, err := s.client.NewRequest("GET", u, nil) if err != nil { return nil, nil, err } + readme := new(RepositoryContent) resp, err := s.client.Do(ctx, req, readme) if err != nil { return nil, resp, err } + return readme, resp, nil } @@ -129,18 +132,22 @@ func (s *RepositoriesService) DownloadContents(ctx context.Context, owner, repo, if err != nil { return nil, resp, err } + for _, contents := range dirContents { if *contents.Name == filename { if contents.DownloadURL == nil || *contents.DownloadURL == "" { return nil, resp, fmt.Errorf("no download link found for %s", filepath) } + dlResp, err := s.client.client.Get(*contents.DownloadURL) if err != nil { return nil, &Response{Response: dlResp}, err } + return dlResp.Body, &Response{Response: dlResp}, nil } } + return nil, resp, fmt.Errorf("no file named %s found in %s", filename, dir) } @@ -159,18 +166,22 @@ func (s *RepositoriesService) DownloadContentsWithMeta(ctx context.Context, owne if err != nil { return nil, nil, resp, err } + for _, contents := range dirContents { if *contents.Name == filename { if contents.DownloadURL == nil || *contents.DownloadURL == "" { return nil, contents, resp, fmt.Errorf("no download link found for %s", filepath) } + dlResp, err := s.client.client.Get(*contents.DownloadURL) if err != nil { return nil, contents, &Response{Response: dlResp}, err } + return dlResp.Body, contents, &Response{Response: dlResp}, nil } } + return nil, nil, resp, fmt.Errorf("no file named %s found in %s", filename, dir) } @@ -189,23 +200,28 @@ func (s *RepositoriesService) GetContents(ctx context.Context, owner, repo, path if err != nil { return nil, nil, nil, err } + req, err := s.client.NewRequest("GET", u, nil) if err != nil { return nil, nil, nil, err } + var rawJSON json.RawMessage resp, err = s.client.Do(ctx, req, &rawJSON) if err != nil { return nil, nil, resp, err } + fileUnmarshalError := json.Unmarshal(rawJSON, &fileContent) if fileUnmarshalError == nil { return fileContent, nil, resp, nil } + directoryUnmarshalError := json.Unmarshal(rawJSON, &directoryContent) if directoryUnmarshalError == nil { return nil, directoryContent, resp, nil } + return nil, nil, resp, fmt.Errorf("unmarshalling failed for both file and directory content: %s and %s", fileUnmarshalError, directoryUnmarshalError) } @@ -219,11 +235,13 @@ func (s *RepositoriesService) CreateFile(ctx context.Context, owner, repo, path if err != nil { return nil, nil, err } + createResponse := new(RepositoryContentResponse) resp, err := s.client.Do(ctx, req, createResponse) if err != nil { return nil, resp, err } + return createResponse, resp, nil } @@ -237,11 +255,13 @@ func (s *RepositoriesService) UpdateFile(ctx context.Context, owner, repo, path if err != nil { return nil, nil, err } + updateResponse := new(RepositoryContentResponse) resp, err := s.client.Do(ctx, req, updateResponse) if err != nil { return nil, resp, err } + return updateResponse, resp, nil } @@ -255,11 +275,13 @@ func (s *RepositoriesService) DeleteFile(ctx context.Context, owner, repo, path if err != nil { return nil, nil, err } + deleteResponse := new(RepositoryContentResponse) resp, err := s.client.Do(ctx, req, deleteResponse) if err != nil { return nil, resp, err } + return deleteResponse, resp, nil } @@ -284,40 +306,16 @@ func (s *RepositoriesService) GetArchiveLink(ctx context.Context, owner, repo st if opts != nil && opts.Ref != "" { u += fmt.Sprintf("/%s", opts.Ref) } - resp, err := s.getArchiveLinkFromURL(ctx, u, followRedirects) + 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 } - -func (s *RepositoriesService) getArchiveLinkFromURL(ctx context.Context, u string, followRedirects bool) (*http.Response, error) { - req, err := s.client.NewRequest("GET", u, nil) - if err != nil { - return nil, err - } - - var resp *http.Response - // Use http.DefaultTransport if no custom Transport is configured - req = withContext(ctx, req) - if s.client.client.Transport == nil { - resp, err = http.DefaultTransport.RoundTrip(req) - } else { - resp, err = s.client.client.Transport.RoundTrip(req) - } - if err != nil { - return nil, err - } - resp.Body.Close() - - // If redirect response is returned, follow it - if followRedirects && resp.StatusCode == http.StatusMovedPermanently { - u = resp.Header.Get("Location") - resp, err = s.getArchiveLinkFromURL(ctx, u, false) - } - return resp, err -} diff --git a/vendor/github.com/google/go-github/v43/github/repos_deployments.go b/vendor/github.com/google/go-github/v44/github/repos_deployments.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_deployments.go rename to vendor/github.com/google/go-github/v44/github/repos_deployments.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_environments.go b/vendor/github.com/google/go-github/v44/github/repos_environments.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_environments.go rename to vendor/github.com/google/go-github/v44/github/repos_environments.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_forks.go b/vendor/github.com/google/go-github/v44/github/repos_forks.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_forks.go rename to vendor/github.com/google/go-github/v44/github/repos_forks.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_hooks.go b/vendor/github.com/google/go-github/v44/github/repos_hooks.go similarity index 78% rename from vendor/github.com/google/go-github/v43/github/repos_hooks.go rename to vendor/github.com/google/go-github/v44/github/repos_hooks.go index 6afec86039..61c8521993 100644 --- a/vendor/github.com/google/go-github/v43/github/repos_hooks.go +++ b/vendor/github.com/google/go-github/v44/github/repos_hooks.go @@ -18,57 +18,22 @@ import ( // here to account for these differences. // // GitHub API docs: https://help.github.com/articles/post-receive-hooks -type WebHookPayload struct { - Action *string `json:"action,omitempty"` - After *string `json:"after,omitempty"` - Before *string `json:"before,omitempty"` - Commits []*WebHookCommit `json:"commits,omitempty"` - Compare *string `json:"compare,omitempty"` - Created *bool `json:"created,omitempty"` - Deleted *bool `json:"deleted,omitempty"` - Forced *bool `json:"forced,omitempty"` - HeadCommit *WebHookCommit `json:"head_commit,omitempty"` - Installation *Installation `json:"installation,omitempty"` - Organization *Organization `json:"organization,omitempty"` - Pusher *User `json:"pusher,omitempty"` - Ref *string `json:"ref,omitempty"` - Repo *Repository `json:"repository,omitempty"` - Sender *User `json:"sender,omitempty"` -} - -func (w WebHookPayload) String() string { - return Stringify(w) -} +// +// Deprecated: Please use PushEvent instead. +type WebHookPayload = PushEvent // WebHookCommit represents the commit variant we receive from GitHub in a // WebHookPayload. -type WebHookCommit struct { - Added []string `json:"added,omitempty"` - Author *WebHookAuthor `json:"author,omitempty"` - Committer *WebHookAuthor `json:"committer,omitempty"` - Distinct *bool `json:"distinct,omitempty"` - ID *string `json:"id,omitempty"` - Message *string `json:"message,omitempty"` - Modified []string `json:"modified,omitempty"` - Removed []string `json:"removed,omitempty"` - Timestamp *time.Time `json:"timestamp,omitempty"` -} - -func (w WebHookCommit) String() string { - return Stringify(w) -} +// +// Deprecated: Please use HeadCommit instead. +type WebHookCommit = HeadCommit // WebHookAuthor represents the author or committer of a commit, as specified // in a WebHookCommit. The commit author may not correspond to a GitHub User. -type WebHookAuthor struct { - Email *string `json:"email,omitempty"` - Name *string `json:"name,omitempty"` - Username *string `json:"username,omitempty"` -} - -func (w WebHookAuthor) String() string { - return Stringify(w) -} +// +// Deprecated: Please use CommitAuthor instead. +// NOTE Breaking API change: the `Username` field is now called `Login`. +type WebHookAuthor = CommitAuthor // Hook represents a GitHub (web and service) hook for a repository. type Hook struct { diff --git a/vendor/github.com/google/go-github/v43/github/repos_hooks_deliveries.go b/vendor/github.com/google/go-github/v44/github/repos_hooks_deliveries.go similarity index 85% rename from vendor/github.com/google/go-github/v43/github/repos_hooks_deliveries.go rename to vendor/github.com/google/go-github/v44/github/repos_hooks_deliveries.go index 1713269519..7420b59e7c 100644 --- a/vendor/github.com/google/go-github/v43/github/repos_hooks_deliveries.go +++ b/vendor/github.com/google/go-github/v44/github/repos_hooks_deliveries.go @@ -104,6 +104,25 @@ func (s *RepositoriesService) GetHookDelivery(ctx context.Context, owner, repo s return h, resp, nil } +// RedeliverHookDelivery redelivers a delivery for a webhook configured in a repository. +// +// GitHub API docs: https://docs.github.com/en/rest/reference/webhooks#redeliver-a-delivery-for-a-repository-webhook +func (s *RepositoriesService) RedeliverHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error) { + u := fmt.Sprintf("repos/%v/%v/hooks/%v/deliveries/%v/attempts", owner, repo, hookID, deliveryID) + req, err := s.client.NewRequest("POST", u, nil) + if err != nil { + return nil, nil, err + } + + h := new(HookDelivery) + resp, err := s.client.Do(ctx, req, h) + if err != nil { + return nil, resp, err + } + + return h, resp, nil +} + // ParseRequestPayload parses the request payload. For recognized event types, // a value of the corresponding struct type will be returned. func (d *HookDelivery) ParseRequestPayload() (interface{}, error) { diff --git a/vendor/github.com/google/go-github/v43/github/repos_invitations.go b/vendor/github.com/google/go-github/v44/github/repos_invitations.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_invitations.go rename to vendor/github.com/google/go-github/v44/github/repos_invitations.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_keys.go b/vendor/github.com/google/go-github/v44/github/repos_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_keys.go rename to vendor/github.com/google/go-github/v44/github/repos_keys.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_merging.go b/vendor/github.com/google/go-github/v44/github/repos_merging.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_merging.go rename to vendor/github.com/google/go-github/v44/github/repos_merging.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_pages.go b/vendor/github.com/google/go-github/v44/github/repos_pages.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_pages.go rename to vendor/github.com/google/go-github/v44/github/repos_pages.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_prereceive_hooks.go b/vendor/github.com/google/go-github/v44/github/repos_prereceive_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_prereceive_hooks.go rename to vendor/github.com/google/go-github/v44/github/repos_prereceive_hooks.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_projects.go b/vendor/github.com/google/go-github/v44/github/repos_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_projects.go rename to vendor/github.com/google/go-github/v44/github/repos_projects.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_releases.go b/vendor/github.com/google/go-github/v44/github/repos_releases.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_releases.go rename to vendor/github.com/google/go-github/v44/github/repos_releases.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_stats.go b/vendor/github.com/google/go-github/v44/github/repos_stats.go similarity index 98% rename from vendor/github.com/google/go-github/v43/github/repos_stats.go rename to vendor/github.com/google/go-github/v44/github/repos_stats.go index 73f0a6768a..756dbc21b6 100644 --- a/vendor/github.com/google/go-github/v43/github/repos_stats.go +++ b/vendor/github.com/google/go-github/v44/github/repos_stats.go @@ -121,6 +121,9 @@ func (s *RepositoriesService) ListCodeFrequency(ctx context.Context, owner, repo var weeks [][]int resp, err := s.client.Do(ctx, req, &weeks) + if err != nil { + return nil, resp, err + } // convert int slices into WeeklyStats var stats []*WeeklyStats @@ -136,7 +139,7 @@ func (s *RepositoriesService) ListCodeFrequency(ctx context.Context, owner, repo stats = append(stats, stat) } - return stats, resp, err + return stats, resp, nil } // RepositoryParticipation is the number of commits by everyone @@ -207,6 +210,9 @@ func (s *RepositoriesService) ListPunchCard(ctx context.Context, owner, repo str var results [][]int resp, err := s.client.Do(ctx, req, &results) + if err != nil { + return nil, resp, err + } // convert int slices into Punchcards var cards []*PunchCard @@ -222,5 +228,5 @@ func (s *RepositoriesService) ListPunchCard(ctx context.Context, owner, repo str cards = append(cards, card) } - return cards, resp, err + return cards, resp, nil } diff --git a/vendor/github.com/google/go-github/v43/github/repos_statuses.go b/vendor/github.com/google/go-github/v44/github/repos_statuses.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_statuses.go rename to vendor/github.com/google/go-github/v44/github/repos_statuses.go diff --git a/vendor/github.com/google/go-github/v43/github/repos_traffic.go b/vendor/github.com/google/go-github/v44/github/repos_traffic.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/repos_traffic.go rename to vendor/github.com/google/go-github/v44/github/repos_traffic.go diff --git a/vendor/github.com/google/go-github/v43/github/scim.go b/vendor/github.com/google/go-github/v44/github/scim.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/scim.go rename to vendor/github.com/google/go-github/v44/github/scim.go diff --git a/vendor/github.com/google/go-github/v43/github/search.go b/vendor/github.com/google/go-github/v44/github/search.go similarity index 96% rename from vendor/github.com/google/go-github/v43/github/search.go rename to vendor/github.com/google/go-github/v44/github/search.go index 19aa892798..a3da304c51 100644 --- a/vendor/github.com/google/go-github/v43/github/search.go +++ b/vendor/github.com/google/go-github/v44/github/search.go @@ -73,7 +73,11 @@ type RepositoriesSearchResult struct { func (s *SearchService) Repositories(ctx context.Context, query string, opts *SearchOptions) (*RepositoriesSearchResult, *Response, error) { result := new(RepositoriesSearchResult) resp, err := s.search(ctx, "repositories", &searchParameters{Query: query}, opts, result) - return result, resp, err + if err != nil { + return nil, resp, err + } + + return result, resp, nil } // TopicsSearchResult represents the result of a topics search. @@ -104,7 +108,11 @@ type TopicResult struct { func (s *SearchService) Topics(ctx context.Context, query string, opts *SearchOptions) (*TopicsSearchResult, *Response, error) { result := new(TopicsSearchResult) resp, err := s.search(ctx, "topics", &searchParameters{Query: query}, opts, result) - return result, resp, err + if err != nil { + return nil, resp, err + } + + return result, resp, nil } // CommitsSearchResult represents the result of a commits search. @@ -135,7 +143,11 @@ type CommitResult struct { func (s *SearchService) Commits(ctx context.Context, query string, opts *SearchOptions) (*CommitsSearchResult, *Response, error) { result := new(CommitsSearchResult) resp, err := s.search(ctx, "commits", &searchParameters{Query: query}, opts, result) - return result, resp, err + if err != nil { + return nil, resp, err + } + + return result, resp, nil } // IssuesSearchResult represents the result of an issues search. @@ -151,7 +163,11 @@ type IssuesSearchResult struct { func (s *SearchService) Issues(ctx context.Context, query string, opts *SearchOptions) (*IssuesSearchResult, *Response, error) { result := new(IssuesSearchResult) resp, err := s.search(ctx, "issues", &searchParameters{Query: query}, opts, result) - return result, resp, err + if err != nil { + return nil, resp, err + } + + return result, resp, nil } // UsersSearchResult represents the result of a users search. @@ -167,7 +183,11 @@ type UsersSearchResult struct { func (s *SearchService) Users(ctx context.Context, query string, opts *SearchOptions) (*UsersSearchResult, *Response, error) { result := new(UsersSearchResult) resp, err := s.search(ctx, "users", &searchParameters{Query: query}, opts, result) - return result, resp, err + if err != nil { + return nil, resp, err + } + + return result, resp, nil } // Match represents a single text match. @@ -216,7 +236,11 @@ func (c CodeResult) String() string { func (s *SearchService) Code(ctx context.Context, query string, opts *SearchOptions) (*CodeSearchResult, *Response, error) { result := new(CodeSearchResult) resp, err := s.search(ctx, "code", &searchParameters{Query: query}, opts, result) - return result, resp, err + if err != nil { + return nil, resp, err + } + + return result, resp, nil } // LabelsSearchResult represents the result of a code search. @@ -247,7 +271,11 @@ func (l LabelResult) String() string { func (s *SearchService) Labels(ctx context.Context, repoID int64, query string, opts *SearchOptions) (*LabelsSearchResult, *Response, error) { result := new(LabelsSearchResult) resp, err := s.search(ctx, "labels", &searchParameters{RepositoryID: &repoID, Query: query}, opts, result) - return result, resp, err + if err != nil { + return nil, resp, err + } + + return result, resp, nil } // Helper function that executes search queries against different @@ -260,6 +288,7 @@ func (s *SearchService) search(ctx context.Context, searchType string, parameter if err != nil { return nil, err } + if parameters.RepositoryID != nil { params.Set("repository_id", strconv.FormatInt(*parameters.RepositoryID, 10)) } diff --git a/vendor/github.com/google/go-github/v43/github/secret_scanning.go b/vendor/github.com/google/go-github/v44/github/secret_scanning.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/secret_scanning.go rename to vendor/github.com/google/go-github/v44/github/secret_scanning.go diff --git a/vendor/github.com/google/go-github/v43/github/strings.go b/vendor/github.com/google/go-github/v44/github/strings.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/strings.go rename to vendor/github.com/google/go-github/v44/github/strings.go diff --git a/vendor/github.com/google/go-github/v43/github/teams.go b/vendor/github.com/google/go-github/v44/github/teams.go similarity index 99% rename from vendor/github.com/google/go-github/v43/github/teams.go rename to vendor/github.com/google/go-github/v44/github/teams.go index 82d4093b47..5b1096ea29 100644 --- a/vendor/github.com/google/go-github/v43/github/teams.go +++ b/vendor/github.com/google/go-github/v44/github/teams.go @@ -771,6 +771,7 @@ func (s *TeamsService) ListIDPGroupsInOrganization(ctx context.Context, org stri if err != nil { return nil, resp, err } + return groups, resp, nil } @@ -791,7 +792,8 @@ func (s *TeamsService) ListIDPGroupsForTeamByID(ctx context.Context, orgID, team if err != nil { return nil, resp, err } - return groups, resp, err + + return groups, resp, nil } // ListIDPGroupsForTeamBySlug lists IDP groups connected to a team on GitHub @@ -811,7 +813,8 @@ func (s *TeamsService) ListIDPGroupsForTeamBySlug(ctx context.Context, org, slug if err != nil { return nil, resp, err } - return groups, resp, err + + return groups, resp, nil } // CreateOrUpdateIDPGroupConnectionsByID creates, updates, or removes a connection diff --git a/vendor/github.com/google/go-github/v43/github/teams_discussion_comments.go b/vendor/github.com/google/go-github/v44/github/teams_discussion_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/teams_discussion_comments.go rename to vendor/github.com/google/go-github/v44/github/teams_discussion_comments.go diff --git a/vendor/github.com/google/go-github/v43/github/teams_discussions.go b/vendor/github.com/google/go-github/v44/github/teams_discussions.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/teams_discussions.go rename to vendor/github.com/google/go-github/v44/github/teams_discussions.go diff --git a/vendor/github.com/google/go-github/v43/github/teams_members.go b/vendor/github.com/google/go-github/v44/github/teams_members.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/teams_members.go rename to vendor/github.com/google/go-github/v44/github/teams_members.go diff --git a/vendor/github.com/google/go-github/v43/github/timestamp.go b/vendor/github.com/google/go-github/v44/github/timestamp.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/timestamp.go rename to vendor/github.com/google/go-github/v44/github/timestamp.go diff --git a/vendor/github.com/google/go-github/v43/github/users.go b/vendor/github.com/google/go-github/v44/github/users.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/users.go rename to vendor/github.com/google/go-github/v44/github/users.go diff --git a/vendor/github.com/google/go-github/v43/github/users_administration.go b/vendor/github.com/google/go-github/v44/github/users_administration.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/users_administration.go rename to vendor/github.com/google/go-github/v44/github/users_administration.go diff --git a/vendor/github.com/google/go-github/v43/github/users_blocking.go b/vendor/github.com/google/go-github/v44/github/users_blocking.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/users_blocking.go rename to vendor/github.com/google/go-github/v44/github/users_blocking.go diff --git a/vendor/github.com/google/go-github/v43/github/users_emails.go b/vendor/github.com/google/go-github/v44/github/users_emails.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/users_emails.go rename to vendor/github.com/google/go-github/v44/github/users_emails.go diff --git a/vendor/github.com/google/go-github/v43/github/users_followers.go b/vendor/github.com/google/go-github/v44/github/users_followers.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/users_followers.go rename to vendor/github.com/google/go-github/v44/github/users_followers.go diff --git a/vendor/github.com/google/go-github/v43/github/users_gpg_keys.go b/vendor/github.com/google/go-github/v44/github/users_gpg_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/users_gpg_keys.go rename to vendor/github.com/google/go-github/v44/github/users_gpg_keys.go diff --git a/vendor/github.com/google/go-github/v43/github/users_keys.go b/vendor/github.com/google/go-github/v44/github/users_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/users_keys.go rename to vendor/github.com/google/go-github/v44/github/users_keys.go diff --git a/vendor/github.com/google/go-github/v43/github/users_packages.go b/vendor/github.com/google/go-github/v44/github/users_packages.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/users_packages.go rename to vendor/github.com/google/go-github/v44/github/users_packages.go diff --git a/vendor/github.com/google/go-github/v43/github/users_projects.go b/vendor/github.com/google/go-github/v44/github/users_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/users_projects.go rename to vendor/github.com/google/go-github/v44/github/users_projects.go diff --git a/vendor/github.com/google/go-github/v43/github/with_appengine.go b/vendor/github.com/google/go-github/v44/github/with_appengine.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/with_appengine.go rename to vendor/github.com/google/go-github/v44/github/with_appengine.go diff --git a/vendor/github.com/google/go-github/v43/github/without_appengine.go b/vendor/github.com/google/go-github/v44/github/without_appengine.go similarity index 100% rename from vendor/github.com/google/go-github/v43/github/without_appengine.go rename to vendor/github.com/google/go-github/v44/github/without_appengine.go diff --git a/vendor/modules.txt b/vendor/modules.txt index 404481f23b..bf26c5be22 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -174,15 +174,15 @@ github.com/golangci/prealloc github.com/golangci/revgrep # github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 github.com/golangci/unconvert -# github.com/google/go-cmp v0.5.7 +# github.com/google/go-cmp v0.5.8 github.com/google/go-cmp/cmp 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/v43 v43.0.0 +# github.com/google/go-github/v44 v44.1.0 ## explicit -github.com/google/go-github/v43/github +github.com/google/go-github/v44/github # github.com/google/go-querystring v1.1.0 github.com/google/go-querystring/query # github.com/google/uuid v1.1.1