createRepository will create a new repository in github
(request *graphql.Request)
| 104 | |
| 105 | // createRepository will create a new repository in github |
| 106 | func createRepository(request *graphql.Request) error { |
| 107 | c := graphql.NewClient("https://api.github.com/graphql") |
| 108 | ctx := context.Background() |
| 109 | if err := c.Run(ctx, request, nil); err != nil { |
| 110 | return err |
| 111 | } |
| 112 | |
| 113 | return nil |
| 114 | } |
| 115 | |
| 116 | const getOrganizationQuery = `query ($ownerName: String!) { |
| 117 | organization(login: $ownerName) { |
no outgoing calls
no test coverage detected