Skip to content

Can't get PipelineID from ReviewAppConfig #60

@amatellanes

Description

@amatellanes

After upgrading to latest version 5.4.0, I can't get PipelineID from ReviewAppConfig struct:

h := heroku.NewService(heroku.DefaultClient)
reviewAppConfig, err := h.ReviewAppConfigInfo(context.TODO(), "PIPELINE-ID")
if err != nil {
log.Fatal(err)
}
fmt.Println(reviewAppConfig.PipelineID)

This print an empty value.

I have made a call to Heroku API and it seems the pipeline ID is returned as an object but the field PipelineID in the ReviewAppConfig struct was modified here to be a string.

curl -nX GET https://api.heroku.com/pipelines/PIPELINE-ID/review-app-config \
-H "Accept: application/vnd.heroku+json; version=3" 

Response:

{
  ...
  "pipeline": {
    "id": "PIPELINE-ID"
  },
  ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions