{"action":"created","issue":{"url":"https://api.github.com/repos/chitsaou/copy-as-markdown/issues/52","repository_url":"https://api.github.com/repos/chitsaou/copy-as-markdown","labels_url":"https://api.github.com/repos/chitsaou/copy-as-markdown/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/chitsaou/copy-as-markdown/issues/52/comments","events_url":"https://api.github.com/repos/chitsaou/copy-as-markdown/issues/52/events","html_url":"https://github.com/chitsaou/copy-as-markdown/issues/52","id":261331753,"number":52,"title":"Per-site link formatting","user":{"login":"chitsaou","id":10737,"avatar_url":"https://avatars1.githubusercontent.com/u/10737?v=4","gravatar_id":"","url":"https://api.github.com/users/chitsaou","html_url":"https://github.com/chitsaou","followers_url":"https://api.github.com/users/chitsaou/followers","following_url":"https://api.github.com/users/chitsaou/following{/other_user}","gists_url":"https://api.github.com/users/chitsaou/gists{/gist_id}","starred_url":"https://api.github.com/users/chitsaou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chitsaou/subscriptions","organizations_url":"https://api.github.com/users/chitsaou/orgs","repos_url":"https://api.github.com/users/chitsaou/repos","events_url":"https://api.github.com/users/chitsaou/events{/privacy}","received_events_url":"https://api.github.com/users/chitsaou/received_events","type":"User","site_admin":false},"labels":[{"id":3435608,"url":"https://api.github.com/repos/chitsaou/copy-as-markdown/labels/feature","name":"feature","color":"02e10c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-28T14:07:15Z","updated_at":"2018-03-03T07:16:53Z","closed_at":null,"author_association":"OWNER","body":"## Problem\r\n\r\nPersonally I use this extension a lot for aggregating pull requests.\r\n\r\nWhen copying with GitHub issues, we get string like this:\r\n\r\n```\r\n* [Web extension by chitsaou · Pull Request #48 · chitsaou/copy-as-markdown](https://github.com/chitsaou/copy-as-markdown/pull/48)\r\n```\r\n\r\nresult is:\r\n\r\n* [Web extension by chitsaou · Pull Request #48 · chitsaou/copy-as-markdown](https://github.com/chitsaou/copy-as-markdown/pull/48)\r\n\r\n\r\nFor GitHub, instead of links, we can also copy title only -- GitHub will handle link referencing automatically:\r\n\r\n```\r\n* Web extension by chitsaou · Pull Request #48 · chitsaou/copy-as-markdown\r\n```\r\n\r\nbecomes\r\n\r\n* Web extension by chitsaou · Pull Request #48 · chitsaou/copy-as-markdown\r\n\r\nBut the string itself can be reformatted to make it look better:\r\n\r\n```\r\n* #48 Web extension by @chitsaou \r\n```\r\n\r\nbecomes \r\n\r\n* #48 Web extension by @chitsaou \r\n\r\n## Idea\r\n\r\nAdd a setting to let user customize title style per domain.\r\n\r\nMake it per site because usually the title are same under the same domain.\r\n\r\nFor example:\r\n\r\n```regex\r\n/(.+) by ([\\S]+) · Pull Request (#\\d+) · (.+)\r\n```\r\n\r\nreplaces to\r\n\r\n```\r\n$3 $1 by @$2 ($4)\r\n```\r\n\r\nFurthermore, it should be able to be imported, so users can \"install a plugin\" for common sites."},"comment":{"url":"https://api.github.com/repos/chitsaou/copy-as-markdown/issues/comments/370126225","html_url":"https://github.com/chitsaou/copy-as-markdown/issues/52#issuecomment-370126225","issue_url":"https://api.github.com/repos/chitsaou/copy-as-markdown/issues/52","id":370126225,"user":{"login":"azzamsa","id":17734314,"avatar_url":"https://avatars2.githubusercontent.com/u/17734314?v=4","gravatar_id":"","url":"https://api.github.com/users/azzamsa","html_url":"https://github.com/azzamsa","followers_url":"https://api.github.com/users/azzamsa/followers","following_url":"https://api.github.com/users/azzamsa/following{/other_user}","gists_url":"https://api.github.com/users/azzamsa/gists{/gist_id}","starred_url":"https://api.github.com/users/azzamsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azzamsa/subscriptions","organizations_url":"https://api.github.com/users/azzamsa/orgs","repos_url":"https://api.github.com/users/azzamsa/repos","events_url":"https://api.github.com/users/azzamsa/events{/privacy}","received_events_url":"https://api.github.com/users/azzamsa/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T07:16:53Z","updated_at":"2018-03-03T07:16:53Z","author_association":"NONE","body":"If the user can customize the output of copy-as-markdown. I think we are as org user, can benefit from this feature and changes the output to match org format."}}
{"actor":{"display_login":"azzamsa"}}