Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

"'ProjectRelease' object has no attribute 'delete'" #3240

Open
Labels
@nickbroon

Description

@nickbroon

Description of the problem, including code/CLI snippet

The API documentationexamples suggest that a release can be deleted directly:

# via its tag name from project attributesrelease=project.releases.delete('v1.2.3')# delete object directlyrelease.delete()

However when I userelease.delete() directly I get the following error:

'ProjectRelease' object has no attribute 'delete'

Looking at code Isee thatProjectRelease only uses theSaveMixin andRestObject Mixins, but not theDeleteMixin orObjectDeleteMixin. (thoughProjectRegistryTagManager does use theDeleteMixin so release can deleted using the first example).

It's not clear to me if documentation example should fix to remove direct call, or ifProjectRelease updated to include the use of a Delete Mixin....

Expected Behavior

Directly delete an release object withrelease.delete()

Actual Behavior

Fails with:'ProjectRelease' object has no attribute 'delete'

Specifications

  • python-gitlab version: 6.2.0
  • 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


      [8]ページ先頭

      ©2009-2025 Movatter.jp