{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/apollo-tooling/issues/700","repository_url":"https://api.github.com/repos/apollographql/apollo-tooling","labels_url":"https://api.github.com/repos/apollographql/apollo-tooling/issues/700/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-tooling/issues/700/comments","events_url":"https://api.github.com/repos/apollographql/apollo-tooling/issues/700/events","html_url":"https://github.com/apollographql/apollo-tooling/issues/700","id":380826607,"node_id":"MDU6SXNzdWUzODA4MjY2MDc=","number":700,"title":"Support --headers for `service:push`","user":{"login":"trevor-scheer","id":29644393,"node_id":"MDQ6VXNlcjI5NjQ0Mzkz","avatar_url":"https://avatars2.githubusercontent.com/u/29644393?v=4","gravatar_id":"","url":"https://api.github.com/users/trevor-scheer","html_url":"https://github.com/trevor-scheer","followers_url":"https://api.github.com/users/trevor-scheer/followers","following_url":"https://api.github.com/users/trevor-scheer/following{/other_user}","gists_url":"https://api.github.com/users/trevor-scheer/gists{/gist_id}","starred_url":"https://api.github.com/users/trevor-scheer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevor-scheer/subscriptions","organizations_url":"https://api.github.com/users/trevor-scheer/orgs","repos_url":"https://api.github.com/users/trevor-scheer/repos","events_url":"https://api.github.com/users/trevor-scheer/events{/privacy}","received_events_url":"https://api.github.com/users/trevor-scheer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"trevor-scheer","id":29644393,"node_id":"MDQ6VXNlcjI5NjQ0Mzkz","avatar_url":"https://avatars2.githubusercontent.com/u/29644393?v=4","gravatar_id":"","url":"https://api.github.com/users/trevor-scheer","html_url":"https://github.com/trevor-scheer","followers_url":"https://api.github.com/users/trevor-scheer/followers","following_url":"https://api.github.com/users/trevor-scheer/following{/other_user}","gists_url":"https://api.github.com/users/trevor-scheer/gists{/gist_id}","starred_url":"https://api.github.com/users/trevor-scheer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevor-scheer/subscriptions","organizations_url":"https://api.github.com/users/trevor-scheer/orgs","repos_url":"https://api.github.com/users/trevor-scheer/repos","events_url":"https://api.github.com/users/trevor-scheer/events{/privacy}","received_events_url":"https://api.github.com/users/trevor-scheer/received_events","type":"User","site_admin":false},"assignees":[{"login":"trevor-scheer","id":29644393,"node_id":"MDQ6VXNlcjI5NjQ0Mzkz","avatar_url":"https://avatars2.githubusercontent.com/u/29644393?v=4","gravatar_id":"","url":"https://api.github.com/users/trevor-scheer","html_url":"https://github.com/trevor-scheer","followers_url":"https://api.github.com/users/trevor-scheer/followers","following_url":"https://api.github.com/users/trevor-scheer/following{/other_user}","gists_url":"https://api.github.com/users/trevor-scheer/gists{/gist_id}","starred_url":"https://api.github.com/users/trevor-scheer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevor-scheer/subscriptions","organizations_url":"https://api.github.com/users/trevor-scheer/orgs","repos_url":"https://api.github.com/users/trevor-scheer/repos","events_url":"https://api.github.com/users/trevor-scheer/events{/privacy}","received_events_url":"https://api.github.com/users/trevor-scheer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-14T18:20:19Z","updated_at":"2019-04-17T17:51:57Z","closed_at":null,"author_association":"MEMBER","body":"Publishing a schema via an introspection against local server (as opposed to an introspection file) may require headers in the request.\r\n\r\n<!--**Issue Labels**\r\n\r\nWhile not necessary, you can help organize our issues by labeling this issue when you open it.  To add a label automatically, simply [x] mark the appropriate box below:\r\n\r\n- [ ] has-reproduction\r\n- [ ] feature\r\n- [ ] docs\r\n- [ ] blocking\r\n- [ ] good first issue\r\n\r\nTo add a label not listed above, simply place `/label another-label-name` on a line by itself.\r\n-->"},"comment":{"url":"https://api.github.com/repos/apollographql/apollo-tooling/issues/comments/484194954","html_url":"https://github.com/apollographql/apollo-tooling/issues/700#issuecomment-484194954","issue_url":"https://api.github.com/repos/apollographql/apollo-tooling/issues/700","id":484194954,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NDE5NDk1NA==","user":{"login":"JakeDawkins","id":9259509,"node_id":"MDQ6VXNlcjkyNTk1MDk=","avatar_url":"https://avatars1.githubusercontent.com/u/9259509?v=4","gravatar_id":"","url":"https://api.github.com/users/JakeDawkins","html_url":"https://github.com/JakeDawkins","followers_url":"https://api.github.com/users/JakeDawkins/followers","following_url":"https://api.github.com/users/JakeDawkins/following{/other_user}","gists_url":"https://api.github.com/users/JakeDawkins/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeDawkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeDawkins/subscriptions","organizations_url":"https://api.github.com/users/JakeDawkins/orgs","repos_url":"https://api.github.com/users/JakeDawkins/repos","events_url":"https://api.github.com/users/JakeDawkins/events{/privacy}","received_events_url":"https://api.github.com/users/JakeDawkins/received_events","type":"User","site_admin":false},"created_at":"2019-04-17T17:51:57Z","updated_at":"2019-04-17T17:51:57Z","author_association":"CONTRIBUTOR","body":"@yongnicholaskim I don't believe this issue has been resolved yet for CLI flags, but the `apollo.config.js` still accepts headers. Your example config had two things wrong with it: \r\n\r\n1. the config key for headers is `headers` not `header`. The CLI flag WOULD be `header` since you can use the `--header` flag multiple times, but the config key is `headers`\r\n2. `headers` go under the `endpoint` key. So an example config would look like:\r\n\r\n```\r\nservice: {\r\n    name: 'my-cool-service',\r\n    endpoint: {\r\n      url: 'http://localhost:4000',\r\n      headers: {\r\n        authorization: 'Bearer lkjfalkfjadkfjeopknavadf',\r\n      },\r\n    },\r\n  },\r\n```\r\n\r\nMore info here: https://www.apollographql.com/docs/references/apollo-config\r\n\r\n\r\n"}}
{"actor":{"display_login":"JakeDawkins"}}