FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add `get()` method to `ProjectEnvironment` · Issue #851 · python-gitlab/python-gitlab · GitHub

Repository navigation

Add get() method to ProjectEnvironment #851

Description

Description of the problem, including code/CLI snippet

It would be nice to add a get() method to the ProjectEnvironment* classes. This is useful because currently simply calling project.environments.list() does not return all the information about a given environment, such as when it was last deployed.

Expected Behavior

There should be a project.environments.get(environment_id) method, using the environment_id as an argument, which then calls the endpoint here (https://docs.gitlab.com/ce/api/environments.html#get-a-specific-environment), or /projects/:id/environments/:environment_id.

Actual Behavior

Currently, no such method exists.

Specifications

  • python-gitlab version: python-gitlab==1.10.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): gitlab.com

Activity

  1. max-wittig commented on Aug 22, 2019

    Member

    This should be fixed with the merge: #865

  2. sc250024 commented on Aug 22, 2019

    Author

    Thank you very much @max-wittig, and to @orf as well for the PR!

  3. locked as resolved and limited conversation to collaborators on Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL