Skip to content

Commit

Permalink
Correct documentation URL for #artifact_download_url (#1483)
Browse files Browse the repository at this point in the history
With each client method, we include its URL in our API documentation on https://docs.github.com. After releasing v5.6.0, I spotted that the URL for `#artifact_download_url` was incorrect, pointing to a different API. This fixes it.
  • Loading branch information
timrogers committed Sep 14, 2022
1 parent 2c7c1eb commit c553401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octokit/client/actions_artifacts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def artifact(repo, id, options = {})
# @param id [Integer] Id of an artifact
#
# @return [String] URL to the .zip archive of the artifact
# @see https://docs.github.com/en/rest/actions/workflow-runs#download-workflow-run-logs
# @see https://docs.github.com/en/rest/actions/artifacts#download-an-artifact
def artifact_download_url(repo, id, options = {})
url = "#{Repository.path repo}/actions/artifacts/#{id}/zip"

Expand Down

0 comments on commit c553401

Please sign in to comment.