Skip to content

Commit

Permalink
Merge pull request #1381 from rzhade3/rzhade3/update-migration-docs
Browse files Browse the repository at this point in the history
Update broken links to Organization Migration documentation
  • Loading branch information
Heather Harvey authored Jan 11, 2022
2 parents 0e29f8c + 564e891 commit 098dfa0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/octokit/client/organizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def remove_organization_membership(org, options = {})
# @return [Sawyer::Resource] Hash representing the new migration.
# @example
# @client.start_migration('github', ['github/dotfiles'])
# @see https://developer.github.com/v3/orgs/migrations/#start-a-migration
# @see https://docs.github.com/en/rest/reference/migrations#start-an-organization-migration
def start_migration(org, repositories, options = {})
options = ensure_api_media_type(:migrations, options)
options[:repositories] = repositories
Expand All @@ -744,7 +744,7 @@ def start_migration(org, repositories, options = {})
#
# @param org [String, Integer] Organization GitHub login or id.
# @return [Array<Sawyer::Resource>] Array of migration resources.
# @see https://developer.github.com/v3/orgs/migrations/#get-a-list-of-migrations
# @see https://docs.github.com/en/rest/reference/migrations#list-organization-migrations
def migrations(org, options = {})
options = ensure_api_media_type(:migrations, options)
paginate "#{Organization.path(org)}/migrations", options
Expand All @@ -756,7 +756,7 @@ def migrations(org, options = {})
#
# @param org [String, Integer] Organization GitHub login or id.
# @param id [Integer] ID number of the migration.
# @see https://developer.github.com/v3/orgs/migrations/#get-the-status-of-a-migration
# @see https://docs.github.com/en/rest/reference/migrations#get-an-organization-migration-status
def migration_status(org, id, options = {})
options = ensure_api_media_type(:migrations, options)
get "#{Organization.path(org)}/migrations/#{id}", options
Expand All @@ -768,7 +768,7 @@ def migration_status(org, id, options = {})
#
# @param org [String, Integer] Organization GitHub login or id.
# @param id [Integer] ID number of the migration.
# @see https://developer.github.com/v3/orgs/migrations/#download-a-migration-archive
# @see https://docs.github.com/en/rest/reference/migrations#download-an-organization-migration-archive
def migration_archive_url(org, id, options = {})
options = ensure_api_media_type(:migrations, options)
url = "#{Organization.path(org)}/migrations/#{id}/archive"
Expand All @@ -783,7 +783,7 @@ def migration_archive_url(org, id, options = {})
#
# @param org [String, Integer] Organization GitHub login or id.
# @param id [Integer] ID number of the migration.
# @see https://developer.github.com/v3/orgs/migrations/#delete-a-migration-archive
# @see https://docs.github.com/en/rest/reference/migrations#delete-an-organization-migration-archive
def delete_migration_archive(org, id, options = {})
options = ensure_api_media_type(:migrations, options)
delete "#{Organization.path(org)}/migrations/#{id}/archive", options
Expand All @@ -796,7 +796,7 @@ def delete_migration_archive(org, id, options = {})
# @param org [String, Integer] Organization GitHub login or id.
# @param id [Integer] ID number of the migration.
# @param repo [String] Name of the repository.
# @see https://developer.github.com/v3/orgs/migrations/#unlock-a-repository
# @see https://docs.github.com/en/rest/reference/migrations#unlock-an-organization-repository
def unlock_repository(org, id, repo, options = {})
options = ensure_api_media_type(:migrations, options)
delete "#{Organization.path(org)}/migrations/#{id}/repos/#{repo}/lock", options
Expand Down

0 comments on commit 098dfa0

Please sign in to comment.