{"action":"created","issue":{"url":"https://api.github.com/repos/fedora-infra/anitya/issues/374","repository_url":"https://api.github.com/repos/fedora-infra/anitya","labels_url":"https://api.github.com/repos/fedora-infra/anitya/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/fedora-infra/anitya/issues/374/comments","events_url":"https://api.github.com/repos/fedora-infra/anitya/issues/374/events","html_url":"https://github.com/fedora-infra/anitya/issues/374","id":188842572,"number":374,"title":"GitHub's heretical `v` version prefix","user":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-11T20:21:12Z","updated_at":"2016-11-11T20:23:35Z","closed_at":null,"body":"Behind a provocative title, a proposal: how about automatically stripping the optional `v` version prefix some people use in their tags on GitHub (as GH itself advises to do)?\r\n\r\nCurrently in the database we have a mix of entries with `v` defined as prefix to ignore, and others without it. Having this unnecessary prefix makes it harder to compare the \"normal\" version with the one parsed by anitya.\r\n\r\nI'd propose that we do one of those, or both:\r\n- Define a policy about this prefix: should it be kept (no `v` prefix added manually in the backend), or should it be added manually for all relevant projects using the GH backend and such prefixes (lot of work)?\r\n- Enhance the GH backend to automatically strip this optional `v` prefix when identified as such (i.e. the regex should match `v` + \"normal\" version number, and not `v.*`, so `v0.2.1` would become `0.2.1` but `version3` would stay untouched.\r\n\r\nWDYT?"},"comment":{"url":"https://api.github.com/repos/fedora-infra/anitya/issues/comments/260047424","html_url":"https://github.com/fedora-infra/anitya/issues/374#issuecomment-260047424","issue_url":"https://api.github.com/repos/fedora-infra/anitya/issues/374","id":260047424,"user":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T20:23:35Z","updated_at":"2016-11-11T20:23:35Z","body":"Note that this \"clever left-stripping\" should be similar to what GitHub itself does: if you download https://github.com/orga/project/archive/v0.2.1.tar.gz, you will get a folder named `project-0.2.1` and not `project-v0.2.1`."}}
{"actor":{"display_login":"akien-mga"}}