Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Relocated repos #151

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Relocated repos #151

wants to merge 2 commits into from

Conversation

rprimus
Copy link

@rprimus rprimus commented Aug 7, 2018

Tue Aug 7 19:50:58 BST 2018

Code to process 301 return codes (for relocated repos).

Emacs test
ELISP> (load "/usr/local/src/paradox/paradox-github.el")
t
ELISP> (paradox--github-action "repos/capitaomorte/sly" :reader #'json-read)
((id . 17603517)
 (node_id . "MDEwOlJlcG9zaXRvcnkxNzYwMzUxNw==")
 (name . "sly")
 (full_name . "joaotavora/sly")
 (owner
  (login . "joaotavora")
  (id . 387011)
  (node_id . "MDQ6VXNlcjM4NzAxMQ==")
  (avatar_url . "https://avatars0.githubusercontent.com/u/387011?v=4")
  (gravatar_id . "")
  (url . "https://api.github.com/users/joaotavora")
  (html_url . "https://github.com/joaotavora")
  (followers_url . "https://api.github.com/users/joaotavora/followers")
  (following_url . "https://api.github.com/users/joaotavora/following{/other_user}")
  (gists_url . "https://api.github.com/users/joaotavora/gists{/gist_id}")
  (starred_url . "https://api.github.com/users/joaotavora/starred{/owner}{/repo}")
  (subscriptions_url . "https://api.github.com/users/joaotavora/subscriptions")
  (organizations_url . "https://api.github.com/users/joaotavora/orgs")
  (repos_url . "https://api.github.com/users/joaotavora/repos")
  (events_url . "https://api.github.com/users/joaotavora/events{/privacy}")
  (received_events_url . "https://api.github.com/users/joaotavora/received_events")
  (type . "User")
  (site_admin . :json-false))
 (private . :json-false)
 (html_url . "https://github.com/joaotavora/sly")
 (description . "Sylvester the Cat's Common Lisp IDE")
 (fork . :json-false)
 (url . "https://api.github.com/repos/joaotavora/sly")
 (forks_url . "https://api.github.com/repos/joaotavora/sly/forks")
 (keys_url . "https://api.github.com/repos/joaotavora/sly/keys{/key_id}")
 (collaborators_url . "https://api.github.com/repos/joaotavora/sly/collaborators{/collaborator}")
 (teams_url . "https://api.github.com/repos/joaotavora/sly/teams")
 (hooks_url . "https://api.github.com/repos/joaotavora/sly/hooks")
 (issue_events_url . "https://api.github.com/repos/joaotavora/sly/issues/events{/number}")
 (events_url . "https://api.github.com/repos/joaotavora/sly/events")
 (assignees_url . "https://api.github.com/repos/joaotavora/sly/assignees{/user}")
 (branches_url . "https://api.github.com/repos/joaotavora/sly/branches{/branch}")
 (tags_url . "https://api.github.com/repos/joaotavora/sly/tags")
 (blobs_url . "https://api.github.com/repos/joaotavora/sly/git/blobs{/sha}")
 (git_tags_url . "https://api.github.com/repos/joaotavora/sly/git/tags{/sha}")
 (git_refs_url . "https://api.github.com/repos/joaotavora/sly/git/refs{/sha}")
 (trees_url . "https://api.github.com/repos/joaotavora/sly/git/trees{/sha}")
 (statuses_url . "https://api.github.com/repos/joaotavora/sly/statuses/{sha}")
 (languages_url . "https://api.github.com/repos/joaotavora/sly/languages")
 (stargazers_url . "https://api.github.com/repos/joaotavora/sly/stargazers")
 (contributors_url . "https://api.github.com/repos/joaotavora/sly/contributors")
 (subscribers_url . "https://api.github.com/repos/joaotavora/sly/subscribers")
 (subscription_url . "https://api.github.com/repos/joaotavora/sly/subscription")
 (commits_url . "https://api.github.com/repos/joaotavora/sly/commits{/sha}")
 (git_commits_url . "https://api.github.com/repos/joaotavora/sly/git/commits{/sha}")
 (comments_url . "https://api.github.com/repos/joaotavora/sly/comments{/number}")
 (issue_comment_url . "https://api.github.com/repos/joaotavora/sly/issues/comments{/number}")
 (contents_url . "https://api.github.com/repos/joaotavora/sly/contents/{+path}")
 (compare_url . "https://api.github.com/repos/joaotavora/sly/compare/{base}...{head}")
 (merges_url . "https://api.github.com/repos/joaotavora/sly/merges")
 (archive_url . "https://api.github.com/repos/joaotavora/sly/{archive_format}{/ref}")
 (downloads_url . "https://api.github.com/repos/joaotavora/sly/downloads")
 (issues_url . "https://api.github.com/repos/joaotavora/sly/issues{/number}")
 (pulls_url . "https://api.github.com/repos/joaotavora/sly/pulls{/number}")
 (milestones_url . "https://api.github.com/repos/joaotavora/sly/milestones{/number}")
 (notifications_url . "https://api.github.com/repos/joaotavora/sly/notifications{?since,all,participating}")
 (labels_url . "https://api.github.com/repos/joaotavora/sly/labels{/name}")
 (releases_url . "https://api.github.com/repos/joaotavora/sly/releases{/id}")
 (deployments_url . "https://api.github.com/repos/joaotavora/sly/deployments")
 (created_at . "2014-03-10T18:24:08Z")
 (updated_at . "2018-08-07T13:46:07Z")
 (pushed_at . "2018-08-06T20:26:21Z")
 (git_url . "git://github.com/joaotavora/sly.git")
 (ssh_url . "git@github.com:joaotavora/sly.git")
 (clone_url . "https://github.com/joaotavora/sly.git")
 (svn_url . "https://github.com/joaotavora/sly")
 (homepage . "")
 (size . 23974)
 (stargazers_count . 338)
 (watchers_count . 338)
 (language . "Common Lisp")
 (has_issues . t)
 (has_projects . t)
 (has_downloads . t)
 (has_wiki . t)
 (has_pages . t)
 (forks_count . 27)
 (mirror_url)
 (archived . :json-false)
 (open_issues_count . 29)
 (license)
 (forks . 27)
 (open_issues . 29)
 (watchers . 338)
 (default_branch . "master")
 (network_count . 27)
 (subscribers_count . 35))

ELISP> 
ELISP> (paradox-fetch-star-count "capitaomorte/sly")
338 (#o522, #x152)
ELISP>

R Primus added 2 commits August 7, 2018 19:39
…lags

Relocated repos will initially have a 301 code.  -L allows curl to
continue by following the URI in the location field.
@rprimus
Copy link
Author

rprimus commented Aug 7, 2018

Tue Aug 7 22:11:39 BST 2018

28 MELPA recipes have been updated to refer to the current repos (via melpa/melpa@3416586), so this PR may not be required.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant