Skip to content

Upgrading octokit 2 to 3

Review needed2.7.2 → 3.8.0Deprecated1New13Changed9Fixed8Other7

Review neededUpgrade verdict

1 deprecation.

  • The methods for updating SSH keys and deploy keys are deprecated and should be avoided.
1 item needs code or config changes

Requires Ruby >= 1.9.2 from 3.0.0.pre (none stated before).

Moves sawyer ~> 0.5.2 → >= 0.5.3, ~> 0.6.0. Your build may pick other versions.

Nothing in this upgrade needs a code or configuration change.

Deprecated1
Deprecates SSH key and Deploy key update methods.

Generated by DepDelta from published Ruby source. Not mixed with prose notes.

  • added: const Octokit.MAJOR
  • added: const Octokit.MINOR
  • added: const Octokit.PATCH
  • removed: method Client.authorize_url(*)
  • changed: class RateLimit < Struct.new :limit, :remaining, :resets_at, :resets_in → class RateLimit < Struct.new(:limit, :remaining, :resets_at, :resets_in)
  • added: class AbuseDetected < Forbidden
  • added: class ApplicationCredentialsRequired < StandardError
  • added: class MethodNotAllowed < ClientError
  • added: class Organization
  • added: class RepositoryUnavailable < Forbidden
  • added: class User
  • added: method Client.as_app(_ = …, _ = …)
  • added: method Client.octokit_warn(*)
  • added: method Repository.id_api_path()
  • added: method Repository.named_api_path()
  • added: method Repository.path()
  • added: property Repository.id: accessor
  • added: set Client.access_token(_)
  • added: set Client.client_id(_)
  • added: set Client.client_secret(_)
  • added: set Client.login(_)
  • added: set Client.password(_)
  • added: static method Organization.path(_)
  • added: static method Repository.path(_)
  • added: static method User.path(_)
  • removed: method Commits.commit_comment(_, _, _ = …)
  • removed: method Commits.commit_comments(_, _, _ = …)
  • removed: method Commits.create_commit_comment(_, _, _, _ = …, _ = …, _ = …, _ = …)
  • removed: method Commits.delete_commit_comment(_, _, _ = …)
  • removed: method Commits.list_commit_comments(_, _ = …)
  • removed: method Commits.update_commit_comment(_, _, _, _ = …)
  • removed: method Downloads.create_download(_, _, _ = …)
  • removed: method Repositories.create_hook(_, _, _, _ = …)
  • removed: method Repositories.edit_hook(_, _, _, _, _ = …)
  • removed: method Repositories.hook(_, _, _ = …)
  • removed: method Repositories.hooks(_, _ = …)
  • removed: method Repositories.remove_hook(_, _, _ = …)
  • removed: method Repositories.test_hook(_, _, _ = …)
  • changed: class CONVENIENCE_HEADERS < Set.new → class CONVENIENCE_HEADERS < Set.new([:accept, :content_type])
  • changed: method Issues.create_issue(_, _, _, _ = …) → method Issues.create_issue(_, _, _ = …, _ = …)
  • changed: method Issues.open_issue(_, _, _, _ = …) → method Issues.open_issue(_, _, _ = …, _ = …)
  • changed: method Issues.update_issue(_, _, _, _, _ = …) → method Issues.update_issue(_, _, *)
  • changed: method PubSubHubbub.subscribe(_, _) → method PubSubHubbub.subscribe(_, _, _ = …)
  • changed: method PubSubHubbub.subscribe_service_hook(_, _, _ = …) → method PubSubHubbub.subscribe_service_hook(_, _, _ = …, _ = …)
  • changed: method PullRequests.create_pull_request(_, _, _, _, _, _ = …) → method PullRequests.create_pull_request(_, _, _, _, _ = …, _ = …)
  • changed: method PullRequests.pull_requests(_, _ = …, _ = …) → method PullRequests.pull_requests(*)
  • changed: method PullRequests.pulls(_, _ = …, _ = …) → method PullRequests.pulls(*)
  • changed: method Users.starred?(*) → method Users.starred?(_, _ = …)
  • added: const Hooks.ORG_HOOKS_PREVIEW_MEDIA_TYPE
  • added: method Authorizations.authorize_url(_ = …, _ = …)
  • added: method Authorizations.check_application_authorization(_, _ = …)
  • added: method Authorizations.delete_application_authorization(_, _ = …)
  • added: method Authorizations.reset_application_authorization(_, _ = …)
  • added: method Authorizations.revoke_all_application_authorizations(_ = …)
  • added: method Authorizations.revoke_application_authorization(_, _ = …)
  • added: method Deployments.create_deployment(_, _, _ = …)
  • added: method Deployments.create_deployment_status(_, _, _ = …)
  • added: method Deployments.deployment_statuses(_, _ = …)
  • added: method Deployments.deployments(_, _ = …)
  • added: method Deployments.list_deployment_statuses(_, _ = …)
  • added: method Deployments.list_deployments(_, _ = …)
  • added: method Hooks.create_hook(_, _, _, _ = …)
  • added: method Hooks.create_org_hook(_, _, _ = …)
  • added: method Hooks.edit_hook(_, _, _, _, _ = …)
  • added: method Hooks.edit_org_hook(_, _, _, _ = …)
  • added: method Hooks.hook(_, _, _ = …)
  • added: method Hooks.hooks(_, _ = …)
  • added: method Hooks.list_org_hooks(_, _ = …)
  • added: method Hooks.org_hook(_, _, _ = …)
  • added: method Hooks.org_hooks(_, _ = …)
  • added: method Hooks.ping_org_hook(_, _, _ = …)
  • added: method Hooks.remove_hook(_, _, _ = …)
  • added: method Hooks.remove_org_hook(_, _, _ = …)
  • added: method Hooks.test_hook(_, _, _ = …)
  • added: method Hooks.update_org_hook(_, _, _, _ = …)
  • added: method Organizations.add_team_membership(_, _, _ = …)
  • added: method Organizations.org_membership(_, _ = …)
  • added: method Organizations.org_memberships(_ = …)
  • added: method Organizations.organization_membership(_, _ = …)
  • added: method Organizations.organization_memberships(_ = …)
  • added: method Organizations.remove_team_membership(_, _, _ = …)
  • added: method Organizations.team_membership(_, _, _ = …)
  • added: method Organizations.update_org_membership(_, _ = …)
  • added: method Organizations.update_organization_membership(_, _ = …)
  • added: method Pages.latest_pages_build(_, _ = …)
  • added: method Pages.list_pages_builds(_, _ = …)
  • added: method Pages.pages(_, _ = …)
  • added: method Pages.pages_builds(_, _ = …)
  • added: method Releases.latest_release(_, _ = …)
  • added: method Releases.release_for_tag(_, _, _ = …)
  • added: method Statuses.combined_status(_, _, _ = …)
  • added: method Statuses.status(_, _, _ = …)
  • added: module Deployments
  • added: module Pages