Skip to content
New issue

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

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

Already on GitHub? # to your account

Item with same key has already been added when getting multiple deployments #750

Open
DrLeh opened this issue Jul 7, 2023 · 0 comments
Open

Comments

@DrLeh
Copy link

DrLeh commented Jul 7, 2023

Trying to get latest deployments from a dashboard the following code throws error An item with same key has already been added.

        var dash = _octo.Dashboards.GetDashboard();
        var envs = _octo.Environments.GetAll().ToDictionary(x => x.Id);
        var deploymentIds = dash.Items.Select(x => x.DeploymentId).Distinct().ToArray();
        var deps = _octo.Deployments.Get(deploymentIds);
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant