cli/api
Mislav Marohnić 767521c055 Stop providing AuthLogin from context
The login name of the authenticated user will be readily available only
if authentication info comes from the config file. With other upcoming
authentication modes (for example, the GITHUB_TOKEN environment
variable), the token is the only piece of information we got, so we
would need to additionally query for the login name.

Since `issue status` and `pr status` are the only commands that need the
name of the authenticated user right now, have those commands explicitly
query for the login name. This results in an additional API query, but
simplifies Context implementation and future authentication approaches.
2020-05-20 17:09:13 +02:00
..
client.go Guide user through re-authorization flow if read:org scope is missing 2020-04-23 18:20:21 +02:00
client_test.go Replace FakeHTTP with httpmock which is now compatible 2020-05-07 15:19:14 +02:00
pull_request_test.go Prevent crash when encountering "STALE" check conclusion 2020-03-27 09:54:11 +01:00
queries_issue.go just return the err 2020-04-30 08:59:14 -07:00
queries_issue_test.go Improved error message when "owner/repo" format not provided (#919) 2020-05-18 11:13:48 +02:00
queries_org.go Order projects, teams, and labels by name 2020-05-08 18:22:14 +02:00
queries_pr.go Merge pull request #962 from cli/pr-diff 2020-05-19 14:11:36 -05:00
queries_repo.go Fix metadata resolver query 2020-05-12 16:48:30 +02:00
queries_repo_test.go Improved error message when "owner/repo" format not provided (#919) 2020-05-18 11:13:48 +02:00
queries_user.go Stop providing AuthLogin from context 2020-05-20 17:09:13 +02:00