{"action":"created","issue":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1062","labels_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1062/labels{/name}","comments_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1062/comments","events_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1062/events","html_url":"https://github.com/rtfd/readthedocs.org/issues/1062","id":50885815,"number":1062,"title":"\"edit on github\" not working for the 'stable' branch","user":{"login":"jarondl","id":2776956,"avatar_url":"https://avatars.githubusercontent.com/u/2776956?v=3","gravatar_id":"","url":"https://api.github.com/users/jarondl","html_url":"https://github.com/jarondl","followers_url":"https://api.github.com/users/jarondl/followers","following_url":"https://api.github.com/users/jarondl/following{/other_user}","gists_url":"https://api.github.com/users/jarondl/gists{/gist_id}","starred_url":"https://api.github.com/users/jarondl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarondl/subscriptions","organizations_url":"https://api.github.com/users/jarondl/orgs","repos_url":"https://api.github.com/users/jarondl/repos","events_url":"https://api.github.com/users/jarondl/events{/privacy}","received_events_url":"https://api.github.com/users/jarondl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-03T20:07:10Z","updated_at":"2015-06-17T02:21:02Z","closed_at":null,"body":"Hi.\r\nThe \"edit on github\" link does not work for the stable documentation version, as it tries to open the non- existent `stable` branch on github.\r\n\r\nAs I understand it, both  `latest` and `stable` are references, latest to master, and stable to the latest tagged version ( see https://docs.readthedocs.org/en/latest/versions.html ). However it seems that only `latest` has special logic to deal with the edit on github feature\r\nhttps://github.com/rtfd/readthedocs.org/blob/e67465175d981d19bdd98e911d02c85e7009edff/readthedocs/builds/utils.py#L40\r\nSo the solution would be to apply the same logic, and have `stable` point to the latest tagged version."},"comment":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/comments/112624849","html_url":"https://github.com/rtfd/readthedocs.org/issues/1062#issuecomment-112624849","issue_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1062","id":112624849,"user":{"login":"dnrce","id":1084619,"avatar_url":"https://avatars.githubusercontent.com/u/1084619?v=3","gravatar_id":"","url":"https://api.github.com/users/dnrce","html_url":"https://github.com/dnrce","followers_url":"https://api.github.com/users/dnrce/followers","following_url":"https://api.github.com/users/dnrce/following{/other_user}","gists_url":"https://api.github.com/users/dnrce/gists{/gist_id}","starred_url":"https://api.github.com/users/dnrce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnrce/subscriptions","organizations_url":"https://api.github.com/users/dnrce/orgs","repos_url":"https://api.github.com/users/dnrce/repos","events_url":"https://api.github.com/users/dnrce/events{/privacy}","received_events_url":"https://api.github.com/users/dnrce/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T02:21:02Z","updated_at":"2015-06-17T02:21:02Z","body":"This would be nice to have, but might require some creativity. I looked into it but I don't see that `stable` is mapped to a tag in the database -- the closest available field is `identifier` which is the SHA (for git, at least). This might be good enough.\r\n\r\nHowever, there's another issue: GitHub doesn't provide edit functionality for tags/shas. So, what's an appropriate link target for \"edit\"?"}}