Skip to content

feat: add methods to retrieve an individual project environment #865

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

Merged
merged 1 commit into from
Aug 22, 2019
Merged

feat: add methods to retrieve an individual project environment #865

merged 1 commit into from
Aug 22, 2019

Conversation

orf
Copy link
Contributor

@orf orf commented Aug 16, 2019

Gitlab supports this: https://docs.gitlab.com/ce/api/environments.html#get-a-specific-environment

I'm using the same ProjectEnvironment object, even though retrieving an environment has wildly more attributes (including nested ones). Please let me know if I should add anything else to this.

@LaurentDumont
Copy link

LaurentDumont commented Aug 16, 2019

What is the status on this? I'd like to get the Pipeline status for the env in question and the default list doesn't have the information :(

@max-wittig
Copy link
Member

max-wittig commented Aug 16, 2019

@orf Thanks for your contribution.
Doesn't this disable the listing of environments? Could you please add tests for this feature?

@orf
Copy link
Contributor Author

orf commented Aug 20, 2019

I've added a test @max-wittig. Let me know what you think!

Copy link
Member

@max-wittig max-wittig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this MR 👍

@max-wittig max-wittig merged commit 0389e66 into python-gitlab:master Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants