prow/github/client.go
func (c *Client) CreateStatus(org, repo, SHA string, s Status) error {
	c.log("CreateStatus", org, repo, SHA, s)
	_, err := c.request(&request{
		method:      http.MethodPost,
		path:        fmt.Sprintf("/repos/%s/%s/statuses/%s", org, repo, SHA),
		requestBody: &s,
		exitCodes:   []int{201},
	}, nil)
	return err
}
func (c *Client) CreateStatus(org, repo, SHA string, s Status) error {
	c.log("CreateStatus", org, repo, SHA, s)
	_, err := c.request(&request{
		method:      http.MethodPost,
		path:        fmt.Sprintf("/repos/%s/%s/statuses/%s", org, repo, SHA),
		requestBody: &s,
		exitCodes:   []int{201},
	}, nil)
	return err
}
func ( c * Client ) CreateStatus ( org , repo , SHA string , s Status ) error { c . log ( " " , org , repo , SHA , s ) _ , err := c . request ( & request { method : http . MethodPost , path : fmt . Sprintf ( " " , org , repo , SHA ) , requestBody : & s , exitCodes : [ ] int { 201 } , } , nil ) return err }
// CreateStatus creates or updates the status of a commit.
//
// See https://developer.github.com/v3/repos/statuses/#create-a-status
CreateStatus creates or updates the status of a commit . See https : // developer . github . com / v3 / repos / statuses / #create - a - status