Skip to content

RFE: Archive a project #115

Closed
Closed
@The-Loeki

Description

@The-Loeki

In class Project(GitlabObject):

  • Rename the archive(sha=None, **kwargs) function to get_archive() or make it part of the repo.
  • Add archive() (Working POC on GL 8.7) function:
    def archive(self):
        """
            Archive a project
        """
        url = '/projects/%s/archive' % self.id
        r = self.gitlab._raw_post(url)
        raise_error_from_response(r, GitlabUpdateError, expected_code=201)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions