Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add get() method to ProjectEnvironment #851

Copy link
Copy link
@sc250024

Description

@sc250024
Issue body actions

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

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.