From f2f577895d62ffff07d2acb7cd6f8ea65a3b30aa Mon Sep 17 00:00:00 2001 From: Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> Date: Tue, 5 Nov 2024 08:20:14 -0800 Subject: [PATCH] Excavator: Manage go module dependencies (#864) --- go.mod | 4 +- go.sum | 8 +- policy/predicate/status_test.go | 2 +- pull/github.go | 2 +- pull/github_membership.go | 2 +- pull/github_test.go | 2 +- pull/list_teams.go | 2 +- server/handler/base.go | 2 +- server/handler/check_run.go | 2 +- server/handler/cross_org.go | 2 +- server/handler/details.go | 2 +- server/handler/eval_context.go | 2 +- server/handler/eval_context_reviewers.go | 2 +- server/handler/fetcher.go | 2 +- server/handler/installation.go | 2 +- server/handler/issue_comment.go | 2 +- server/handler/login.go | 2 +- server/handler/merge_group.go | 2 +- server/handler/pull_request.go | 2 +- server/handler/pull_request_review.go | 2 +- server/handler/status.go | 2 +- server/handler/workflow_run.go | 2 +- .../google/go-github/{v65 => v66}/AUTHORS | 51 +++- .../google/go-github/{v65 => v66}/LICENSE | 0 .../go-github/{v65 => v66}/github/actions.go | 0 .../{v65 => v66}/github/actions_artifacts.go | 0 .../{v65 => v66}/github/actions_cache.go | 4 +- .../{v65 => v66}/github/actions_oidc.go | 0 .../github/actions_permissions_enterprise.go | 0 .../github/actions_permissions_orgs.go | 0 .../github/actions_required_workflows.go | 0 .../github/actions_runner_groups.go | 0 .../{v65 => v66}/github/actions_runners.go | 0 .../{v65 => v66}/github/actions_secrets.go | 0 .../{v65 => v66}/github/actions_variables.go | 0 .../github/actions_workflow_jobs.go | 0 .../github/actions_workflow_runs.go | 64 +++++ .../{v65 => v66}/github/actions_workflows.go | 0 .../go-github/{v65 => v66}/github/activity.go | 0 .../{v65 => v66}/github/activity_events.go | 0 .../github/activity_notifications.go | 17 ++ .../{v65 => v66}/github/activity_star.go | 0 .../{v65 => v66}/github/activity_watching.go | 0 .../go-github/{v65 => v66}/github/admin.go | 0 .../{v65 => v66}/github/admin_orgs.go | 0 .../{v65 => v66}/github/admin_stats.go | 0 .../{v65 => v66}/github/admin_users.go | 0 .../go-github/{v65 => v66}/github/apps.go | 0 .../{v65 => v66}/github/apps_hooks.go | 0 .../github/apps_hooks_deliveries.go | 0 .../{v65 => v66}/github/apps_installation.go | 0 .../{v65 => v66}/github/apps_manifest.go | 0 .../{v65 => v66}/github/apps_marketplace.go | 0 .../{v65 => v66}/github/authorizations.go | 0 .../go-github/{v65 => v66}/github/billing.go | 0 .../go-github/{v65 => v66}/github/checks.go | 5 +- .../{v65 => v66}/github/code-scanning.go | 0 .../{v65 => v66}/github/codesofconduct.go | 0 .../{v65 => v66}/github/codespaces.go | 0 .../{v65 => v66}/github/codespaces_secrets.go | 0 .../go-github/{v65 => v66}/github/copilot.go | 0 .../{v65 => v66}/github/dependabot.go | 0 .../{v65 => v66}/github/dependabot_alerts.go | 0 .../{v65 => v66}/github/dependabot_secrets.go | 0 .../{v65 => v66}/github/dependency_graph.go | 0 .../github/dependency_graph_snapshots.go | 0 .../go-github/{v65 => v66}/github/doc.go | 4 +- .../go-github/{v65 => v66}/github/emojis.go | 0 .../{v65 => v66}/github/enterprise.go | 0 .../enterprise_actions_runner_groups.go | 0 .../github/enterprise_actions_runners.go | 0 .../github/enterprise_audit_log.go | 0 .../enterprise_code_security_and_analysis.go | 0 .../go-github/{v65 => v66}/github/event.go | 0 .../{v65 => v66}/github/event_types.go | 40 +++ .../go-github/{v65 => v66}/github/gists.go | 0 .../{v65 => v66}/github/gists_comments.go | 0 .../go-github/{v65 => v66}/github/git.go | 0 .../{v65 => v66}/github/git_blobs.go | 0 .../{v65 => v66}/github/git_commits.go | 0 .../go-github/{v65 => v66}/github/git_refs.go | 0 .../go-github/{v65 => v66}/github/git_tags.go | 0 .../{v65 => v66}/github/git_trees.go | 0 .../{v65 => v66}/github/github-accessors.go | 272 ++++++++++++++++++ .../go-github/{v65 => v66}/github/github.go | 4 +- .../{v65 => v66}/github/gitignore.go | 0 .../{v65 => v66}/github/interactions.go | 0 .../{v65 => v66}/github/interactions_orgs.go | 0 .../{v65 => v66}/github/interactions_repos.go | 0 .../{v65 => v66}/github/issue_import.go | 0 .../go-github/{v65 => v66}/github/issues.go | 0 .../{v65 => v66}/github/issues_assignees.go | 0 .../{v65 => v66}/github/issues_comments.go | 0 .../{v65 => v66}/github/issues_events.go | 0 .../{v65 => v66}/github/issues_labels.go | 0 .../{v65 => v66}/github/issues_milestones.go | 0 .../{v65 => v66}/github/issues_timeline.go | 0 .../go-github/{v65 => v66}/github/licenses.go | 0 .../go-github/{v65 => v66}/github/markdown.go | 0 .../go-github/{v65 => v66}/github/messages.go | 1 + .../go-github/{v65 => v66}/github/meta.go | 0 .../{v65 => v66}/github/migrations.go | 0 .../github/migrations_source_import.go | 2 +- .../{v65 => v66}/github/migrations_user.go | 0 .../go-github/{v65 => v66}/github/orgs.go | 0 .../github/orgs_actions_allowed.go | 0 .../github/orgs_actions_permissions.go | 0 .../{v65 => v66}/github/orgs_audit_log.go | 0 .../github/orgs_credential_authorizations.go | 12 +- .../github/orgs_custom_repository_roles.go | 131 +++++++++ .../{v65 => v66}/github/orgs_hooks.go | 0 .../github/orgs_hooks_configuration.go | 0 .../github/orgs_hooks_deliveries.go | 0 .../{v65 => v66}/github/orgs_members.go | 16 +- .../github/orgs_organization_roles.go} | 134 ++++----- .../github/orgs_outside_collaborators.go | 0 .../{v65 => v66}/github/orgs_packages.go | 0 .../github/orgs_personal_access_tokens.go | 0 .../{v65 => v66}/github/orgs_projects.go | 0 .../{v65 => v66}/github/orgs_properties.go | 2 +- .../{v65 => v66}/github/orgs_rules.go | 0 .../github/orgs_security_managers.go | 0 .../github/orgs_users_blocking.go | 0 .../go-github/{v65 => v66}/github/packages.go | 0 .../go-github/{v65 => v66}/github/projects.go | 0 .../go-github/{v65 => v66}/github/pulls.go | 0 .../{v65 => v66}/github/pulls_comments.go | 0 .../{v65 => v66}/github/pulls_reviewers.go | 0 .../{v65 => v66}/github/pulls_reviews.go | 0 .../{v65 => v66}/github/pulls_threads.go | 0 .../{v65 => v66}/github/rate_limit.go | 0 .../{v65 => v66}/github/reactions.go | 0 .../go-github/{v65 => v66}/github/repos.go | 4 +- .../github/repos_actions_access.go | 0 .../github/repos_actions_allowed.go | 0 .../github/repos_actions_permissions.go | 0 .../{v65 => v66}/github/repos_autolinks.go | 0 .../{v65 => v66}/github/repos_codeowners.go | 0 .../github/repos_collaborators.go | 0 .../{v65 => v66}/github/repos_comments.go | 0 .../{v65 => v66}/github/repos_commits.go | 0 .../github/repos_community_health.go | 0 .../{v65 => v66}/github/repos_contents.go | 0 .../repos_deployment_branch_policies.go | 0 .../repos_deployment_protection_rules.go | 0 .../{v65 => v66}/github/repos_deployments.go | 0 .../{v65 => v66}/github/repos_environments.go | 0 .../{v65 => v66}/github/repos_forks.go | 0 .../{v65 => v66}/github/repos_hooks.go | 0 .../github/repos_hooks_configuration.go | 0 .../github/repos_hooks_deliveries.go | 0 .../{v65 => v66}/github/repos_invitations.go | 0 .../{v65 => v66}/github/repos_keys.go | 0 .../{v65 => v66}/github/repos_lfs.go | 0 .../{v65 => v66}/github/repos_merging.go | 0 .../{v65 => v66}/github/repos_pages.go | 0 .../github/repos_prereceive_hooks.go | 0 .../{v65 => v66}/github/repos_projects.go | 0 .../{v65 => v66}/github/repos_properties.go | 0 .../{v65 => v66}/github/repos_releases.go | 0 .../{v65 => v66}/github/repos_rules.go | 80 +++++- .../{v65 => v66}/github/repos_stats.go | 0 .../{v65 => v66}/github/repos_statuses.go | 0 .../{v65 => v66}/github/repos_tags.go | 0 .../{v65 => v66}/github/repos_traffic.go | 0 .../go-github/{v65 => v66}/github/scim.go | 0 .../go-github/{v65 => v66}/github/search.go | 0 .../{v65 => v66}/github/secret_scanning.go | 0 .../github/security_advisories.go | 0 .../go-github/{v65 => v66}/github/strings.go | 20 +- .../go-github/{v65 => v66}/github/teams.go | 28 +- .../github/teams_discussion_comments.go | 6 +- .../{v65 => v66}/github/teams_discussions.go | 2 +- .../{v65 => v66}/github/teams_members.go | 0 .../{v65 => v66}/github/timestamp.go | 0 .../go-github/{v65 => v66}/github/users.go | 0 .../github/users_administration.go | 0 .../{v65 => v66}/github/users_blocking.go | 0 .../{v65 => v66}/github/users_emails.go | 4 +- .../{v65 => v66}/github/users_followers.go | 0 .../{v65 => v66}/github/users_gpg_keys.go | 2 +- .../{v65 => v66}/github/users_keys.go | 0 .../{v65 => v66}/github/users_packages.go | 0 .../{v65 => v66}/github/users_projects.go | 0 .../github/users_ssh_signing_keys.go | 0 .../{v65 => v66}/github/with_appengine.go | 0 .../{v65 => v66}/github/without_appengine.go | 0 .../go-githubapp/appconfig/appconfig.go | 2 +- .../githubapp/caching_client_creator.go | 2 +- .../go-githubapp/githubapp/client_creator.go | 2 +- .../go-githubapp/githubapp/context.go | 2 +- .../go-githubapp/githubapp/dispatcher.go | 2 +- .../go-githubapp/githubapp/installations.go | 2 +- vendor/modules.txt | 8 +- 194 files changed, 825 insertions(+), 152 deletions(-) rename vendor/github.com/google/go-github/{v65 => v66}/AUTHORS (90%) rename vendor/github.com/google/go-github/{v65 => v66}/LICENSE (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_artifacts.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_cache.go (98%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_oidc.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_permissions_enterprise.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_permissions_orgs.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_required_workflows.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_runner_groups.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_runners.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_secrets.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_variables.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_workflow_jobs.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_workflow_runs.go (85%) rename vendor/github.com/google/go-github/{v65 => v66}/github/actions_workflows.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/activity.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/activity_events.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/activity_notifications.go (92%) rename vendor/github.com/google/go-github/{v65 => v66}/github/activity_star.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/activity_watching.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/admin.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/admin_orgs.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/admin_stats.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/admin_users.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/apps.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/apps_hooks.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/apps_hooks_deliveries.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/apps_installation.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/apps_manifest.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/apps_marketplace.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/authorizations.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/billing.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/checks.go (98%) rename vendor/github.com/google/go-github/{v65 => v66}/github/code-scanning.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/codesofconduct.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/codespaces.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/codespaces_secrets.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/copilot.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/dependabot.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/dependabot_alerts.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/dependabot_secrets.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/dependency_graph.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/dependency_graph_snapshots.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/doc.go (98%) rename vendor/github.com/google/go-github/{v65 => v66}/github/emojis.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/enterprise.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/enterprise_actions_runner_groups.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/enterprise_actions_runners.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/enterprise_audit_log.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/enterprise_code_security_and_analysis.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/event.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/event_types.go (97%) rename vendor/github.com/google/go-github/{v65 => v66}/github/gists.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/gists_comments.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/git.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/git_blobs.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/git_commits.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/git_refs.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/git_tags.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/git_trees.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/github-accessors.go (98%) rename vendor/github.com/google/go-github/{v65 => v66}/github/github.go (99%) rename vendor/github.com/google/go-github/{v65 => v66}/github/gitignore.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/interactions.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/interactions_orgs.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/interactions_repos.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/issue_import.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/issues.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/issues_assignees.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/issues_comments.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/issues_events.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/issues_labels.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/issues_milestones.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/issues_timeline.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/licenses.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/markdown.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/messages.go (99%) rename vendor/github.com/google/go-github/{v65 => v66}/github/meta.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/migrations.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/migrations_source_import.go (99%) rename vendor/github.com/google/go-github/{v65 => v66}/github/migrations_user.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_actions_allowed.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_actions_permissions.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_audit_log.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_credential_authorizations.go (83%) create mode 100644 vendor/github.com/google/go-github/v66/github/orgs_custom_repository_roles.go rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_hooks.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_hooks_configuration.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_hooks_deliveries.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_members.go (95%) rename vendor/github.com/google/go-github/{v65/github/orgs_custom_roles.go => v66/github/orgs_organization_roles.go} (61%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_outside_collaborators.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_packages.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_personal_access_tokens.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_projects.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_properties.go (99%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_rules.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_security_managers.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/orgs_users_blocking.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/packages.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/projects.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/pulls.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/pulls_comments.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/pulls_reviewers.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/pulls_reviews.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/pulls_threads.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/rate_limit.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/reactions.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos.go (99%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_actions_access.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_actions_allowed.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_actions_permissions.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_autolinks.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_codeowners.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_collaborators.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_comments.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_commits.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_community_health.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_contents.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_deployment_branch_policies.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_deployment_protection_rules.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_deployments.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_environments.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_forks.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_hooks.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_hooks_configuration.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_hooks_deliveries.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_invitations.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_keys.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_lfs.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_merging.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_pages.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_prereceive_hooks.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_projects.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_properties.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_releases.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_rules.go (89%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_stats.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_statuses.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_tags.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/repos_traffic.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/scim.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/search.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/secret_scanning.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/security_advisories.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/strings.go (85%) rename vendor/github.com/google/go-github/{v65 => v66}/github/teams.go (97%) rename vendor/github.com/google/go-github/{v65 => v66}/github/teams_discussion_comments.go (98%) rename vendor/github.com/google/go-github/{v65 => v66}/github/teams_discussions.go (99%) rename vendor/github.com/google/go-github/{v65 => v66}/github/teams_members.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/timestamp.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/users.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/users_administration.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/users_blocking.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/users_emails.go (96%) rename vendor/github.com/google/go-github/{v65 => v66}/github/users_followers.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/users_gpg_keys.go (98%) rename vendor/github.com/google/go-github/{v65 => v66}/github/users_keys.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/users_packages.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/users_projects.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/users_ssh_signing_keys.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/with_appengine.go (100%) rename vendor/github.com/google/go-github/{v65 => v66}/github/without_appengine.go (100%) diff --git a/go.mod b/go.mod index 713491f2..24c546cd 100644 --- a/go.mod +++ b/go.mod @@ -8,12 +8,12 @@ require ( github.com/bluekeyes/templatetree v0.5.0 github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae github.com/die-net/lrucache v0.0.0-20181227122439-19a39ef22a11 - github.com/google/go-github/v65 v65.0.0 + github.com/google/go-github/v66 v66.0.0 github.com/google/go-querystring v1.1.0 github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 github.com/hashicorp/golang-lru v1.0.2 github.com/palantir/go-baseapp v0.5.2 - github.com/palantir/go-githubapp v0.29.0 + github.com/palantir/go-githubapp v0.30.0 github.com/pkg/errors v0.9.1 github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 github.com/rs/zerolog v1.33.0 diff --git a/go.sum b/go.sum index 6028942f..726edecc 100644 --- a/go.sum +++ b/go.sum @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-github/v62 v62.0.0 h1:/6mGCaRywZz9MuHyw9gD1CwsbmBX8GWsbFkwMmHdhl4= github.com/google/go-github/v62 v62.0.0/go.mod h1:EMxeUqGJq2xRu9DYBMwel/mr7kZrzUOfQmmpYrZn2a4= -github.com/google/go-github/v65 v65.0.0 h1:pQ7BmO3DZivvFk92geC0jB0q2m3gyn8vnYPgV7GSLhQ= -github.com/google/go-github/v65 v65.0.0/go.mod h1:DvrqWo5hvsdhJvHd4WyVF9ttANN3BniqjP8uTFMNb60= +github.com/google/go-github/v66 v66.0.0 h1:ADJsaXj9UotwdgK8/iFZtv7MLc8E8WBl62WLd/D/9+M= +github.com/google/go-github/v66 v66.0.0/go.mod h1:+4SO9Zkuyf8ytMj0csN1NR/5OTR+MfqPp8P8dVlcvY4= 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/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA= @@ -68,8 +68,8 @@ github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zk github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/palantir/go-baseapp v0.5.2 h1:b1ukx7AXo2/E4NkUvTFlW+185uwCcifzd2XzLrG4oS8= github.com/palantir/go-baseapp v0.5.2/go.mod h1:uijQMPfmgV69oiMu2jkskum/4HiYuEP/gzrnphD+/Co= -github.com/palantir/go-githubapp v0.29.0 h1:A+qVkCFLv0G+rKzirTC69A7ahocDSP7M5YF+ggcKxjw= -github.com/palantir/go-githubapp v0.29.0/go.mod h1:kW5/8apPtr10wTEtlp0yIyzU37Sfd6f3nD4iyqZA7ao= +github.com/palantir/go-githubapp v0.30.0 h1:gJTz4VF2a/3zZE7L+6+kNCag/VeSP4VW3q8TB/p5niU= +github.com/palantir/go-githubapp v0.30.0/go.mod h1:7/VuA3jqu5WavX9PjMJTb3NShdOrBNCI3grbJokPU7Q= github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc= github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= diff --git a/policy/predicate/status_test.go b/policy/predicate/status_test.go index d2e8d3b7..7b4a0fc6 100644 --- a/policy/predicate/status_test.go +++ b/policy/predicate/status_test.go @@ -21,7 +21,7 @@ import ( "strings" "testing" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/policy-bot/policy/common" "github.com/palantir/policy-bot/pull" "github.com/palantir/policy-bot/pull/pulltest" diff --git a/pull/github.go b/pull/github.go index 3d1181b5..54de03b3 100644 --- a/pull/github.go +++ b/pull/github.go @@ -20,7 +20,7 @@ import ( "strings" "time" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/pkg/errors" "github.com/shurcooL/githubv4" ) diff --git a/pull/github_membership.go b/pull/github_membership.go index 57f923a9..f418c2bd 100644 --- a/pull/github_membership.go +++ b/pull/github_membership.go @@ -18,7 +18,7 @@ import ( "context" "strings" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/pkg/errors" ) diff --git a/pull/github_test.go b/pull/github_test.go index 666b3caa..215e2ada 100644 --- a/pull/github_test.go +++ b/pull/github_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/shurcooL/githubv4" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/pull/list_teams.go b/pull/list_teams.go index 02ccd2d8..36ea0a4a 100644 --- a/pull/list_teams.go +++ b/pull/list_teams.go @@ -20,7 +20,7 @@ import ( "net/url" "reflect" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/google/go-querystring/query" ) diff --git a/server/handler/base.go b/server/handler/base.go index fc15e9bf..9af1ef11 100644 --- a/server/handler/base.go +++ b/server/handler/base.go @@ -17,7 +17,7 @@ package handler import ( "context" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-baseapp/baseapp" "github.com/palantir/go-githubapp/githubapp" "github.com/palantir/policy-bot/policy/common" diff --git a/server/handler/check_run.go b/server/handler/check_run.go index 74aa4814..8478e3f3 100644 --- a/server/handler/check_run.go +++ b/server/handler/check_run.go @@ -18,7 +18,7 @@ import ( "context" "encoding/json" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/palantir/policy-bot/policy/common" "github.com/palantir/policy-bot/pull" diff --git a/server/handler/cross_org.go b/server/handler/cross_org.go index 2ce7ea6f..02d1bc6e 100644 --- a/server/handler/cross_org.go +++ b/server/handler/cross_org.go @@ -18,7 +18,7 @@ import ( "context" "strings" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/palantir/policy-bot/pull" "github.com/pkg/errors" diff --git a/server/handler/details.go b/server/handler/details.go index ad4531c3..c9716986 100644 --- a/server/handler/details.go +++ b/server/handler/details.go @@ -27,7 +27,7 @@ import ( "github.com/alexedwards/scs" "github.com/bluekeyes/hatpear" "github.com/bluekeyes/templatetree" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/palantir/policy-bot/policy/common" "github.com/palantir/policy-bot/pull" diff --git a/server/handler/eval_context.go b/server/handler/eval_context.go index 5b1f7a7f..aae38a11 100644 --- a/server/handler/eval_context.go +++ b/server/handler/eval_context.go @@ -19,7 +19,7 @@ import ( "fmt" "strings" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/policy-bot/policy" "github.com/palantir/policy-bot/policy/common" "github.com/palantir/policy-bot/pull" diff --git a/server/handler/eval_context_reviewers.go b/server/handler/eval_context_reviewers.go index 124e66da..530f9feb 100644 --- a/server/handler/eval_context_reviewers.go +++ b/server/handler/eval_context_reviewers.go @@ -20,7 +20,7 @@ import ( "slices" "time" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/policy-bot/policy/common" "github.com/palantir/policy-bot/policy/reviewer" "github.com/palantir/policy-bot/pull" diff --git a/server/handler/fetcher.go b/server/handler/fetcher.go index cff440cf..9ab1c80f 100644 --- a/server/handler/fetcher.go +++ b/server/handler/fetcher.go @@ -17,7 +17,7 @@ package handler import ( "context" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/appconfig" "github.com/palantir/policy-bot/policy" "gopkg.in/yaml.v2" diff --git a/server/handler/installation.go b/server/handler/installation.go index fc2cca84..50061abb 100644 --- a/server/handler/installation.go +++ b/server/handler/installation.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/pkg/errors" "github.com/rs/zerolog" diff --git a/server/handler/issue_comment.go b/server/handler/issue_comment.go index c0ce5708..97693c1d 100644 --- a/server/handler/issue_comment.go +++ b/server/handler/issue_comment.go @@ -19,7 +19,7 @@ import ( "encoding/json" "fmt" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/palantir/policy-bot/policy" "github.com/palantir/policy-bot/policy/common" diff --git a/server/handler/login.go b/server/handler/login.go index 4250694e..17e37eb7 100644 --- a/server/handler/login.go +++ b/server/handler/login.go @@ -21,7 +21,7 @@ import ( "github.com/alexedwards/scs" "github.com/bluekeyes/hatpear" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/palantir/go-githubapp/oauth2" "github.com/pkg/errors" diff --git a/server/handler/merge_group.go b/server/handler/merge_group.go index 1b65ee5d..aab066f6 100644 --- a/server/handler/merge_group.go +++ b/server/handler/merge_group.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/pkg/errors" "github.com/rs/zerolog" diff --git a/server/handler/pull_request.go b/server/handler/pull_request.go index b10862f3..45852888 100644 --- a/server/handler/pull_request.go +++ b/server/handler/pull_request.go @@ -18,7 +18,7 @@ import ( "context" "encoding/json" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/palantir/policy-bot/policy/common" "github.com/palantir/policy-bot/pull" diff --git a/server/handler/pull_request_review.go b/server/handler/pull_request_review.go index 1f82ae71..7eadfdd7 100644 --- a/server/handler/pull_request_review.go +++ b/server/handler/pull_request_review.go @@ -18,7 +18,7 @@ import ( "context" "encoding/json" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/palantir/policy-bot/policy" "github.com/palantir/policy-bot/policy/common" diff --git a/server/handler/status.go b/server/handler/status.go index c2175158..8c390835 100644 --- a/server/handler/status.go +++ b/server/handler/status.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/palantir/policy-bot/policy/common" "github.com/palantir/policy-bot/pull" diff --git a/server/handler/workflow_run.go b/server/handler/workflow_run.go index 02a6e00f..b6ee08bc 100644 --- a/server/handler/workflow_run.go +++ b/server/handler/workflow_run.go @@ -18,7 +18,7 @@ import ( "context" "encoding/json" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/palantir/go-githubapp/githubapp" "github.com/palantir/policy-bot/policy/common" "github.com/palantir/policy-bot/pull" diff --git a/vendor/github.com/google/go-github/v65/AUTHORS b/vendor/github.com/google/go-github/v66/AUTHORS similarity index 90% rename from vendor/github.com/google/go-github/v65/AUTHORS rename to vendor/github.com/google/go-github/v66/AUTHORS index 075ba8df..d2116450 100644 --- a/vendor/github.com/google/go-github/v65/AUTHORS +++ b/vendor/github.com/google/go-github/v66/AUTHORS @@ -13,7 +13,10 @@ 413x 6543 <6543@obermui.de> Abed Kibbe +Abhijit Hota Abhinav Gupta +abhishek +Abhishek Sharma Abhishek Veeramalla aboy Adam Kohring @@ -35,19 +38,24 @@ Alex Orr Alex Su Alex Unger Alexander Harkness +Alexey Alekhin Alexis Gauthiez Ali Farooq +Alin Balutoiu Allan Guwatudde Allen Sun Amey Sakhadeo Anders Janmyr +Andreas Deininger Andreas Garnæs Andrew Ryabchun Andrew Svoboda +Andriyun Andy Grunwald Andy Hume Andy Lindeman angie pinilla +Anish Rajan anjanashenoy Anshuman Bhartiya Antoine @@ -59,6 +67,7 @@ aprp apurwaj2 Aravind Arda Kuyumcu +Ary Arıl Bozoluk Asier Marruedo Austin Burdine @@ -66,9 +75,11 @@ Austin Dizzy Azuka Okuleye Ben Batha Benjamen Keroack +Benjamin Nater Berkay Tacyildiz Beshr Kayali Beyang Liu +billnapier Billy Keyes Billy Lynch Bingtan Lu @@ -93,6 +104,7 @@ Cami Diez Carl Johnson Carlos Alexandro Becker Carlos Tadeu Panato Junior +Casey ChandanChainani chandresh-pancholi Charles Fenwick Elliott @@ -109,6 +121,7 @@ Christian Muehlhaeuser Christoph Jerolimov Christoph Sassenberg CI Monk +Clemens W Colin Misare Craig Gumbley Craig Peterson @@ -137,6 +150,7 @@ DeviousLab Dhi Aurrahman Diego Lapiduz Diogo Vilela +Dion Gionet Mallet Dmitri Shuralyov dmnlk Don Petersen @@ -149,9 +163,12 @@ Eli Uriegas Elliott Beach Emerson Wood Emil V +Emma Sax Eng Zer Jun +Enrico Candino eperm Erick Fejta +Erik Elkins Erik Nobel erwinvaneyk Evan Anderson @@ -163,6 +180,7 @@ Federico Di Pierro Felix Geisendörfer Filippo Valsorda Florian Forster +Florian Maier Florian Wagner Francesc Gil Francis @@ -178,6 +196,7 @@ Glen Mailer Gnahz Google Inc. Grachev Mikhail +Gregory Oschwald griffin_stewie guangwu Guillaume Jacquet @@ -202,6 +221,7 @@ ishan upadhyay isqua Jacob Valdemar Jake Krammer +Jake Scaltreto Jake White Jameel Haffejee James Bowes @@ -210,6 +230,7 @@ James Loh James Maguire James Turley Jamie West +Jan Guth Jan Kosecki Jan Švábík Jason Field @@ -224,6 +245,7 @@ Jihoon Chung Jille Timmermans Jimmi Dyson Joan Saum +JoannaaKL Joe Tsai John Barton John Engelman @@ -232,6 +254,7 @@ John Liu Jordan Brockopp Jordan Burandt Jordan Sussman +Jorge Ferrero Jorge Gómez Reus Joshua Bezaleel Abednego João Cerqueira @@ -240,6 +263,7 @@ jpbelanger-mtl Juan Juan Basso Julien Garcia Gonzalez +Julien Midedji Julien Rostand Junya Kono Justin Abrahms @@ -257,6 +281,7 @@ Kevin Burke Kevin Wang Kevin Zhao kgalli +Khanh Ngo Kirill Konrad Malawski Kookheon Kwon @@ -266,10 +291,12 @@ Kshitij Saraogi Kumar Saurabh Kyle Kurz kyokomi +Lachlan Cooper Lars Lehtonen Laurent Verdoïa leopoldwang Liam Galvin +Liam Stanley Lluis Campos Lovro Mažgon Loïs Postula @@ -283,6 +310,8 @@ Luke Kysow Luke Roberts Luke Young lynn [they] +Léo Salé +M. Ryan Rigdon Magnus Kulke Maksim Zhylinski Marc Binder @@ -294,6 +323,7 @@ Martins Sipenko Marwan Sulaiman Masayuki Izumi Mat Geist +Matheus Santos Araújo Matija Horvat Matin Rahmanian Matt @@ -301,6 +331,7 @@ Matt Brender Matt Dainty Matt Gaunt Matt Landis +Matt Mencel Matt Moore Matt Simons Matthew Reidy @@ -312,8 +343,11 @@ Michał Glapa Michelangelo Morrillo Miguel Elias dos Santos Mike Chen +Mishin Nikolai mohammad ali <2018cs92@student.uet.edu.pk> Mohammed AlDujaili +Mohammed Nafees +Mudit Mukundan Senthil Munia Balayil Mustafa Abban @@ -321,16 +355,20 @@ Nadav Kaner Naoki Kanatani Nathan VanBenschoten Navaneeth Suresh +Nayeem Hasan Neal Caffery Neil O'Toole +Nicholas Herring Nick Miyake Nick Platt Nick Spragg Nicolas Chapurlat Nikhita Raghunath +Nikita Pivkin Nilesh Singh Noah Hanjun Lee Noah Zoschke +Noble Varghese ns-cweber nxya Ole Orhagen @@ -358,6 +396,7 @@ Pierce McEntagart Pierre Carrier Piotr Zurek Piyush Chugh +Pj Meyer Pratik Mallya Qais Patankar Quang Le Hong @@ -370,6 +409,7 @@ Rafael Aramizu Gomes Rajat Jindal Rajendra arora Rajkumar +Ramesh Gaikwad Ranbir Singh Ravi Shekhar Jethani RaviTeja Pothana @@ -379,18 +419,23 @@ Reetuparna Mukherjee reeves122 Reinier Timmer Renjith R +Rez Moss +Riaje Ricco Førgaard Richard de Vries Rob Figueiredo Rohit Upadhyay Rojan Dinc +Roming22 Ronak Jain Ronan Pelliard Ross Gustafson Ruben Vereecken +Rufina Talalaeva Russell Boley Ryan Leung Ryan Lower +Ryan Skidmore Ryo Nakao Saaarah Safwan Olaimat @@ -452,6 +497,9 @@ Tingluo Huang tkhandel Tobias Gesellchen Tom Payne +Tomasz Adam Skrzypczak +tomfeigin +Travis Tomsu Trey Tacon tsbkw ttacon @@ -483,7 +531,8 @@ Yurii Soldak Yusef Mohamadi Yusuke Kuoka Zach Latta +Ze Peng zhouhaibing089 六开箱 缘生 -蒋航 \ No newline at end of file +蒋航 diff --git a/vendor/github.com/google/go-github/v65/LICENSE b/vendor/github.com/google/go-github/v66/LICENSE similarity index 100% rename from vendor/github.com/google/go-github/v65/LICENSE rename to vendor/github.com/google/go-github/v66/LICENSE diff --git a/vendor/github.com/google/go-github/v65/github/actions.go b/vendor/github.com/google/go-github/v66/github/actions.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions.go rename to vendor/github.com/google/go-github/v66/github/actions.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_artifacts.go b/vendor/github.com/google/go-github/v66/github/actions_artifacts.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_artifacts.go rename to vendor/github.com/google/go-github/v66/github/actions_artifacts.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_cache.go b/vendor/github.com/google/go-github/v66/github/actions_cache.go similarity index 98% rename from vendor/github.com/google/go-github/v65/github/actions_cache.go rename to vendor/github.com/google/go-github/v66/github/actions_cache.go index 271d7d82..852e9860 100644 --- a/vendor/github.com/google/go-github/v65/github/actions_cache.go +++ b/vendor/github.com/google/go-github/v66/github/actions_cache.go @@ -173,7 +173,7 @@ func (s *ActionsService) GetCacheUsageForRepo(ctx context.Context, owner, repo s // refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated. // // Permissions: You must authenticate using an access token with the read:org scope to use this endpoint. -// GitHub Apps must have the organization_admistration:read permission to use this endpoint. +// GitHub Apps must have the organization_administration:read permission to use this endpoint. // // GitHub API docs: https://docs.github.com/rest/actions/cache#list-repositories-with-github-actions-cache-usage-for-an-organization // @@ -203,7 +203,7 @@ func (s *ActionsService) ListCacheUsageByRepoForOrg(ctx context.Context, org str // 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated. // // Permissions: You must authenticate using an access token with the read:org scope to use this endpoint. -// GitHub Apps must have the organization_admistration:read permission to use this endpoint. +// GitHub Apps must have the organization_administration:read permission to use this endpoint. // // GitHub API docs: https://docs.github.com/rest/actions/cache#get-github-actions-cache-usage-for-an-organization // diff --git a/vendor/github.com/google/go-github/v65/github/actions_oidc.go b/vendor/github.com/google/go-github/v66/github/actions_oidc.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_oidc.go rename to vendor/github.com/google/go-github/v66/github/actions_oidc.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_permissions_enterprise.go b/vendor/github.com/google/go-github/v66/github/actions_permissions_enterprise.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_permissions_enterprise.go rename to vendor/github.com/google/go-github/v66/github/actions_permissions_enterprise.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_permissions_orgs.go b/vendor/github.com/google/go-github/v66/github/actions_permissions_orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_permissions_orgs.go rename to vendor/github.com/google/go-github/v66/github/actions_permissions_orgs.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_required_workflows.go b/vendor/github.com/google/go-github/v66/github/actions_required_workflows.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_required_workflows.go rename to vendor/github.com/google/go-github/v66/github/actions_required_workflows.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_runner_groups.go b/vendor/github.com/google/go-github/v66/github/actions_runner_groups.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_runner_groups.go rename to vendor/github.com/google/go-github/v66/github/actions_runner_groups.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_runners.go b/vendor/github.com/google/go-github/v66/github/actions_runners.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_runners.go rename to vendor/github.com/google/go-github/v66/github/actions_runners.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_secrets.go b/vendor/github.com/google/go-github/v66/github/actions_secrets.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_secrets.go rename to vendor/github.com/google/go-github/v66/github/actions_secrets.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_variables.go b/vendor/github.com/google/go-github/v66/github/actions_variables.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_variables.go rename to vendor/github.com/google/go-github/v66/github/actions_variables.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_workflow_jobs.go b/vendor/github.com/google/go-github/v66/github/actions_workflow_jobs.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_workflow_jobs.go rename to vendor/github.com/google/go-github/v66/github/actions_workflow_jobs.go diff --git a/vendor/github.com/google/go-github/v65/github/actions_workflow_runs.go b/vendor/github.com/google/go-github/v66/github/actions_workflow_runs.go similarity index 85% rename from vendor/github.com/google/go-github/v65/github/actions_workflow_runs.go rename to vendor/github.com/google/go-github/v66/github/actions_workflow_runs.go index d55c01dc..122ea1d0 100644 --- a/vendor/github.com/google/go-github/v65/github/actions_workflow_runs.go +++ b/vendor/github.com/google/go-github/v66/github/actions_workflow_runs.go @@ -112,6 +112,31 @@ type ReferencedWorkflow struct { Ref *string `json:"ref,omitempty"` } +// PendingDeployment represents the pending_deployments response. +type PendingDeployment struct { + Environment *PendingDeploymentEnvironment `json:"environment,omitempty"` + WaitTimer *int64 `json:"wait_timer,omitempty"` + WaitTimerStartedAt *Timestamp `json:"wait_timer_started_at,omitempty"` + CurrentUserCanApprove *bool `json:"current_user_can_approve,omitempty"` + Reviewers []*RequiredReviewer `json:"reviewers,omitempty"` +} + +// PendingDeploymentEnvironment represents pending deployment environment properties. +type PendingDeploymentEnvironment struct { + ID *int64 `json:"id,omitempty"` + NodeID *string `json:"node_id,omitempty"` + Name *string `json:"name,omitempty"` + URL *string `json:"url,omitempty"` + HTMLURL *string `json:"html_url,omitempty"` +} + +// ReviewCustomDeploymentProtectionRuleRequest specifies the parameters to ReviewCustomDeploymentProtectionRule. +type ReviewCustomDeploymentProtectionRuleRequest struct { + EnvironmentName string `json:"environment_name"` + State string `json:"state"` + Comment string `json:"comment"` +} + func (s *ActionsService) listWorkflowRuns(ctx context.Context, endpoint string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error) { u, err := addOptions(endpoint, opts) if err != nil { @@ -388,6 +413,28 @@ func (s *ActionsService) GetWorkflowRunUsageByID(ctx context.Context, owner, rep return workflowRunUsage, resp, nil } +// GetPendingDeployments get all deployment environments for a workflow run that are waiting for protection rules to pass. +// +// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#get-pending-deployments-for-a-workflow-run +// +//meta:operation GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments +func (s *ActionsService) GetPendingDeployments(ctx context.Context, owner, repo string, runID int64) ([]*PendingDeployment, *Response, error) { + u := fmt.Sprintf("repos/%v/%v/actions/runs/%v/pending_deployments", owner, repo, runID) + + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + var deployments []*PendingDeployment + resp, err := s.client.Do(ctx, req, &deployments) + if err != nil { + return nil, resp, err + } + + return deployments, resp, nil +} + // PendingDeployments approve or reject pending deployments that are waiting on approval by a required reviewer. // // GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run @@ -409,3 +456,20 @@ func (s *ActionsService) PendingDeployments(ctx context.Context, owner, repo str return deployments, resp, nil } + +// ReviewCustomDeploymentProtectionRule approves or rejects custom deployment protection rules provided by a GitHub App for a workflow run. +// +// GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run +// +//meta:operation POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule +func (s *ActionsService) ReviewCustomDeploymentProtectionRule(ctx context.Context, owner, repo string, runID int64, request *ReviewCustomDeploymentProtectionRuleRequest) (*Response, error) { + u := fmt.Sprintf("repos/%v/%v/actions/runs/%v/deployment_protection_rule", owner, repo, runID) + + req, err := s.client.NewRequest("POST", u, request) + if err != nil { + return nil, err + } + + resp, err := s.client.Do(ctx, req, nil) + return resp, err +} diff --git a/vendor/github.com/google/go-github/v65/github/actions_workflows.go b/vendor/github.com/google/go-github/v66/github/actions_workflows.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/actions_workflows.go rename to vendor/github.com/google/go-github/v66/github/actions_workflows.go diff --git a/vendor/github.com/google/go-github/v65/github/activity.go b/vendor/github.com/google/go-github/v66/github/activity.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/activity.go rename to vendor/github.com/google/go-github/v66/github/activity.go diff --git a/vendor/github.com/google/go-github/v65/github/activity_events.go b/vendor/github.com/google/go-github/v66/github/activity_events.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/activity_events.go rename to vendor/github.com/google/go-github/v66/github/activity_events.go diff --git a/vendor/github.com/google/go-github/v65/github/activity_notifications.go b/vendor/github.com/google/go-github/v66/github/activity_notifications.go similarity index 92% rename from vendor/github.com/google/go-github/v65/github/activity_notifications.go rename to vendor/github.com/google/go-github/v66/github/activity_notifications.go index 47f22261..e712323e 100644 --- a/vendor/github.com/google/go-github/v65/github/activity_notifications.go +++ b/vendor/github.com/google/go-github/v66/github/activity_notifications.go @@ -178,6 +178,23 @@ func (s *ActivityService) MarkThreadRead(ctx context.Context, id string) (*Respo return s.client.Do(ctx, req, nil) } +// MarkThreadDone marks the specified thread as done. +// Marking a thread as "done" is equivalent to marking a notification in your notification inbox on GitHub as done. +// +// GitHub API docs: https://docs.github.com/rest/activity/notifications#mark-a-thread-as-done +// +//meta:operation DELETE /notifications/threads/{thread_id} +func (s *ActivityService) MarkThreadDone(ctx context.Context, id int64) (*Response, error) { + u := fmt.Sprintf("notifications/threads/%v", id) + + req, err := s.client.NewRequest("DELETE", u, nil) + if err != nil { + return nil, err + } + + return s.client.Do(ctx, req, nil) +} + // GetThreadSubscription checks to see if the authenticated user is subscribed // to a thread. // diff --git a/vendor/github.com/google/go-github/v65/github/activity_star.go b/vendor/github.com/google/go-github/v66/github/activity_star.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/activity_star.go rename to vendor/github.com/google/go-github/v66/github/activity_star.go diff --git a/vendor/github.com/google/go-github/v65/github/activity_watching.go b/vendor/github.com/google/go-github/v66/github/activity_watching.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/activity_watching.go rename to vendor/github.com/google/go-github/v66/github/activity_watching.go diff --git a/vendor/github.com/google/go-github/v65/github/admin.go b/vendor/github.com/google/go-github/v66/github/admin.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/admin.go rename to vendor/github.com/google/go-github/v66/github/admin.go diff --git a/vendor/github.com/google/go-github/v65/github/admin_orgs.go b/vendor/github.com/google/go-github/v66/github/admin_orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/admin_orgs.go rename to vendor/github.com/google/go-github/v66/github/admin_orgs.go diff --git a/vendor/github.com/google/go-github/v65/github/admin_stats.go b/vendor/github.com/google/go-github/v66/github/admin_stats.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/admin_stats.go rename to vendor/github.com/google/go-github/v66/github/admin_stats.go diff --git a/vendor/github.com/google/go-github/v65/github/admin_users.go b/vendor/github.com/google/go-github/v66/github/admin_users.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/admin_users.go rename to vendor/github.com/google/go-github/v66/github/admin_users.go diff --git a/vendor/github.com/google/go-github/v65/github/apps.go b/vendor/github.com/google/go-github/v66/github/apps.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/apps.go rename to vendor/github.com/google/go-github/v66/github/apps.go diff --git a/vendor/github.com/google/go-github/v65/github/apps_hooks.go b/vendor/github.com/google/go-github/v66/github/apps_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/apps_hooks.go rename to vendor/github.com/google/go-github/v66/github/apps_hooks.go diff --git a/vendor/github.com/google/go-github/v65/github/apps_hooks_deliveries.go b/vendor/github.com/google/go-github/v66/github/apps_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/apps_hooks_deliveries.go rename to vendor/github.com/google/go-github/v66/github/apps_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v65/github/apps_installation.go b/vendor/github.com/google/go-github/v66/github/apps_installation.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/apps_installation.go rename to vendor/github.com/google/go-github/v66/github/apps_installation.go diff --git a/vendor/github.com/google/go-github/v65/github/apps_manifest.go b/vendor/github.com/google/go-github/v66/github/apps_manifest.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/apps_manifest.go rename to vendor/github.com/google/go-github/v66/github/apps_manifest.go diff --git a/vendor/github.com/google/go-github/v65/github/apps_marketplace.go b/vendor/github.com/google/go-github/v66/github/apps_marketplace.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/apps_marketplace.go rename to vendor/github.com/google/go-github/v66/github/apps_marketplace.go diff --git a/vendor/github.com/google/go-github/v65/github/authorizations.go b/vendor/github.com/google/go-github/v66/github/authorizations.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/authorizations.go rename to vendor/github.com/google/go-github/v66/github/authorizations.go diff --git a/vendor/github.com/google/go-github/v65/github/billing.go b/vendor/github.com/google/go-github/v66/github/billing.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/billing.go rename to vendor/github.com/google/go-github/v66/github/billing.go diff --git a/vendor/github.com/google/go-github/v65/github/checks.go b/vendor/github.com/google/go-github/v66/github/checks.go similarity index 98% rename from vendor/github.com/google/go-github/v65/github/checks.go rename to vendor/github.com/google/go-github/v66/github/checks.go index a8618944..71e50c15 100644 --- a/vendor/github.com/google/go-github/v65/github/checks.go +++ b/vendor/github.com/google/go-github/v66/github/checks.go @@ -85,7 +85,10 @@ type CheckSuite struct { PullRequests []*PullRequest `json:"pull_requests,omitempty"` // The following fields are only populated by Webhook events. - HeadCommit *Commit `json:"head_commit,omitempty"` + HeadCommit *Commit `json:"head_commit,omitempty"` + LatestCheckRunsCount *int64 `json:"latest_check_runs_count,omitempty"` + Rerequstable *bool `json:"rerequestable,omitempty"` + RunsRerequstable *bool `json:"runs_rerequestable,omitempty"` } func (c CheckRun) String() string { diff --git a/vendor/github.com/google/go-github/v65/github/code-scanning.go b/vendor/github.com/google/go-github/v66/github/code-scanning.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/code-scanning.go rename to vendor/github.com/google/go-github/v66/github/code-scanning.go diff --git a/vendor/github.com/google/go-github/v65/github/codesofconduct.go b/vendor/github.com/google/go-github/v66/github/codesofconduct.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/codesofconduct.go rename to vendor/github.com/google/go-github/v66/github/codesofconduct.go diff --git a/vendor/github.com/google/go-github/v65/github/codespaces.go b/vendor/github.com/google/go-github/v66/github/codespaces.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/codespaces.go rename to vendor/github.com/google/go-github/v66/github/codespaces.go diff --git a/vendor/github.com/google/go-github/v65/github/codespaces_secrets.go b/vendor/github.com/google/go-github/v66/github/codespaces_secrets.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/codespaces_secrets.go rename to vendor/github.com/google/go-github/v66/github/codespaces_secrets.go diff --git a/vendor/github.com/google/go-github/v65/github/copilot.go b/vendor/github.com/google/go-github/v66/github/copilot.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/copilot.go rename to vendor/github.com/google/go-github/v66/github/copilot.go diff --git a/vendor/github.com/google/go-github/v65/github/dependabot.go b/vendor/github.com/google/go-github/v66/github/dependabot.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/dependabot.go rename to vendor/github.com/google/go-github/v66/github/dependabot.go diff --git a/vendor/github.com/google/go-github/v65/github/dependabot_alerts.go b/vendor/github.com/google/go-github/v66/github/dependabot_alerts.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/dependabot_alerts.go rename to vendor/github.com/google/go-github/v66/github/dependabot_alerts.go diff --git a/vendor/github.com/google/go-github/v65/github/dependabot_secrets.go b/vendor/github.com/google/go-github/v66/github/dependabot_secrets.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/dependabot_secrets.go rename to vendor/github.com/google/go-github/v66/github/dependabot_secrets.go diff --git a/vendor/github.com/google/go-github/v65/github/dependency_graph.go b/vendor/github.com/google/go-github/v66/github/dependency_graph.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/dependency_graph.go rename to vendor/github.com/google/go-github/v66/github/dependency_graph.go diff --git a/vendor/github.com/google/go-github/v65/github/dependency_graph_snapshots.go b/vendor/github.com/google/go-github/v66/github/dependency_graph_snapshots.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/dependency_graph_snapshots.go rename to vendor/github.com/google/go-github/v66/github/dependency_graph_snapshots.go diff --git a/vendor/github.com/google/go-github/v65/github/doc.go b/vendor/github.com/google/go-github/v66/github/doc.go similarity index 98% rename from vendor/github.com/google/go-github/v65/github/doc.go rename to vendor/github.com/google/go-github/v66/github/doc.go index f98f84ef..7196394f 100644 --- a/vendor/github.com/google/go-github/v65/github/doc.go +++ b/vendor/github.com/google/go-github/v66/github/doc.go @@ -8,7 +8,7 @@ Package github provides a client for using the GitHub API. Usage: - import "github.com/google/go-github/v65/github" // with go modules enabled (GO111MODULE=on or outside GOPATH) + import "github.com/google/go-github/v66/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 @@ -31,7 +31,7 @@ The services of a client divide the API into logical chunks and correspond to the structure of the GitHub API documentation at https://docs.github.com/rest . -NOTE: Using the https://godoc.org/context package, one can easily +NOTE: Using the https://pkg.go.dev/context package, one can easily pass cancelation signals and deadlines to various services of the client for handling a request. In case there is no context available, then context.Background() can be used as a starting point. diff --git a/vendor/github.com/google/go-github/v65/github/emojis.go b/vendor/github.com/google/go-github/v66/github/emojis.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/emojis.go rename to vendor/github.com/google/go-github/v66/github/emojis.go diff --git a/vendor/github.com/google/go-github/v65/github/enterprise.go b/vendor/github.com/google/go-github/v66/github/enterprise.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/enterprise.go rename to vendor/github.com/google/go-github/v66/github/enterprise.go diff --git a/vendor/github.com/google/go-github/v65/github/enterprise_actions_runner_groups.go b/vendor/github.com/google/go-github/v66/github/enterprise_actions_runner_groups.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/enterprise_actions_runner_groups.go rename to vendor/github.com/google/go-github/v66/github/enterprise_actions_runner_groups.go diff --git a/vendor/github.com/google/go-github/v65/github/enterprise_actions_runners.go b/vendor/github.com/google/go-github/v66/github/enterprise_actions_runners.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/enterprise_actions_runners.go rename to vendor/github.com/google/go-github/v66/github/enterprise_actions_runners.go diff --git a/vendor/github.com/google/go-github/v65/github/enterprise_audit_log.go b/vendor/github.com/google/go-github/v66/github/enterprise_audit_log.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/enterprise_audit_log.go rename to vendor/github.com/google/go-github/v66/github/enterprise_audit_log.go diff --git a/vendor/github.com/google/go-github/v65/github/enterprise_code_security_and_analysis.go b/vendor/github.com/google/go-github/v66/github/enterprise_code_security_and_analysis.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/enterprise_code_security_and_analysis.go rename to vendor/github.com/google/go-github/v66/github/enterprise_code_security_and_analysis.go diff --git a/vendor/github.com/google/go-github/v65/github/event.go b/vendor/github.com/google/go-github/v66/github/event.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/event.go rename to vendor/github.com/google/go-github/v66/github/event.go diff --git a/vendor/github.com/google/go-github/v65/github/event_types.go b/vendor/github.com/google/go-github/v66/github/event_types.go similarity index 97% rename from vendor/github.com/google/go-github/v65/github/event_types.go rename to vendor/github.com/google/go-github/v66/github/event_types.go index 41d71f8d..fbe56b20 100644 --- a/vendor/github.com/google/go-github/v65/github/event_types.go +++ b/vendor/github.com/google/go-github/v66/github/event_types.go @@ -225,6 +225,46 @@ type DeploymentProtectionRuleEvent struct { Installation *Installation `json:"installation,omitempty"` } +// DeploymentReviewEvent represents a deployment review event. +// The Webhook event name is "deployment_review". +// +// GitHub API docs: https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads?#deployment_review +type DeploymentReviewEvent struct { + // The action performed. Possible values are: "requested", "approved", or "rejected". + Action *string `json:"action,omitempty"` + + // The following will be populated only if requested. + Requester *User `json:"requester,omitempty"` + Environment *string `json:"environment,omitempty"` + + // The following will be populated only if approved or rejected. + Approver *User `json:"approver,omitempty"` + Comment *string `json:"comment,omitempty"` + WorkflowJobRuns []*WorkflowJobRun `json:"workflow_job_runs,omitempty"` + + Enterprise *Enterprise `json:"enterprise,omitempty"` + Installation *Installation `json:"installation,omitempty"` + Organization *Organization `json:"organization,omitempty"` + Repo *Repository `json:"repository,omitempty"` + Reviewers []*RequiredReviewer `json:"reviewers,omitempty"` + Sender *User `json:"sender,omitempty"` + Since *string `json:"since,omitempty"` + WorkflowJobRun *WorkflowJobRun `json:"workflow_job_run,omitempty"` + WorkflowRun *WorkflowRun `json:"workflow_run,omitempty"` +} + +// WorkflowJobRun represents a workflow_job_run in a GitHub DeploymentReviewEvent. +type WorkflowJobRun struct { + Conclusion *string `json:"conclusion,omitempty"` + CreatedAt *Timestamp `json:"created_at,omitempty"` + Environment *string `json:"environment,omitempty"` + HTMLURL *string `json:"html_url,omitempty"` + ID *int64 `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Status *string `json:"status,omitempty"` + UpdatedAt *Timestamp `json:"updated_at,omitempty"` +} + // DeploymentStatusEvent represents a deployment status. // The Webhook event name is "deployment_status". // diff --git a/vendor/github.com/google/go-github/v65/github/gists.go b/vendor/github.com/google/go-github/v66/github/gists.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/gists.go rename to vendor/github.com/google/go-github/v66/github/gists.go diff --git a/vendor/github.com/google/go-github/v65/github/gists_comments.go b/vendor/github.com/google/go-github/v66/github/gists_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/gists_comments.go rename to vendor/github.com/google/go-github/v66/github/gists_comments.go diff --git a/vendor/github.com/google/go-github/v65/github/git.go b/vendor/github.com/google/go-github/v66/github/git.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/git.go rename to vendor/github.com/google/go-github/v66/github/git.go diff --git a/vendor/github.com/google/go-github/v65/github/git_blobs.go b/vendor/github.com/google/go-github/v66/github/git_blobs.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/git_blobs.go rename to vendor/github.com/google/go-github/v66/github/git_blobs.go diff --git a/vendor/github.com/google/go-github/v65/github/git_commits.go b/vendor/github.com/google/go-github/v66/github/git_commits.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/git_commits.go rename to vendor/github.com/google/go-github/v66/github/git_commits.go diff --git a/vendor/github.com/google/go-github/v65/github/git_refs.go b/vendor/github.com/google/go-github/v66/github/git_refs.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/git_refs.go rename to vendor/github.com/google/go-github/v66/github/git_refs.go diff --git a/vendor/github.com/google/go-github/v65/github/git_tags.go b/vendor/github.com/google/go-github/v66/github/git_tags.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/git_tags.go rename to vendor/github.com/google/go-github/v66/github/git_tags.go diff --git a/vendor/github.com/google/go-github/v65/github/git_trees.go b/vendor/github.com/google/go-github/v66/github/git_trees.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/git_trees.go rename to vendor/github.com/google/go-github/v66/github/git_trees.go diff --git a/vendor/github.com/google/go-github/v65/github/github-accessors.go b/vendor/github.com/google/go-github/v66/github/github-accessors.go similarity index 98% rename from vendor/github.com/google/go-github/v65/github/github-accessors.go rename to vendor/github.com/google/go-github/v66/github/github-accessors.go index 1abbabd0..f8e303c4 100644 --- a/vendor/github.com/google/go-github/v65/github/github-accessors.go +++ b/vendor/github.com/google/go-github/v66/github/github-accessors.go @@ -2286,6 +2286,14 @@ func (c *CheckSuite) GetID() int64 { return *c.ID } +// GetLatestCheckRunsCount returns the LatestCheckRunsCount field if it's non-nil, zero value otherwise. +func (c *CheckSuite) GetLatestCheckRunsCount() int64 { + if c == nil || c.LatestCheckRunsCount == nil { + return 0 + } + return *c.LatestCheckRunsCount +} + // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. func (c *CheckSuite) GetNodeID() string { if c == nil || c.NodeID == nil { @@ -2302,6 +2310,22 @@ func (c *CheckSuite) GetRepository() *Repository { return c.Repository } +// GetRerequstable returns the Rerequstable field if it's non-nil, zero value otherwise. +func (c *CheckSuite) GetRerequstable() bool { + if c == nil || c.Rerequstable == nil { + return false + } + return *c.Rerequstable +} + +// GetRunsRerequstable returns the RunsRerequstable field if it's non-nil, zero value otherwise. +func (c *CheckSuite) GetRunsRerequstable() bool { + if c == nil || c.RunsRerequstable == nil { + return false + } + return *c.RunsRerequstable +} + // GetStatus returns the Status field if it's non-nil, zero value otherwise. func (c *CheckSuite) GetStatus() string { if c == nil || c.Status == nil { @@ -4390,6 +4414,14 @@ func (c *CreateOrUpdateCustomRepoRoleOptions) GetName() string { return *c.Name } +// GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. +func (c *CreateOrUpdateOrgRoleOptions) GetBaseRole() string { + if c == nil || c.BaseRole == nil { + return "" + } + return *c.BaseRole +} + // GetDescription returns the Description field if it's non-nil, zero value otherwise. func (c *CreateOrUpdateOrgRoleOptions) GetDescription() string { if c == nil || c.Description == nil { @@ -5886,6 +5918,110 @@ func (d *DeploymentRequest) GetTransientEnvironment() bool { return *d.TransientEnvironment } +// GetAction returns the Action field if it's non-nil, zero value otherwise. +func (d *DeploymentReviewEvent) GetAction() string { + if d == nil || d.Action == nil { + return "" + } + return *d.Action +} + +// GetApprover returns the Approver field. +func (d *DeploymentReviewEvent) GetApprover() *User { + if d == nil { + return nil + } + return d.Approver +} + +// GetComment returns the Comment field if it's non-nil, zero value otherwise. +func (d *DeploymentReviewEvent) GetComment() string { + if d == nil || d.Comment == nil { + return "" + } + return *d.Comment +} + +// GetEnterprise returns the Enterprise field. +func (d *DeploymentReviewEvent) GetEnterprise() *Enterprise { + if d == nil { + return nil + } + return d.Enterprise +} + +// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. +func (d *DeploymentReviewEvent) GetEnvironment() string { + if d == nil || d.Environment == nil { + return "" + } + return *d.Environment +} + +// GetInstallation returns the Installation field. +func (d *DeploymentReviewEvent) GetInstallation() *Installation { + if d == nil { + return nil + } + return d.Installation +} + +// GetOrganization returns the Organization field. +func (d *DeploymentReviewEvent) GetOrganization() *Organization { + if d == nil { + return nil + } + return d.Organization +} + +// GetRepo returns the Repo field. +func (d *DeploymentReviewEvent) GetRepo() *Repository { + if d == nil { + return nil + } + return d.Repo +} + +// GetRequester returns the Requester field. +func (d *DeploymentReviewEvent) GetRequester() *User { + if d == nil { + return nil + } + return d.Requester +} + +// GetSender returns the Sender field. +func (d *DeploymentReviewEvent) GetSender() *User { + if d == nil { + return nil + } + return d.Sender +} + +// GetSince returns the Since field if it's non-nil, zero value otherwise. +func (d *DeploymentReviewEvent) GetSince() string { + if d == nil || d.Since == nil { + return "" + } + return *d.Since +} + +// GetWorkflowJobRun returns the WorkflowJobRun field. +func (d *DeploymentReviewEvent) GetWorkflowJobRun() *WorkflowJobRun { + if d == nil { + return nil + } + return d.WorkflowJobRun +} + +// GetWorkflowRun returns the WorkflowRun field. +func (d *DeploymentReviewEvent) GetWorkflowRun() *WorkflowRun { + if d == nil { + return nil + } + return d.WorkflowRun +} + // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. func (d *DeploymentStatus) GetCreatedAt() Timestamp { if d == nil || d.CreatedAt == nil { @@ -14390,6 +14526,78 @@ func (p *PagesUpdate) GetSource() *PagesSource { return p.Source } +// GetCurrentUserCanApprove returns the CurrentUserCanApprove field if it's non-nil, zero value otherwise. +func (p *PendingDeployment) GetCurrentUserCanApprove() bool { + if p == nil || p.CurrentUserCanApprove == nil { + return false + } + return *p.CurrentUserCanApprove +} + +// GetEnvironment returns the Environment field. +func (p *PendingDeployment) GetEnvironment() *PendingDeploymentEnvironment { + if p == nil { + return nil + } + return p.Environment +} + +// GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. +func (p *PendingDeployment) GetWaitTimer() int64 { + if p == nil || p.WaitTimer == nil { + return 0 + } + return *p.WaitTimer +} + +// GetWaitTimerStartedAt returns the WaitTimerStartedAt field if it's non-nil, zero value otherwise. +func (p *PendingDeployment) GetWaitTimerStartedAt() Timestamp { + if p == nil || p.WaitTimerStartedAt == nil { + return Timestamp{} + } + return *p.WaitTimerStartedAt +} + +// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. +func (p *PendingDeploymentEnvironment) GetHTMLURL() string { + if p == nil || p.HTMLURL == nil { + return "" + } + return *p.HTMLURL +} + +// GetID returns the ID field if it's non-nil, zero value otherwise. +func (p *PendingDeploymentEnvironment) GetID() int64 { + if p == nil || p.ID == nil { + return 0 + } + return *p.ID +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (p *PendingDeploymentEnvironment) GetName() string { + if p == nil || p.Name == nil { + return "" + } + return *p.Name +} + +// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. +func (p *PendingDeploymentEnvironment) GetNodeID() string { + if p == nil || p.NodeID == nil { + return "" + } + return *p.NodeID +} + +// GetURL returns the URL field if it's non-nil, zero value otherwise. +func (p *PendingDeploymentEnvironment) GetURL() string { + if p == nil || p.URL == nil { + return "" + } + return *p.URL +} + // GetAccessGrantedAt returns the AccessGrantedAt field if it's non-nil, zero value otherwise. func (p *PersonalAccessToken) GetAccessGrantedAt() Timestamp { if p == nil || p.AccessGrantedAt == nil { @@ -25406,6 +25614,70 @@ func (w *WorkflowJobEvent) GetWorkflowJob() *WorkflowJob { return w.WorkflowJob } +// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. +func (w *WorkflowJobRun) GetConclusion() string { + if w == nil || w.Conclusion == nil { + return "" + } + return *w.Conclusion +} + +// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. +func (w *WorkflowJobRun) GetCreatedAt() Timestamp { + if w == nil || w.CreatedAt == nil { + return Timestamp{} + } + return *w.CreatedAt +} + +// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. +func (w *WorkflowJobRun) GetEnvironment() string { + if w == nil || w.Environment == nil { + return "" + } + return *w.Environment +} + +// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. +func (w *WorkflowJobRun) GetHTMLURL() string { + if w == nil || w.HTMLURL == nil { + return "" + } + return *w.HTMLURL +} + +// GetID returns the ID field if it's non-nil, zero value otherwise. +func (w *WorkflowJobRun) GetID() int64 { + if w == nil || w.ID == nil { + return 0 + } + return *w.ID +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (w *WorkflowJobRun) GetName() string { + if w == nil || w.Name == nil { + return "" + } + return *w.Name +} + +// GetStatus returns the Status field if it's non-nil, zero value otherwise. +func (w *WorkflowJobRun) GetStatus() string { + if w == nil || w.Status == nil { + return "" + } + return *w.Status +} + +// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. +func (w *WorkflowJobRun) GetUpdatedAt() Timestamp { + if w == nil || w.UpdatedAt == nil { + return Timestamp{} + } + return *w.UpdatedAt +} + // GetActor returns the Actor field. func (w *WorkflowRun) GetActor() *User { if w == nil { diff --git a/vendor/github.com/google/go-github/v65/github/github.go b/vendor/github.com/google/go-github/v66/github/github.go similarity index 99% rename from vendor/github.com/google/go-github/v65/github/github.go rename to vendor/github.com/google/go-github/v66/github/github.go index cceaec03..22fbb974 100644 --- a/vendor/github.com/google/go-github/v65/github/github.go +++ b/vendor/github.com/google/go-github/v66/github/github.go @@ -28,7 +28,7 @@ import ( ) const ( - Version = "v65.0.0" + Version = "v66.0.0" defaultAPIVersion = "2022-11-28" defaultBaseURL = "https://api.github.com/" @@ -774,7 +774,7 @@ func parseSecondaryRate(r *http.Response) *time.Duration { // According to GitHub support, endpoints might return x-ratelimit-reset instead, // as an integer which represents the number of seconds since epoch UTC, - // represting the time to resume making requests. + // representing the time to resume making requests. if v := r.Header.Get(headerRateReset); v != "" { secondsSinceEpoch, _ := strconv.ParseInt(v, 10, 64) // Error handling is noop. retryAfter := time.Until(time.Unix(secondsSinceEpoch, 0)) diff --git a/vendor/github.com/google/go-github/v65/github/gitignore.go b/vendor/github.com/google/go-github/v66/github/gitignore.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/gitignore.go rename to vendor/github.com/google/go-github/v66/github/gitignore.go diff --git a/vendor/github.com/google/go-github/v65/github/interactions.go b/vendor/github.com/google/go-github/v66/github/interactions.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/interactions.go rename to vendor/github.com/google/go-github/v66/github/interactions.go diff --git a/vendor/github.com/google/go-github/v65/github/interactions_orgs.go b/vendor/github.com/google/go-github/v66/github/interactions_orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/interactions_orgs.go rename to vendor/github.com/google/go-github/v66/github/interactions_orgs.go diff --git a/vendor/github.com/google/go-github/v65/github/interactions_repos.go b/vendor/github.com/google/go-github/v66/github/interactions_repos.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/interactions_repos.go rename to vendor/github.com/google/go-github/v66/github/interactions_repos.go diff --git a/vendor/github.com/google/go-github/v65/github/issue_import.go b/vendor/github.com/google/go-github/v66/github/issue_import.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/issue_import.go rename to vendor/github.com/google/go-github/v66/github/issue_import.go diff --git a/vendor/github.com/google/go-github/v65/github/issues.go b/vendor/github.com/google/go-github/v66/github/issues.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/issues.go rename to vendor/github.com/google/go-github/v66/github/issues.go diff --git a/vendor/github.com/google/go-github/v65/github/issues_assignees.go b/vendor/github.com/google/go-github/v66/github/issues_assignees.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/issues_assignees.go rename to vendor/github.com/google/go-github/v66/github/issues_assignees.go diff --git a/vendor/github.com/google/go-github/v65/github/issues_comments.go b/vendor/github.com/google/go-github/v66/github/issues_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/issues_comments.go rename to vendor/github.com/google/go-github/v66/github/issues_comments.go diff --git a/vendor/github.com/google/go-github/v65/github/issues_events.go b/vendor/github.com/google/go-github/v66/github/issues_events.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/issues_events.go rename to vendor/github.com/google/go-github/v66/github/issues_events.go diff --git a/vendor/github.com/google/go-github/v65/github/issues_labels.go b/vendor/github.com/google/go-github/v66/github/issues_labels.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/issues_labels.go rename to vendor/github.com/google/go-github/v66/github/issues_labels.go diff --git a/vendor/github.com/google/go-github/v65/github/issues_milestones.go b/vendor/github.com/google/go-github/v66/github/issues_milestones.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/issues_milestones.go rename to vendor/github.com/google/go-github/v66/github/issues_milestones.go diff --git a/vendor/github.com/google/go-github/v65/github/issues_timeline.go b/vendor/github.com/google/go-github/v66/github/issues_timeline.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/issues_timeline.go rename to vendor/github.com/google/go-github/v66/github/issues_timeline.go diff --git a/vendor/github.com/google/go-github/v65/github/licenses.go b/vendor/github.com/google/go-github/v66/github/licenses.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/licenses.go rename to vendor/github.com/google/go-github/v66/github/licenses.go diff --git a/vendor/github.com/google/go-github/v65/github/markdown.go b/vendor/github.com/google/go-github/v66/github/markdown.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/markdown.go rename to vendor/github.com/google/go-github/v66/github/markdown.go diff --git a/vendor/github.com/google/go-github/v65/github/messages.go b/vendor/github.com/google/go-github/v66/github/messages.go similarity index 99% rename from vendor/github.com/google/go-github/v65/github/messages.go rename to vendor/github.com/google/go-github/v66/github/messages.go index 0385d398..30c4fca9 100644 --- a/vendor/github.com/google/go-github/v65/github/messages.go +++ b/vendor/github.com/google/go-github/v66/github/messages.go @@ -57,6 +57,7 @@ var ( "dependabot_alert": &DependabotAlertEvent{}, "deploy_key": &DeployKeyEvent{}, "deployment": &DeploymentEvent{}, + "deployment_review": &DeploymentReviewEvent{}, "deployment_status": &DeploymentStatusEvent{}, "deployment_protection_rule": &DeploymentProtectionRuleEvent{}, "discussion": &DiscussionEvent{}, diff --git a/vendor/github.com/google/go-github/v65/github/meta.go b/vendor/github.com/google/go-github/v66/github/meta.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/meta.go rename to vendor/github.com/google/go-github/v66/github/meta.go diff --git a/vendor/github.com/google/go-github/v65/github/migrations.go b/vendor/github.com/google/go-github/v66/github/migrations.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/migrations.go rename to vendor/github.com/google/go-github/v66/github/migrations.go diff --git a/vendor/github.com/google/go-github/v65/github/migrations_source_import.go b/vendor/github.com/google/go-github/v66/github/migrations_source_import.go similarity index 99% rename from vendor/github.com/google/go-github/v65/github/migrations_source_import.go rename to vendor/github.com/google/go-github/v66/github/migrations_source_import.go index 3b161232..f484b77d 100644 --- a/vendor/github.com/google/go-github/v65/github/migrations_source_import.go +++ b/vendor/github.com/google/go-github/v66/github/migrations_source_import.go @@ -76,7 +76,7 @@ type Import struct { // Contact GitHub support for more information. // detection_needs_auth - the importer requires authentication for // the originating repository to continue detection. Make an - // UpdatImport request, and include VCSUsername and + // UpdateImport request, and include VCSUsername and // VCSPassword. // detection_found_nothing - the importer didn't recognize any // source control at the URL. diff --git a/vendor/github.com/google/go-github/v65/github/migrations_user.go b/vendor/github.com/google/go-github/v66/github/migrations_user.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/migrations_user.go rename to vendor/github.com/google/go-github/v66/github/migrations_user.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs.go b/vendor/github.com/google/go-github/v66/github/orgs.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs.go rename to vendor/github.com/google/go-github/v66/github/orgs.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_actions_allowed.go b/vendor/github.com/google/go-github/v66/github/orgs_actions_allowed.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_actions_allowed.go rename to vendor/github.com/google/go-github/v66/github/orgs_actions_allowed.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_actions_permissions.go b/vendor/github.com/google/go-github/v66/github/orgs_actions_permissions.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_actions_permissions.go rename to vendor/github.com/google/go-github/v66/github/orgs_actions_permissions.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_audit_log.go b/vendor/github.com/google/go-github/v66/github/orgs_audit_log.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_audit_log.go rename to vendor/github.com/google/go-github/v66/github/orgs_audit_log.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_credential_authorizations.go b/vendor/github.com/google/go-github/v66/github/orgs_credential_authorizations.go similarity index 83% rename from vendor/github.com/google/go-github/v65/github/orgs_credential_authorizations.go rename to vendor/github.com/google/go-github/v66/github/orgs_credential_authorizations.go index eed0f0c6..dca42433 100644 --- a/vendor/github.com/google/go-github/v65/github/orgs_credential_authorizations.go +++ b/vendor/github.com/google/go-github/v66/github/orgs_credential_authorizations.go @@ -55,13 +55,23 @@ type CredentialAuthorization struct { AuthorizedCredentialExpiresAt *Timestamp `json:"authorized_credential_expires_at,omitempty"` } +// CredentialAuthorizationsListOptions adds the Login option as supported by the +// list SAML SSO authorizations for organizations endpoint alongside paging options +// such as Page and PerPage. +// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/orgs#list-saml-sso-authorizations-for-an-organization +type CredentialAuthorizationsListOptions struct { + ListOptions + // For credentials authorizations for an organization, limit the list of authorizations to a specific login (aka github username) + Login string `url:"login,omitempty"` +} + // ListCredentialAuthorizations lists credentials authorized through SAML SSO // for a given organization. Only available with GitHub Enterprise Cloud. // // GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/orgs#list-saml-sso-authorizations-for-an-organization // //meta:operation GET /orgs/{org}/credential-authorizations -func (s *OrganizationsService) ListCredentialAuthorizations(ctx context.Context, org string, opts *ListOptions) ([]*CredentialAuthorization, *Response, error) { +func (s *OrganizationsService) ListCredentialAuthorizations(ctx context.Context, org string, opts *CredentialAuthorizationsListOptions) ([]*CredentialAuthorization, *Response, error) { u := fmt.Sprintf("orgs/%v/credential-authorizations", org) u, err := addOptions(u, opts) if err != nil { diff --git a/vendor/github.com/google/go-github/v66/github/orgs_custom_repository_roles.go b/vendor/github.com/google/go-github/v66/github/orgs_custom_repository_roles.go new file mode 100644 index 00000000..2295e1b8 --- /dev/null +++ b/vendor/github.com/google/go-github/v66/github/orgs_custom_repository_roles.go @@ -0,0 +1,131 @@ +// Copyright 2024 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/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"` + Description *string `json:"description,omitempty"` + BaseRole *string `json:"base_role,omitempty"` + Permissions []string `json:"permissions,omitempty"` + Org *Organization `json:"organization,omitempty"` + CreatedAt *Timestamp `json:"created_at,omitempty"` + UpdatedAt *Timestamp `json:"updated_at,omitempty"` +} + +// CreateOrUpdateCustomRepoRoleOptions represents options required to create or update a custom repository role. +type CreateOrUpdateCustomRepoRoleOptions struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + BaseRole *string `json:"base_role,omitempty"` + Permissions []string `json:"permissions"` +} + +// 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/enterprise-cloud@latest/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization +// +//meta:operation GET /orgs/{org}/custom-repository-roles +func (s *OrganizationsService) ListCustomRepoRoles(ctx context.Context, org string) (*OrganizationCustomRepoRoles, *Response, error) { + u := fmt.Sprintf("orgs/%v/custom-repository-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 +} + +// CreateCustomRepoRole creates a custom repository role in this organization. +// In order to create custom repository roles in an organization, the authenticated user must be an organization owner. +// +// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#create-a-custom-repository-role +// +//meta:operation POST /orgs/{org}/custom-repository-roles +func (s *OrganizationsService) CreateCustomRepoRole(ctx context.Context, org string, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error) { + u := fmt.Sprintf("orgs/%v/custom-repository-roles", org) + + req, err := s.client.NewRequest("POST", u, opts) + if err != nil { + return nil, nil, err + } + + resultingRole := new(CustomRepoRoles) + resp, err := s.client.Do(ctx, req, resultingRole) + if err != nil { + return nil, resp, err + } + + return resultingRole, resp, err +} + +// UpdateCustomRepoRole updates a custom repository role in this organization. +// In order to update custom repository roles in an organization, the authenticated user must be an organization owner. +// +// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#update-a-custom-repository-role +// +//meta:operation PATCH /orgs/{org}/custom-repository-roles/{role_id} +func (s *OrganizationsService) UpdateCustomRepoRole(ctx context.Context, org string, roleID int64, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error) { + u := fmt.Sprintf("orgs/%v/custom-repository-roles/%v", org, roleID) + + req, err := s.client.NewRequest("PATCH", u, opts) + if err != nil { + return nil, nil, err + } + + resultingRole := new(CustomRepoRoles) + resp, err := s.client.Do(ctx, req, resultingRole) + if err != nil { + return nil, resp, err + } + + return resultingRole, resp, err +} + +// DeleteCustomRepoRole deletes an existing custom repository role in this organization. +// In order to delete custom repository roles in an organization, the authenticated user must be an organization owner. +// +// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#delete-a-custom-repository-role +// +//meta:operation DELETE /orgs/{org}/custom-repository-roles/{role_id} +func (s *OrganizationsService) DeleteCustomRepoRole(ctx context.Context, org string, roleID int64) (*Response, error) { + u := fmt.Sprintf("orgs/%v/custom-repository-roles/%v", org, roleID) + + req, err := s.client.NewRequest("DELETE", u, nil) + if err != nil { + return nil, err + } + + resultingRole := new(CustomRepoRoles) + resp, err := s.client.Do(ctx, req, resultingRole) + if err != nil { + return resp, err + } + + return resp, nil +} diff --git a/vendor/github.com/google/go-github/v65/github/orgs_hooks.go b/vendor/github.com/google/go-github/v66/github/orgs_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_hooks.go rename to vendor/github.com/google/go-github/v66/github/orgs_hooks.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_hooks_configuration.go b/vendor/github.com/google/go-github/v66/github/orgs_hooks_configuration.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_hooks_configuration.go rename to vendor/github.com/google/go-github/v66/github/orgs_hooks_configuration.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_hooks_deliveries.go b/vendor/github.com/google/go-github/v66/github/orgs_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_hooks_deliveries.go rename to vendor/github.com/google/go-github/v66/github/orgs_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_members.go b/vendor/github.com/google/go-github/v66/github/orgs_members.go similarity index 95% rename from vendor/github.com/google/go-github/v65/github/orgs_members.go rename to vendor/github.com/google/go-github/v66/github/orgs_members.go index 5bc23657..d818d7f9 100644 --- a/vendor/github.com/google/go-github/v65/github/orgs_members.go +++ b/vendor/github.com/google/go-github/v66/github/orgs_members.go @@ -151,6 +151,20 @@ func (s *OrganizationsService) RemoveMember(ctx context.Context, org, user strin return s.client.Do(ctx, req, nil) } +// CancelInvite cancels an organization invitation. +// +// GitHub API docs: https://docs.github.com/rest/orgs/members#cancel-an-organization-invitation +// +//meta:operation DELETE /orgs/{org}/invitations/{invitation_id} +func (s *OrganizationsService) CancelInvite(ctx context.Context, org string, invitationID int64) (*Response, error) { + u := fmt.Sprintf("orgs/%v/invitations/%v", org, invitationID) + req, err := s.client.NewRequest("DELETE", u, nil) + if err != nil { + return nil, err + } + return s.client.Do(ctx, req, nil) +} + // PublicizeMembership publicizes a user's membership in an organization. (A // user cannot publicize the membership for another user.) // @@ -395,7 +409,7 @@ func (s *OrganizationsService) ListOrgInvitationTeams(ctx context.Context, org, return orgInvitationTeams, resp, nil } -// ListFailedOrgInvitations returns a list of failed inviatations. +// ListFailedOrgInvitations returns a list of failed invitations. // // GitHub API docs: https://docs.github.com/rest/orgs/members#list-failed-organization-invitations // diff --git a/vendor/github.com/google/go-github/v65/github/orgs_custom_roles.go b/vendor/github.com/google/go-github/v66/github/orgs_organization_roles.go similarity index 61% rename from vendor/github.com/google/go-github/v65/github/orgs_custom_roles.go rename to vendor/github.com/google/go-github/v66/github/orgs_organization_roles.go index ca0c6d7b..695c4dad 100644 --- a/vendor/github.com/google/go-github/v65/github/orgs_custom_roles.go +++ b/vendor/github.com/google/go-github/v66/github/orgs_organization_roles.go @@ -29,39 +29,12 @@ type CustomOrgRoles struct { BaseRole *string `json:"base_role,omitempty"` } -// 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/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"` - Description *string `json:"description,omitempty"` - BaseRole *string `json:"base_role,omitempty"` - Permissions []string `json:"permissions,omitempty"` - Org *Organization `json:"organization,omitempty"` - CreatedAt *Timestamp `json:"created_at,omitempty"` - UpdatedAt *Timestamp `json:"updated_at,omitempty"` -} - // CreateOrUpdateOrgRoleOptions represents options required to create or update a custom organization role. type CreateOrUpdateOrgRoleOptions struct { Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Permissions []string `json:"permissions"` -} - -// CreateOrUpdateCustomRepoRoleOptions represents options required to create or update a custom repository role. -type CreateOrUpdateCustomRepoRoleOptions struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` BaseRole *string `json:"base_role,omitempty"` - Permissions []string `json:"permissions"` } // ListRoles lists the custom roles available in this organization. @@ -87,6 +60,29 @@ func (s *OrganizationsService) ListRoles(ctx context.Context, org string) (*Orga return customRepoRoles, resp, nil } +// GetOrgRole gets an organization role in this organization. +// In order to get organization roles in an organization, the authenticated user must be an organization owner, or have access via an organization role. +// +// GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#get-an-organization-role +// +//meta:operation GET /orgs/{org}/organization-roles/{role_id} +func (s *OrganizationsService) GetOrgRole(ctx context.Context, org string, roleID int64) (*CustomOrgRoles, *Response, error) { + u := fmt.Sprintf("orgs/%v/organization-roles/%v", org, roleID) + + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + resultingRole := new(CustomOrgRoles) + resp, err := s.client.Do(ctx, req, resultingRole) + if err != nil { + return nil, resp, err + } + + return resultingRole, resp, err +} + // CreateCustomOrgRole creates a custom role in this organization. // In order to create custom roles in an organization, the authenticated user must be an organization owner. // @@ -156,91 +152,87 @@ func (s *OrganizationsService) DeleteCustomOrgRole(ctx context.Context, org stri return resp, nil } -// ListCustomRepoRoles lists the custom repository roles available in this organization. -// In order to see custom repository roles in an organization, the authenticated user must be an organization owner. +// AssignOrgRoleToTeam assigns an existing organization role to a team in this organization. +// In order to assign organization roles in an organization, the authenticated user must be an organization owner. // -// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization +// GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-team // -//meta:operation GET /orgs/{org}/custom-repository-roles -func (s *OrganizationsService) ListCustomRepoRoles(ctx context.Context, org string) (*OrganizationCustomRepoRoles, *Response, error) { - u := fmt.Sprintf("orgs/%v/custom-repository-roles", org) +//meta:operation PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id} +func (s *OrganizationsService) AssignOrgRoleToTeam(ctx context.Context, org, teamSlug string, roleID int64) (*Response, error) { + u := fmt.Sprintf("orgs/%v/organization-roles/teams/%v/%v", org, teamSlug, roleID) - req, err := s.client.NewRequest("GET", u, nil) + req, err := s.client.NewRequest("PUT", u, nil) if err != nil { - return nil, nil, err + return nil, err } - customRepoRoles := new(OrganizationCustomRepoRoles) - resp, err := s.client.Do(ctx, req, customRepoRoles) + resp, err := s.client.Do(ctx, req, nil) if err != nil { - return nil, resp, err + return resp, err } - return customRepoRoles, resp, nil + return resp, nil } -// CreateCustomRepoRole creates a custom repository role in this organization. -// In order to create custom repository roles in an organization, the authenticated user must be an organization owner. +// RemoveOrgRoleFromTeam removes an existing organization role assignment from a team in this organization. +// In order to remove organization role assignments in an organization, the authenticated user must be an organization owner. // -// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#create-a-custom-repository-role +// GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-team // -//meta:operation POST /orgs/{org}/custom-repository-roles -func (s *OrganizationsService) CreateCustomRepoRole(ctx context.Context, org string, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error) { - u := fmt.Sprintf("orgs/%v/custom-repository-roles", org) +//meta:operation DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id} +func (s *OrganizationsService) RemoveOrgRoleFromTeam(ctx context.Context, org, teamSlug string, roleID int64) (*Response, error) { + u := fmt.Sprintf("orgs/%v/organization-roles/teams/%v/%v", org, teamSlug, roleID) - req, err := s.client.NewRequest("POST", u, opts) + req, err := s.client.NewRequest("DELETE", u, nil) if err != nil { - return nil, nil, err + return nil, err } - resultingRole := new(CustomRepoRoles) - resp, err := s.client.Do(ctx, req, resultingRole) + resp, err := s.client.Do(ctx, req, nil) if err != nil { - return nil, resp, err + return resp, err } - return resultingRole, resp, err + return resp, nil } -// UpdateCustomRepoRole updates a custom repository role in this organization. -// In order to update custom repository roles in an organization, the authenticated user must be an organization owner. +// AssignOrgRoleToUser assigns an existing organization role to a user in this organization. +// In order to assign organization roles in an organization, the authenticated user must be an organization owner. // -// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#update-a-custom-repository-role +// GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-user // -//meta:operation PATCH /orgs/{org}/custom-repository-roles/{role_id} -func (s *OrganizationsService) UpdateCustomRepoRole(ctx context.Context, org string, roleID int64, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error) { - u := fmt.Sprintf("orgs/%v/custom-repository-roles/%v", org, roleID) +//meta:operation PUT /orgs/{org}/organization-roles/users/{username}/{role_id} +func (s *OrganizationsService) AssignOrgRoleToUser(ctx context.Context, org, username string, roleID int64) (*Response, error) { + u := fmt.Sprintf("orgs/%v/organization-roles/users/%v/%v", org, username, roleID) - req, err := s.client.NewRequest("PATCH", u, opts) + req, err := s.client.NewRequest("PUT", u, nil) if err != nil { - return nil, nil, err + return nil, err } - resultingRole := new(CustomRepoRoles) - resp, err := s.client.Do(ctx, req, resultingRole) + resp, err := s.client.Do(ctx, req, nil) if err != nil { - return nil, resp, err + return resp, err } - return resultingRole, resp, err + return resp, nil } -// DeleteCustomRepoRole deletes an existing custom repository role in this organization. -// In order to delete custom repository roles in an organization, the authenticated user must be an organization owner. +// RemoveOrgRoleFromUser removes an existing organization role assignment from a user in this organization. +// In order to remove organization role assignments in an organization, the authenticated user must be an organization owner. // -// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#delete-a-custom-repository-role +// GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-user // -//meta:operation DELETE /orgs/{org}/custom-repository-roles/{role_id} -func (s *OrganizationsService) DeleteCustomRepoRole(ctx context.Context, org string, roleID int64) (*Response, error) { - u := fmt.Sprintf("orgs/%v/custom-repository-roles/%v", org, roleID) +//meta:operation DELETE /orgs/{org}/organization-roles/users/{username}/{role_id} +func (s *OrganizationsService) RemoveOrgRoleFromUser(ctx context.Context, org, username string, roleID int64) (*Response, error) { + u := fmt.Sprintf("orgs/%v/organization-roles/users/%v/%v", org, username, roleID) req, err := s.client.NewRequest("DELETE", u, nil) if err != nil { return nil, err } - resultingRole := new(CustomRepoRoles) - resp, err := s.client.Do(ctx, req, resultingRole) + resp, err := s.client.Do(ctx, req, nil) if err != nil { return resp, err } diff --git a/vendor/github.com/google/go-github/v65/github/orgs_outside_collaborators.go b/vendor/github.com/google/go-github/v66/github/orgs_outside_collaborators.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_outside_collaborators.go rename to vendor/github.com/google/go-github/v66/github/orgs_outside_collaborators.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_packages.go b/vendor/github.com/google/go-github/v66/github/orgs_packages.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_packages.go rename to vendor/github.com/google/go-github/v66/github/orgs_packages.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_personal_access_tokens.go b/vendor/github.com/google/go-github/v66/github/orgs_personal_access_tokens.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_personal_access_tokens.go rename to vendor/github.com/google/go-github/v66/github/orgs_personal_access_tokens.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_projects.go b/vendor/github.com/google/go-github/v66/github/orgs_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_projects.go rename to vendor/github.com/google/go-github/v66/github/orgs_projects.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_properties.go b/vendor/github.com/google/go-github/v66/github/orgs_properties.go similarity index 99% rename from vendor/github.com/google/go-github/v65/github/orgs_properties.go rename to vendor/github.com/google/go-github/v66/github/orgs_properties.go index f7416d53..3387d98d 100644 --- a/vendor/github.com/google/go-github/v65/github/orgs_properties.go +++ b/vendor/github.com/google/go-github/v66/github/orgs_properties.go @@ -42,7 +42,7 @@ type RepoCustomPropertyValue struct { // CustomPropertyValue represents a custom property value. type CustomPropertyValue struct { PropertyName string `json:"property_name"` - Value interface{} `json:"value,omitempty"` + Value interface{} `json:"value"` } // UnmarshalJSON implements the json.Unmarshaler interface. diff --git a/vendor/github.com/google/go-github/v65/github/orgs_rules.go b/vendor/github.com/google/go-github/v66/github/orgs_rules.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_rules.go rename to vendor/github.com/google/go-github/v66/github/orgs_rules.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_security_managers.go b/vendor/github.com/google/go-github/v66/github/orgs_security_managers.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_security_managers.go rename to vendor/github.com/google/go-github/v66/github/orgs_security_managers.go diff --git a/vendor/github.com/google/go-github/v65/github/orgs_users_blocking.go b/vendor/github.com/google/go-github/v66/github/orgs_users_blocking.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/orgs_users_blocking.go rename to vendor/github.com/google/go-github/v66/github/orgs_users_blocking.go diff --git a/vendor/github.com/google/go-github/v65/github/packages.go b/vendor/github.com/google/go-github/v66/github/packages.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/packages.go rename to vendor/github.com/google/go-github/v66/github/packages.go diff --git a/vendor/github.com/google/go-github/v65/github/projects.go b/vendor/github.com/google/go-github/v66/github/projects.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/projects.go rename to vendor/github.com/google/go-github/v66/github/projects.go diff --git a/vendor/github.com/google/go-github/v65/github/pulls.go b/vendor/github.com/google/go-github/v66/github/pulls.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/pulls.go rename to vendor/github.com/google/go-github/v66/github/pulls.go diff --git a/vendor/github.com/google/go-github/v65/github/pulls_comments.go b/vendor/github.com/google/go-github/v66/github/pulls_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/pulls_comments.go rename to vendor/github.com/google/go-github/v66/github/pulls_comments.go diff --git a/vendor/github.com/google/go-github/v65/github/pulls_reviewers.go b/vendor/github.com/google/go-github/v66/github/pulls_reviewers.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/pulls_reviewers.go rename to vendor/github.com/google/go-github/v66/github/pulls_reviewers.go diff --git a/vendor/github.com/google/go-github/v65/github/pulls_reviews.go b/vendor/github.com/google/go-github/v66/github/pulls_reviews.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/pulls_reviews.go rename to vendor/github.com/google/go-github/v66/github/pulls_reviews.go diff --git a/vendor/github.com/google/go-github/v65/github/pulls_threads.go b/vendor/github.com/google/go-github/v66/github/pulls_threads.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/pulls_threads.go rename to vendor/github.com/google/go-github/v66/github/pulls_threads.go diff --git a/vendor/github.com/google/go-github/v65/github/rate_limit.go b/vendor/github.com/google/go-github/v66/github/rate_limit.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/rate_limit.go rename to vendor/github.com/google/go-github/v66/github/rate_limit.go diff --git a/vendor/github.com/google/go-github/v65/github/reactions.go b/vendor/github.com/google/go-github/v66/github/reactions.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/reactions.go rename to vendor/github.com/google/go-github/v66/github/reactions.go diff --git a/vendor/github.com/google/go-github/v65/github/repos.go b/vendor/github.com/google/go-github/v66/github/repos.go similarity index 99% rename from vendor/github.com/google/go-github/v65/github/repos.go rename to vendor/github.com/google/go-github/v66/github/repos.go index 59ef2329..d928771d 100644 --- a/vendor/github.com/google/go-github/v65/github/repos.go +++ b/vendor/github.com/google/go-github/v66/github/repos.go @@ -1363,7 +1363,7 @@ type BypassPullRequestAllowancesRequest struct { // DismissalRestrictions specifies which users and teams can dismiss pull request reviews. type DismissalRestrictions struct { - // The list of users who can dimiss pull request reviews. + // The list of users who can dismiss pull request reviews. Users []*User `json:"users"` // The list of teams which can dismiss pull request reviews. Teams []*Team `json:"teams"` @@ -1372,7 +1372,7 @@ type DismissalRestrictions struct { } // DismissalRestrictionsRequest represents the request to create/edit the -// restriction to allows only specific users, teams or apps to dimiss pull request reviews. It is +// restriction to allows only specific users, teams or apps to dismiss pull request reviews. It is // separate from DismissalRestrictions above because the request structure is // different from the response structure. // Note: Both Users and Teams must be nil, or both must be non-nil. diff --git a/vendor/github.com/google/go-github/v65/github/repos_actions_access.go b/vendor/github.com/google/go-github/v66/github/repos_actions_access.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_actions_access.go rename to vendor/github.com/google/go-github/v66/github/repos_actions_access.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_actions_allowed.go b/vendor/github.com/google/go-github/v66/github/repos_actions_allowed.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_actions_allowed.go rename to vendor/github.com/google/go-github/v66/github/repos_actions_allowed.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_actions_permissions.go b/vendor/github.com/google/go-github/v66/github/repos_actions_permissions.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_actions_permissions.go rename to vendor/github.com/google/go-github/v66/github/repos_actions_permissions.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_autolinks.go b/vendor/github.com/google/go-github/v66/github/repos_autolinks.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_autolinks.go rename to vendor/github.com/google/go-github/v66/github/repos_autolinks.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_codeowners.go b/vendor/github.com/google/go-github/v66/github/repos_codeowners.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_codeowners.go rename to vendor/github.com/google/go-github/v66/github/repos_codeowners.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_collaborators.go b/vendor/github.com/google/go-github/v66/github/repos_collaborators.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_collaborators.go rename to vendor/github.com/google/go-github/v66/github/repos_collaborators.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_comments.go b/vendor/github.com/google/go-github/v66/github/repos_comments.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_comments.go rename to vendor/github.com/google/go-github/v66/github/repos_comments.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_commits.go b/vendor/github.com/google/go-github/v66/github/repos_commits.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_commits.go rename to vendor/github.com/google/go-github/v66/github/repos_commits.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_community_health.go b/vendor/github.com/google/go-github/v66/github/repos_community_health.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_community_health.go rename to vendor/github.com/google/go-github/v66/github/repos_community_health.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_contents.go b/vendor/github.com/google/go-github/v66/github/repos_contents.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_contents.go rename to vendor/github.com/google/go-github/v66/github/repos_contents.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_deployment_branch_policies.go b/vendor/github.com/google/go-github/v66/github/repos_deployment_branch_policies.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_deployment_branch_policies.go rename to vendor/github.com/google/go-github/v66/github/repos_deployment_branch_policies.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_deployment_protection_rules.go b/vendor/github.com/google/go-github/v66/github/repos_deployment_protection_rules.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_deployment_protection_rules.go rename to vendor/github.com/google/go-github/v66/github/repos_deployment_protection_rules.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_deployments.go b/vendor/github.com/google/go-github/v66/github/repos_deployments.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_deployments.go rename to vendor/github.com/google/go-github/v66/github/repos_deployments.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_environments.go b/vendor/github.com/google/go-github/v66/github/repos_environments.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_environments.go rename to vendor/github.com/google/go-github/v66/github/repos_environments.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_forks.go b/vendor/github.com/google/go-github/v66/github/repos_forks.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_forks.go rename to vendor/github.com/google/go-github/v66/github/repos_forks.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_hooks.go b/vendor/github.com/google/go-github/v66/github/repos_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_hooks.go rename to vendor/github.com/google/go-github/v66/github/repos_hooks.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_hooks_configuration.go b/vendor/github.com/google/go-github/v66/github/repos_hooks_configuration.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_hooks_configuration.go rename to vendor/github.com/google/go-github/v66/github/repos_hooks_configuration.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_hooks_deliveries.go b/vendor/github.com/google/go-github/v66/github/repos_hooks_deliveries.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_hooks_deliveries.go rename to vendor/github.com/google/go-github/v66/github/repos_hooks_deliveries.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_invitations.go b/vendor/github.com/google/go-github/v66/github/repos_invitations.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_invitations.go rename to vendor/github.com/google/go-github/v66/github/repos_invitations.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_keys.go b/vendor/github.com/google/go-github/v66/github/repos_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_keys.go rename to vendor/github.com/google/go-github/v66/github/repos_keys.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_lfs.go b/vendor/github.com/google/go-github/v66/github/repos_lfs.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_lfs.go rename to vendor/github.com/google/go-github/v66/github/repos_lfs.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_merging.go b/vendor/github.com/google/go-github/v66/github/repos_merging.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_merging.go rename to vendor/github.com/google/go-github/v66/github/repos_merging.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_pages.go b/vendor/github.com/google/go-github/v66/github/repos_pages.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_pages.go rename to vendor/github.com/google/go-github/v66/github/repos_pages.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_prereceive_hooks.go b/vendor/github.com/google/go-github/v66/github/repos_prereceive_hooks.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_prereceive_hooks.go rename to vendor/github.com/google/go-github/v66/github/repos_prereceive_hooks.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_projects.go b/vendor/github.com/google/go-github/v66/github/repos_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_projects.go rename to vendor/github.com/google/go-github/v66/github/repos_projects.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_properties.go b/vendor/github.com/google/go-github/v66/github/repos_properties.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_properties.go rename to vendor/github.com/google/go-github/v66/github/repos_properties.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_releases.go b/vendor/github.com/google/go-github/v66/github/repos_releases.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_releases.go rename to vendor/github.com/google/go-github/v66/github/repos_releases.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_rules.go b/vendor/github.com/google/go-github/v66/github/repos_rules.go similarity index 89% rename from vendor/github.com/google/go-github/v65/github/repos_rules.go rename to vendor/github.com/google/go-github/v66/github/repos_rules.go index a90555cc..d09bb71d 100644 --- a/vendor/github.com/google/go-github/v65/github/repos_rules.go +++ b/vendor/github.com/google/go-github/v66/github/repos_rules.go @@ -85,6 +85,21 @@ type RuleFileParameters struct { RestrictedFilePaths *[]string `json:"restricted_file_paths"` } +// RuleMaxFilePathLengthParameters represents the max_file_path_length rule parameters. +type RuleMaxFilePathLengthParameters struct { + MaxFilePathLength int `json:"max_file_path_length"` +} + +// RuleFileExtensionRestrictionParameters represents the file_extension_restriction rule parameters. +type RuleFileExtensionRestrictionParameters struct { + RestrictedFileExtensions []string `json:"restricted_file_extensions"` +} + +// RuleMaxFileSizeParameters represents the max_file_size rule parameters. +type RuleMaxFileSizeParameters struct { + MaxFileSize int64 `json:"max_file_size"` +} + // UpdateAllowsFetchAndMergeRuleParameters represents the update rule parameters. type UpdateAllowsFetchAndMergeRuleParameters struct { UpdateAllowsFetchAndMerge bool `json:"update_allows_fetch_and_merge"` @@ -255,6 +270,33 @@ func (r *RepositoryRule) UnmarshalJSON(data []byte) error { bytes, _ := json.Marshal(params) rawParams := json.RawMessage(bytes) + r.Parameters = &rawParams + case "max_file_path_length": + params := RuleMaxFilePathLengthParameters{} + if err := json.Unmarshal(*RepositoryRule.Parameters, ¶ms); err != nil { + return err + } + bytes, _ := json.Marshal(params) + rawParams := json.RawMessage(bytes) + + r.Parameters = &rawParams + case "file_extension_restriction": + params := RuleFileExtensionRestrictionParameters{} + if err := json.Unmarshal(*RepositoryRule.Parameters, ¶ms); err != nil { + return err + } + bytes, _ := json.Marshal(params) + rawParams := json.RawMessage(bytes) + + r.Parameters = &rawParams + case "max_file_size": + params := RuleMaxFileSizeParameters{} + if err := json.Unmarshal(*RepositoryRule.Parameters, ¶ms); err != nil { + return err + } + bytes, _ := json.Marshal(params) + rawParams := json.RawMessage(bytes) + r.Parameters = &rawParams default: r.Type = "" @@ -454,11 +496,47 @@ func NewFilePathRestrictionRule(params *RuleFileParameters) (rule *RepositoryRul } } +// NewMaxFilePathLengthRule creates a rule to restrict file paths longer than the limit from being pushed. +func NewMaxFilePathLengthRule(params *RuleMaxFilePathLengthParameters) (rule *RepositoryRule) { + bytes, _ := json.Marshal(params) + + rawParams := json.RawMessage(bytes) + + return &RepositoryRule{ + Type: "max_file_path_length", + Parameters: &rawParams, + } +} + +// NewFileExtensionRestrictionRule creates a rule to restrict file extensions from being pushed to a commit. +func NewFileExtensionRestrictionRule(params *RuleFileExtensionRestrictionParameters) (rule *RepositoryRule) { + bytes, _ := json.Marshal(params) + + rawParams := json.RawMessage(bytes) + + return &RepositoryRule{ + Type: "file_extension_restriction", + Parameters: &rawParams, + } +} + +// NewMaxFileSizeRule creates a rule to restrict file sizes from being pushed to a commit. +func NewMaxFileSizeRule(params *RuleMaxFileSizeParameters) (rule *RepositoryRule) { + bytes, _ := json.Marshal(params) + + rawParams := json.RawMessage(bytes) + + return &RepositoryRule{ + Type: "max_file_size", + Parameters: &rawParams, + } +} + // Ruleset represents a GitHub ruleset object. type Ruleset struct { ID *int64 `json:"id,omitempty"` Name string `json:"name"` - // Possible values for Target are branch, tag + // Possible values for Target are branch, tag, push Target *string `json:"target,omitempty"` // Possible values for SourceType are: Repository, Organization SourceType *string `json:"source_type,omitempty"` diff --git a/vendor/github.com/google/go-github/v65/github/repos_stats.go b/vendor/github.com/google/go-github/v66/github/repos_stats.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_stats.go rename to vendor/github.com/google/go-github/v66/github/repos_stats.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_statuses.go b/vendor/github.com/google/go-github/v66/github/repos_statuses.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_statuses.go rename to vendor/github.com/google/go-github/v66/github/repos_statuses.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_tags.go b/vendor/github.com/google/go-github/v66/github/repos_tags.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_tags.go rename to vendor/github.com/google/go-github/v66/github/repos_tags.go diff --git a/vendor/github.com/google/go-github/v65/github/repos_traffic.go b/vendor/github.com/google/go-github/v66/github/repos_traffic.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/repos_traffic.go rename to vendor/github.com/google/go-github/v66/github/repos_traffic.go diff --git a/vendor/github.com/google/go-github/v65/github/scim.go b/vendor/github.com/google/go-github/v66/github/scim.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/scim.go rename to vendor/github.com/google/go-github/v66/github/scim.go diff --git a/vendor/github.com/google/go-github/v65/github/search.go b/vendor/github.com/google/go-github/v66/github/search.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/search.go rename to vendor/github.com/google/go-github/v66/github/search.go diff --git a/vendor/github.com/google/go-github/v65/github/secret_scanning.go b/vendor/github.com/google/go-github/v66/github/secret_scanning.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/secret_scanning.go rename to vendor/github.com/google/go-github/v66/github/secret_scanning.go diff --git a/vendor/github.com/google/go-github/v65/github/security_advisories.go b/vendor/github.com/google/go-github/v66/github/security_advisories.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/security_advisories.go rename to vendor/github.com/google/go-github/v66/github/security_advisories.go diff --git a/vendor/github.com/google/go-github/v65/github/strings.go b/vendor/github.com/google/go-github/v66/github/strings.go similarity index 85% rename from vendor/github.com/google/go-github/v65/github/strings.go rename to vendor/github.com/google/go-github/v66/github/strings.go index 147c515e..f5e61aa3 100644 --- a/vendor/github.com/google/go-github/v65/github/strings.go +++ b/vendor/github.com/google/go-github/v66/github/strings.go @@ -27,7 +27,7 @@ func Stringify(message interface{}) string { func stringifyValue(w *bytes.Buffer, val reflect.Value) { if val.Kind() == reflect.Ptr && val.IsNil() { - w.Write([]byte("")) + w.WriteString("") return } @@ -37,20 +37,20 @@ func stringifyValue(w *bytes.Buffer, val reflect.Value) { case reflect.String: fmt.Fprintf(w, `"%s"`, v) case reflect.Slice: - w.Write([]byte{'['}) + w.WriteByte('[') for i := 0; i < v.Len(); i++ { if i > 0 { - w.Write([]byte{' '}) + w.WriteByte(' ') } stringifyValue(w, v.Index(i)) } - w.Write([]byte{']'}) + w.WriteByte(']') return case reflect.Struct: if v.Type().Name() != "" { - w.Write([]byte(v.Type().String())) + w.WriteString(v.Type().String()) } // special handling of Timestamp values @@ -59,7 +59,7 @@ func stringifyValue(w *bytes.Buffer, val reflect.Value) { return } - w.Write([]byte{'{'}) + w.WriteByte('{') var sep bool for i := 0; i < v.NumField(); i++ { @@ -75,17 +75,17 @@ func stringifyValue(w *bytes.Buffer, val reflect.Value) { } if sep { - w.Write([]byte(", ")) + w.WriteString(", ") } else { sep = true } - w.Write([]byte(v.Type().Field(i).Name)) - w.Write([]byte{':'}) + w.WriteString(v.Type().Field(i).Name) + w.WriteByte(':') stringifyValue(w, fv) } - w.Write([]byte{'}'}) + w.WriteByte('}') default: if v.CanInterface() { fmt.Fprint(w, v.Interface()) diff --git a/vendor/github.com/google/go-github/v65/github/teams.go b/vendor/github.com/google/go-github/v66/github/teams.go similarity index 97% rename from vendor/github.com/google/go-github/v65/github/teams.go rename to vendor/github.com/google/go-github/v66/github/teams.go index b44e9418..10dbebcb 100644 --- a/vendor/github.com/google/go-github/v65/github/teams.go +++ b/vendor/github.com/google/go-github/v66/github/teams.go @@ -206,13 +206,14 @@ func (s *TeamsService) CreateTeam(ctx context.Context, org string, team NewTeam) // "parent_team_id" field will be null. It is for internal use // only and should not be exported. type newTeamNoParent struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Maintainers []string `json:"maintainers,omitempty"` - RepoNames []string `json:"repo_names,omitempty"` - ParentTeamID *int64 `json:"parent_team_id"` // This will be "null" - Privacy *string `json:"privacy,omitempty"` - LDAPDN *string `json:"ldap_dn,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Maintainers []string `json:"maintainers,omitempty"` + RepoNames []string `json:"repo_names,omitempty"` + ParentTeamID *int64 `json:"parent_team_id"` // This will be "null" + NotificationSetting *string `json:"notification_setting,omitempty"` + Privacy *string `json:"privacy,omitempty"` + LDAPDN *string `json:"ldap_dn,omitempty"` } // copyNewTeamWithoutParent is used to set the "parent_team_id" @@ -220,12 +221,13 @@ type newTeamNoParent struct { // It is for internal use only and should not be exported. func copyNewTeamWithoutParent(team *NewTeam) *newTeamNoParent { return &newTeamNoParent{ - Name: team.Name, - Description: team.Description, - Maintainers: team.Maintainers, - RepoNames: team.RepoNames, - Privacy: team.Privacy, - LDAPDN: team.LDAPDN, + Name: team.Name, + Description: team.Description, + Maintainers: team.Maintainers, + RepoNames: team.RepoNames, + NotificationSetting: team.NotificationSetting, + Privacy: team.Privacy, + LDAPDN: team.LDAPDN, } } diff --git a/vendor/github.com/google/go-github/v65/github/teams_discussion_comments.go b/vendor/github.com/google/go-github/v66/github/teams_discussion_comments.go similarity index 98% rename from vendor/github.com/google/go-github/v65/github/teams_discussion_comments.go rename to vendor/github.com/google/go-github/v66/github/teams_discussion_comments.go index ad3818c1..eba6fdf4 100644 --- a/vendor/github.com/google/go-github/v65/github/teams_discussion_comments.go +++ b/vendor/github.com/google/go-github/v66/github/teams_discussion_comments.go @@ -10,7 +10,7 @@ import ( "fmt" ) -// DiscussionComment represents a GitHub dicussion in a team. +// DiscussionComment represents a GitHub discussion in a team. type DiscussionComment struct { Author *User `json:"author,omitempty"` Body *string `json:"body,omitempty"` @@ -145,8 +145,8 @@ func (s *TeamsService) GetCommentBySlug(ctx context.Context, org, slug string, d // GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment // //meta:operation POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments -func (s *TeamsService) CreateCommentByID(ctx context.Context, orgID, teamID int64, discsusionNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) { - u := fmt.Sprintf("organizations/%v/team/%v/discussions/%v/comments", orgID, teamID, discsusionNumber) +func (s *TeamsService) CreateCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) { + u := fmt.Sprintf("organizations/%v/team/%v/discussions/%v/comments", orgID, teamID, discussionNumber) req, err := s.client.NewRequest("POST", u, comment) if err != nil { return nil, nil, err diff --git a/vendor/github.com/google/go-github/v65/github/teams_discussions.go b/vendor/github.com/google/go-github/v66/github/teams_discussions.go similarity index 99% rename from vendor/github.com/google/go-github/v65/github/teams_discussions.go rename to vendor/github.com/google/go-github/v66/github/teams_discussions.go index ee78c032..b056525f 100644 --- a/vendor/github.com/google/go-github/v65/github/teams_discussions.go +++ b/vendor/github.com/google/go-github/v66/github/teams_discussions.go @@ -10,7 +10,7 @@ import ( "fmt" ) -// TeamDiscussion represents a GitHub dicussion in a team. +// TeamDiscussion represents a GitHub discussion in a team. type TeamDiscussion struct { Author *User `json:"author,omitempty"` Body *string `json:"body,omitempty"` diff --git a/vendor/github.com/google/go-github/v65/github/teams_members.go b/vendor/github.com/google/go-github/v66/github/teams_members.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/teams_members.go rename to vendor/github.com/google/go-github/v66/github/teams_members.go diff --git a/vendor/github.com/google/go-github/v65/github/timestamp.go b/vendor/github.com/google/go-github/v66/github/timestamp.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/timestamp.go rename to vendor/github.com/google/go-github/v66/github/timestamp.go diff --git a/vendor/github.com/google/go-github/v65/github/users.go b/vendor/github.com/google/go-github/v66/github/users.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/users.go rename to vendor/github.com/google/go-github/v66/github/users.go diff --git a/vendor/github.com/google/go-github/v65/github/users_administration.go b/vendor/github.com/google/go-github/v66/github/users_administration.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/users_administration.go rename to vendor/github.com/google/go-github/v66/github/users_administration.go diff --git a/vendor/github.com/google/go-github/v65/github/users_blocking.go b/vendor/github.com/google/go-github/v66/github/users_blocking.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/users_blocking.go rename to vendor/github.com/google/go-github/v66/github/users_blocking.go diff --git a/vendor/github.com/google/go-github/v65/github/users_emails.go b/vendor/github.com/google/go-github/v66/github/users_emails.go similarity index 96% rename from vendor/github.com/google/go-github/v65/github/users_emails.go rename to vendor/github.com/google/go-github/v66/github/users_emails.go index 8386de25..189187a7 100644 --- a/vendor/github.com/google/go-github/v65/github/users_emails.go +++ b/vendor/github.com/google/go-github/v66/github/users_emails.go @@ -86,11 +86,11 @@ func (s *UsersService) DeleteEmails(ctx context.Context, emails []string) (*Resp func (s *UsersService) SetEmailVisibility(ctx context.Context, visibility string) ([]*UserEmail, *Response, error) { u := "user/email/visibility" - updateVisiblilityReq := &UserEmail{ + updateVisibilityReq := &UserEmail{ Visibility: &visibility, } - req, err := s.client.NewRequest("PATCH", u, updateVisiblilityReq) + req, err := s.client.NewRequest("PATCH", u, updateVisibilityReq) if err != nil { return nil, nil, err } diff --git a/vendor/github.com/google/go-github/v65/github/users_followers.go b/vendor/github.com/google/go-github/v66/github/users_followers.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/users_followers.go rename to vendor/github.com/google/go-github/v66/github/users_followers.go diff --git a/vendor/github.com/google/go-github/v65/github/users_gpg_keys.go b/vendor/github.com/google/go-github/v66/github/users_gpg_keys.go similarity index 98% rename from vendor/github.com/google/go-github/v65/github/users_gpg_keys.go rename to vendor/github.com/google/go-github/v66/github/users_gpg_keys.go index de7caaf1..2f296a1e 100644 --- a/vendor/github.com/google/go-github/v65/github/users_gpg_keys.go +++ b/vendor/github.com/google/go-github/v66/github/users_gpg_keys.go @@ -97,7 +97,7 @@ func (s *UsersService) GetGPGKey(ctx context.Context, id int64) (*GPGKey, *Respo return key, resp, nil } -// CreateGPGKey creates a GPG key. It requires authenticatation via Basic Auth +// CreateGPGKey creates a GPG key. It requires authentication via Basic Auth // or OAuth with at least write:gpg_key scope. // // GitHub API docs: https://docs.github.com/rest/users/gpg-keys#create-a-gpg-key-for-the-authenticated-user diff --git a/vendor/github.com/google/go-github/v65/github/users_keys.go b/vendor/github.com/google/go-github/v66/github/users_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/users_keys.go rename to vendor/github.com/google/go-github/v66/github/users_keys.go diff --git a/vendor/github.com/google/go-github/v65/github/users_packages.go b/vendor/github.com/google/go-github/v66/github/users_packages.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/users_packages.go rename to vendor/github.com/google/go-github/v66/github/users_packages.go diff --git a/vendor/github.com/google/go-github/v65/github/users_projects.go b/vendor/github.com/google/go-github/v66/github/users_projects.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/users_projects.go rename to vendor/github.com/google/go-github/v66/github/users_projects.go diff --git a/vendor/github.com/google/go-github/v65/github/users_ssh_signing_keys.go b/vendor/github.com/google/go-github/v66/github/users_ssh_signing_keys.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/users_ssh_signing_keys.go rename to vendor/github.com/google/go-github/v66/github/users_ssh_signing_keys.go diff --git a/vendor/github.com/google/go-github/v65/github/with_appengine.go b/vendor/github.com/google/go-github/v66/github/with_appengine.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/with_appengine.go rename to vendor/github.com/google/go-github/v66/github/with_appengine.go diff --git a/vendor/github.com/google/go-github/v65/github/without_appengine.go b/vendor/github.com/google/go-github/v66/github/without_appengine.go similarity index 100% rename from vendor/github.com/google/go-github/v65/github/without_appengine.go rename to vendor/github.com/google/go-github/v66/github/without_appengine.go diff --git a/vendor/github.com/palantir/go-githubapp/appconfig/appconfig.go b/vendor/github.com/palantir/go-githubapp/appconfig/appconfig.go index f47b17a4..81560ed4 100644 --- a/vendor/github.com/palantir/go-githubapp/appconfig/appconfig.go +++ b/vendor/github.com/palantir/go-githubapp/appconfig/appconfig.go @@ -25,7 +25,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/pkg/errors" "github.com/rs/zerolog" ) diff --git a/vendor/github.com/palantir/go-githubapp/githubapp/caching_client_creator.go b/vendor/github.com/palantir/go-githubapp/githubapp/caching_client_creator.go index fb51c4b3..aa85f266 100644 --- a/vendor/github.com/palantir/go-githubapp/githubapp/caching_client_creator.go +++ b/vendor/github.com/palantir/go-githubapp/githubapp/caching_client_creator.go @@ -17,7 +17,7 @@ package githubapp import ( "fmt" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" lru "github.com/hashicorp/golang-lru" "github.com/pkg/errors" "github.com/shurcooL/githubv4" diff --git a/vendor/github.com/palantir/go-githubapp/githubapp/client_creator.go b/vendor/github.com/palantir/go-githubapp/githubapp/client_creator.go index d947cd3e..7c21e38d 100644 --- a/vendor/github.com/palantir/go-githubapp/githubapp/client_creator.go +++ b/vendor/github.com/palantir/go-githubapp/githubapp/client_creator.go @@ -24,7 +24,7 @@ import ( "time" "github.com/bradleyfalzon/ghinstallation/v2" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/gregjones/httpcache" "github.com/pkg/errors" "github.com/shurcooL/githubv4" diff --git a/vendor/github.com/palantir/go-githubapp/githubapp/context.go b/vendor/github.com/palantir/go-githubapp/githubapp/context.go index 93eda6c1..d8b4f7d3 100644 --- a/vendor/github.com/palantir/go-githubapp/githubapp/context.go +++ b/vendor/github.com/palantir/go-githubapp/githubapp/context.go @@ -17,7 +17,7 @@ package githubapp import ( "context" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/rs/zerolog" ) diff --git a/vendor/github.com/palantir/go-githubapp/githubapp/dispatcher.go b/vendor/github.com/palantir/go-githubapp/githubapp/dispatcher.go index abd52fbf..91f27491 100644 --- a/vendor/github.com/palantir/go-githubapp/githubapp/dispatcher.go +++ b/vendor/github.com/palantir/go-githubapp/githubapp/dispatcher.go @@ -19,7 +19,7 @@ import ( "fmt" "net/http" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/pkg/errors" "github.com/rcrowley/go-metrics" "github.com/rs/zerolog" diff --git a/vendor/github.com/palantir/go-githubapp/githubapp/installations.go b/vendor/github.com/palantir/go-githubapp/githubapp/installations.go index f8b83e29..135d1ca4 100644 --- a/vendor/github.com/palantir/go-githubapp/githubapp/installations.go +++ b/vendor/github.com/palantir/go-githubapp/githubapp/installations.go @@ -19,7 +19,7 @@ import ( "fmt" "net/http" - "github.com/google/go-github/v65/github" + "github.com/google/go-github/v66/github" "github.com/pkg/errors" ) diff --git a/vendor/modules.txt b/vendor/modules.txt index 19113cc8..78de00b1 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -43,9 +43,9 @@ github.com/golang/protobuf/ptypes/timestamp # github.com/google/go-github/v62 v62.0.0 ## explicit; go 1.21 github.com/google/go-github/v62/github -# github.com/google/go-github/v65 v65.0.0 +# github.com/google/go-github/v66 v66.0.0 ## explicit; go 1.21 -github.com/google/go-github/v65/github +github.com/google/go-github/v66/github # github.com/google/go-querystring v1.1.0 ## explicit; go 1.10 github.com/google/go-querystring/query @@ -77,8 +77,8 @@ github.com/palantir/go-baseapp/appmetrics/emitter/prometheus github.com/palantir/go-baseapp/baseapp github.com/palantir/go-baseapp/baseapp/datadog github.com/palantir/go-baseapp/pkg/errfmt -# github.com/palantir/go-githubapp v0.29.0 -## explicit; go 1.21 +# github.com/palantir/go-githubapp v0.30.0 +## explicit; go 1.23.0 github.com/palantir/go-githubapp/appconfig github.com/palantir/go-githubapp/githubapp github.com/palantir/go-githubapp/oauth2