Add version
This commit is contained in:
parent
41e0089426
commit
cf60199f3f
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ import (
|
|||
"os"
|
||||
"os/user"
|
||||
"regexp"
|
||||
|
||||
"github.com/github/gh-cli/version"
|
||||
)
|
||||
|
||||
type graphQLResponse struct {
|
||||
|
|
@ -56,6 +58,7 @@ func graphQL(query string, variables map[string]string, v interface{}) error {
|
|||
}
|
||||
req.Header.Set("Authorization", "token "+getToken())
|
||||
req.Header.Set("Content-Type", "application/json; charset=utf-8")
|
||||
req.Header.Set("User-Agent", "GitHub CLI "+version.Version)
|
||||
|
||||
debugRequest(req, string(reqBody))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue