{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/pubspec_parse/issues/30","repository_url":"https://api.github.com/repos/dart-lang/pubspec_parse","labels_url":"https://api.github.com/repos/dart-lang/pubspec_parse/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pubspec_parse/issues/30/comments","events_url":"https://api.github.com/repos/dart-lang/pubspec_parse/issues/30/events","html_url":"https://github.com/dart-lang/pubspec_parse/pull/30","id":390157421,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3OTgyOTIx","number":30,"title":"Support the proposed repository and issue_tracker URLs.","user":{"login":"isoos","id":4778111,"node_id":"MDQ6VXNlcjQ3NzgxMTE=","avatar_url":"https://avatars1.githubusercontent.com/u/4778111?v=4","gravatar_id":"","url":"https://api.github.com/users/isoos","html_url":"https://github.com/isoos","followers_url":"https://api.github.com/users/isoos/followers","following_url":"https://api.github.com/users/isoos/following{/other_user}","gists_url":"https://api.github.com/users/isoos/gists{/gist_id}","starred_url":"https://api.github.com/users/isoos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isoos/subscriptions","organizations_url":"https://api.github.com/users/isoos/orgs","repos_url":"https://api.github.com/users/isoos/repos","events_url":"https://api.github.com/users/isoos/events{/privacy}","received_events_url":"https://api.github.com/users/isoos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-12T10:22:20Z","updated_at":"2018-12-19T10:31:19Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/dart-lang/pubspec_parse/pulls/30","html_url":"https://github.com/dart-lang/pubspec_parse/pull/30","diff_url":"https://github.com/dart-lang/pubspec_parse/pull/30.diff","patch_url":"https://github.com/dart-lang/pubspec_parse/pull/30.patch"},"body":"Prior discussion: https://github.com/dart-lang/pub-dartlang-dart/issues/1522"},"comment":{"url":"https://api.github.com/repos/dart-lang/pubspec_parse/issues/comments/448546908","html_url":"https://github.com/dart-lang/pubspec_parse/pull/30#issuecomment-448546908","issue_url":"https://api.github.com/repos/dart-lang/pubspec_parse/issues/30","id":448546908,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODU0NjkwOA==","user":{"login":"isoos","id":4778111,"node_id":"MDQ6VXNlcjQ3NzgxMTE=","avatar_url":"https://avatars1.githubusercontent.com/u/4778111?v=4","gravatar_id":"","url":"https://api.github.com/users/isoos","html_url":"https://github.com/isoos","followers_url":"https://api.github.com/users/isoos/followers","following_url":"https://api.github.com/users/isoos/following{/other_user}","gists_url":"https://api.github.com/users/isoos/gists{/gist_id}","starred_url":"https://api.github.com/users/isoos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isoos/subscriptions","organizations_url":"https://api.github.com/users/isoos/orgs","repos_url":"https://api.github.com/users/isoos/repos","events_url":"https://api.github.com/users/isoos/events{/privacy}","received_events_url":"https://api.github.com/users/isoos/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T10:31:19Z","updated_at":"2018-12-19T10:31:19Z","author_association":"NONE","body":"> It's not clear to me what I should do if I have a package with a repository and no other homepage. Should I fill out the homepage and leave repository blank? Fill out only repository? Fill them both with the same info?\r\n\r\nHere is the current logic on pub site:\r\n- We infer values for `repository` from `homepage`, and infer `issue_tracker` URL from `repository`.\r\n- If (`homepage` is set and `!= repository`) we display `Homepage` link.\r\n- If (`repository` is set) we display `Repository` link.\r\n- If (`issue_tracker` is set) we display `View/report issues` link.\r\n- If (`documentation` is set and `!= pub-generated API docs`) we display `Documentation` link.\r\n- ...\r\n\r\nAt the moment `pub publish` requires `homepage` to be set. I think we can modify that rule (at any point in the future, no rush) to become at least one of [`homepage`, `repository`], but otherwise no changes will be needed: infer and link display works the same way if only `repository` would be set (or if they were to be set to the same value).\r\n\r\nWould you make that rule anything different?"}}
{"actor":{"display_login":"isoos"}}