Skip to content

DeploymentStatus type does not contain all possible keys #1494

@jrossiter

Description

@jrossiter

I'm using go-github in conjunction with GitHub Actions + Deployments.
During deployments we update the deployment status and provide a log_url value that points back to the current GitHub actions URL.
We then use github.Client.Repositories.ListDeploymentStatuses to retrieve the statuses to retrieve the log URL.

There are a few issues that I can see:

  1. The ListDeploymentStatuses method doesn't contain preview headers. (though GetDeploymentStatus does contain the headers)
  2. The DeploymentStatus type doesn't have all available fields so if you provide the headers it won't parse them anyway.
  3. The response body seems to be closed before its returned to the requester so we can't manually parse the raw JSON response.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions