Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update get-all-agents response format for GoCD 19.3.0+ #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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
2 participants