code: func (s *RepositoriesService) CreateFork(ctx context.Context, owner, repo string, opt *RepositoryCreateForkOptions) (*Repository, *Response, error) {
  	u := fmt.Sprintf("repos/%v/%v/forks", owner, repo)
  	u, err := addOptions(u, opt)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	req, err := s.client.NewRequest("POST", u, nil)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	fork := new(Repository)
  	resp, err := s.client.Do(ctx, req, fork)
  	if err != nil {
  		// Persist AcceptedError's metadata to the Repository object.
  		if aerr, ok := err.(*AcceptedError); ok {
  			if err := json.Unmarshal(aerr.Raw, fork); err != nil {
  				return fork, resp, err
  			}
  
  			return fork, resp, err
  		}
  		return nil, resp, err
  	}
  
  	return fork, resp, nil
  }
docs: // CreateFork creates a fork of the specified repository.
  //
  // This method might return an *AcceptedError and a status code of
  // 202. This is because this is the status that GitHub returns to signify that
  // it is now computing creating the fork in a background task. In this event,
  // the Repository value will be returned, which includes the details about the pending fork.
  // A follow up request, after a delay of a second or so, should result
  // in a successful request.
  //
  // GitHub API docs: https://developer.github.com/v3/repos/forks/#create-a-fork