code: func (s *RepositoriesService) GetCodeOfConduct(ctx context.Context, owner, repo string) (*CodeOfConduct, *Response, error) {
  	u := fmt.Sprintf("repos/%v/%v/community/code_of_conduct", owner, repo)
  	req, err := s.client.NewRequest("GET", u, nil)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	// TODO: remove custom Accept header when this API fully launches.
  	req.Header.Set("Accept", mediaTypeCodesOfConductPreview)
  
  	coc := new(CodeOfConduct)
  	resp, err := s.client.Do(ctx, req, coc)
  	if err != nil {
  		return nil, resp, err
  	}
  
  	return coc, resp, nil
  }
docs: // GetCodeOfConduct gets the contents of a repository's code of conduct.
  //
  // GitHub API docs: https://developer.github.com/v3/codes_of_conduct/#get-the-contents-of-a-repositorys-code-of-conduct