{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/pub-dartlang-dart/issues/1824","repository_url":"https://api.github.com/repos/dart-lang/pub-dartlang-dart","labels_url":"https://api.github.com/repos/dart-lang/pub-dartlang-dart/issues/1824/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub-dartlang-dart/issues/1824/comments","events_url":"https://api.github.com/repos/dart-lang/pub-dartlang-dart/issues/1824/events","html_url":"https://github.com/dart-lang/pub-dartlang-dart/issues/1824","id":384937087,"node_id":"MDU6SXNzdWUzODQ5MzcwODc=","number":1824,"title":"Allow specifying a package as \"not publishable\"","user":{"login":"amirh","id":1024117,"node_id":"MDQ6VXNlcjEwMjQxMTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1024117?v=4","gravatar_id":"","url":"https://api.github.com/users/amirh","html_url":"https://github.com/amirh","followers_url":"https://api.github.com/users/amirh/followers","following_url":"https://api.github.com/users/amirh/following{/other_user}","gists_url":"https://api.github.com/users/amirh/gists{/gist_id}","starred_url":"https://api.github.com/users/amirh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amirh/subscriptions","organizations_url":"https://api.github.com/users/amirh/orgs","repos_url":"https://api.github.com/users/amirh/repos","events_url":"https://api.github.com/users/amirh/events{/privacy}","received_events_url":"https://api.github.com/users/amirh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-27T18:52:14Z","updated_at":"2018-11-28T08:06:00Z","closed_at":null,"author_association":"NONE","body":"Following some cases of packages being published unintentionally (e.g https://github.com/dart-lang/pub-dartlang-dart/issues/1820 )\r\n\r\nIt would be nice to have a way to specify in `pubspec.yaml` that a package should not be published.\r\n\r\n@jonasfj suggested adding:\r\n```yaml\r\npublish_to: none  # do not publish this package while under active development.\r\n```\r\n\r\nThis does the job, but it also makes `pub publish --dry-run` fail (which at least for [flutter/plugins](https://github.com/flutter/plugins) we run on presubmit for all plugins).\r\nIdeally I'd want to be able to run the `pub publish --dry-run`, have it do all the checks it is currently doing but not fail if the packages was explicitly marked unpublishable."},"comment":{"url":"https://api.github.com/repos/dart-lang/pub-dartlang-dart/issues/comments/442355490","html_url":"https://github.com/dart-lang/pub-dartlang-dart/issues/1824#issuecomment-442355490","issue_url":"https://api.github.com/repos/dart-lang/pub-dartlang-dart/issues/1824","id":442355490,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjM1NTQ5MA==","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-11-28T08:06:00Z","updated_at":"2018-11-28T08:06:00Z","author_association":"COLLABORATOR","body":"I think this issue belongs to the pub client."}}
{"actor":{"display_login":"isoos"}}