prow/github/client.go
func (c *Client) CreateProjectCard(columnID int, projectCard ProjectCard) (*ProjectCard, error) {
	c.log("CreateProjectCard", columnID, projectCard)
	if (projectCard.ContentType != "Issue") && (projectCard.ContentType != "PullRequest") {
		return nil, errors.New("projectCard.ContentType must be either Issue or PullRequest")
	}
	if c.dry {
		return &projectCard, nil
	}
	path := fmt.Sprintf("/projects/columns/%d/cards", columnID)
	var retProjectCard ProjectCard
	_, err := c.request(&request{
		method:      http.MethodPost,
		path:        path,
		accept:      "application/vnd.github.inertia-preview+json",
		requestBody: &projectCard,
		exitCodes:   []int{200},
	}, &retProjectCard)
	return &retProjectCard, err
}
func (c *Client) CreateProjectCard(columnID int, projectCard ProjectCard) (*ProjectCard, error) {
	c.log("CreateProjectCard", columnID, projectCard)
	if (projectCard.ContentType != "Issue") && (projectCard.ContentType != "PullRequest") {
		return nil, errors.New("projectCard.ContentType must be either Issue or PullRequest")
	}
	if c.dry {
		return &projectCard, nil
	}
	path := fmt.Sprintf("/projects/columns/%d/cards", columnID)
	var retProjectCard ProjectCard
	_, err := c.request(&request{
		method:      http.MethodPost,
		path:        path,
		accept:      "application/vnd.github.inertia-preview+json",
		requestBody: &projectCard,
		exitCodes:   []int{200},
	}, &retProjectCard)
	return &retProjectCard, err
}
// CreateProjectCard adds a project card to the specified project column.
//
// See https://developer.github.com/v3/projects/cards/#create-a-project-card