(client *http.Client, repo *api.Repository)
| 8 | ) |
| 9 | |
| 10 | func unarchiveRepo(client *http.Client, repo *api.Repository) error { |
| 11 | var mutation struct { |
| 12 | UnarchiveRepository struct { |
| 13 | Repository struct { |
| 14 | ID string |
| 15 | } |
| 16 | } `graphql:"unarchiveRepository(input: $input)"` |
| 17 | } |
| 18 | |
| 19 | variables := map[string]interface{}{ |
| 20 | "input": githubv4.UnarchiveRepositoryInput{ |
| 21 | RepositoryID: repo.ID, |
| 22 | }, |
| 23 | } |
| 24 | |
| 25 | gql := api.NewClientFromHTTP(client) |
| 26 | err := gql.Mutate(repo.RepoHost(), "UnarchiveRepository", &mutation, variables) |
| 27 | return err |
| 28 | } |
no test coverage detected