{"action":"opened","issue":{"url":"https://api.github.com/repos/VulnerabilityHistoryProject/vulnerability-history/issues/427","repository_url":"https://api.github.com/repos/VulnerabilityHistoryProject/vulnerability-history","labels_url":"https://api.github.com/repos/VulnerabilityHistoryProject/vulnerability-history/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/VulnerabilityHistoryProject/vulnerability-history/issues/427/comments","events_url":"https://api.github.com/repos/VulnerabilityHistoryProject/vulnerability-history/issues/427/events","html_url":"https://github.com/VulnerabilityHistoryProject/vulnerability-history/issues/427","id":378143499,"node_id":"MDU6SXNzdWUzNzgxNDM0OTk=","number":427,"title":"VHP-flavored markdown links to models by unique keys","user":{"login":"andymeneely","id":341847,"node_id":"MDQ6VXNlcjM0MTg0Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/341847?v=4","gravatar_id":"","url":"https://api.github.com/users/andymeneely","html_url":"https://github.com/andymeneely","followers_url":"https://api.github.com/users/andymeneely/followers","following_url":"https://api.github.com/users/andymeneely/following{/other_user}","gists_url":"https://api.github.com/users/andymeneely/gists{/gist_id}","starred_url":"https://api.github.com/users/andymeneely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymeneely/subscriptions","organizations_url":"https://api.github.com/users/andymeneely/orgs","repos_url":"https://api.github.com/users/andymeneely/repos","events_url":"https://api.github.com/users/andymeneely/events{/privacy}","received_events_url":"https://api.github.com/users/andymeneely/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-07T05:01:01Z","updated_at":"2018-11-07T05:01:01Z","closed_at":null,"author_association":"COLLABORATOR","body":"I'd like to be able to link to things as much as possible. Not just from headlines, but from anywhere we have writing. \r\n\r\nI *don't* want to have my writing be dependent on primary keys. Instead, let's use well-known unique shortnames for them. \r\n\r\n* Tags have a \"shortname\" field, e.g. \"bounty\", which is unique\r\n* Filepaths have the actual filepath string, which is unique\r\n* Vulnerabilities have the CVE, which is unique\r\n* Commits have git hashes\r\n* Any others?\r\n\r\nPotentially, when we support directories with #361 we can link to those directories too.\r\n\r\nI'm thinking we can add some `gsub`s to our VHP-flavored markdown (maybe we need to name it that and make a module out of it...) that. For Tags we can include the Tag icon, for Vulnerabilities we can include the Bug icon, git hashes we can shorten and put an icon next to it with a tooltip, etc. \r\n\r\nBUT! For performance reasons, I don't want to have to do a database lookup every time we render wikitext. So if I have \"We talk about bounties in :tag:bounty:\" to have to do a `Tag.find_by(shortname: 'bounty').id` just to link to the ID. Instead, if the route is just there then we can just do a basic gsub.\r\n"}}
{"actor":{"display_login":"andymeneely"}}