Skip to content

Conversation

bpdans
Copy link

@bpdans bpdans commented Aug 8, 2022

GoCD 19.3.0 had a backwards-incompatible change to the Agent response object, changing agent environments from a list of strings (names) to a list of objects: https://api.gocd.org/19.3.0/#get-all-agents

This fix adds a minimal AgentEnvironment type and updates the type of the Env field in the Agent struct to []AgentEnvironment.

Also added go.mod and go.sum.

@MPV
Copy link

MPV commented Jun 30, 2023

@bpdans This looks good! Sorry for the delayed reply.
Would you be up for updating/rebasing your PR (so it becomes up-to-date again)?

@bpdans
Copy link
Author

bpdans commented Jun 30, 2023

@MPV thanks for the reply. I think it is already up-to-date - I've run a rebase and it says it already matches master.

@MPV
Copy link

MPV commented Nov 6, 2023

@bpdans I guess I'm referring to the "Conflicting files" (go.mod and go.sum). 😊

@MPV
Copy link

MPV commented Nov 6, 2023

Also, any reasons you didn't contribute this to the main repo, i.e. here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants