req, _ := http.NewRequest( "GET", "https://api.zenhub.io/p1/repositories/"+strconv.Itoa(query.Repository.DatabaseId)+"/board", nil, ) req.Header.Add("X-Authentication-Token", config.Token.ZenHub) resp, _ := zenHub.Do(req) defer resp.Body.Close() body, _ := ioutil.ReadAll(resp.Body) board := new(Board) if err := json.Unmarshal(body, board); err != nil { panic(err) } p, found := board.Pipelines.Find(func(p Pipeline) bool { return p.Name == pipelineName }) 解説ざっくり 2. Repo ID から Inbox Pipeline の Issue ID を取得