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

group transfer-project is confusing #1529

Closed
Labels
Milestone
@chris-peterson

Description

@chris-peterson

Description of the problem, including code/CLI snippet

I've wrapped the python gitlab CLI in somepowershell tooling

Relevant snippet:

functionMove-GitLabProject {    [CmdletBinding()]param (        [Parameter(Position=0,Mandatory=$true)]        [string]$ProjectId,        [Parameter(Position=1,Mandatory=$true)]        [string]$DestinationGroup,        [switch]        [Parameter(Mandatory=$false)]$WhatIf=$false    )$SourceProject=Get-GitLabProject-ProjectId$ProjectId$Group=Get-GitLabGroup-GroupId$DestinationGroupif ($WhatIf) {Write-Host"WhatIf: Moving '$($SourceProject.Name)' (project id:$($SourceProject.Id)) to '$($Group.FullPath)' (group id:$($Group.Id))"    }else {        gitlab group transfer-project--id$Group.Id--to-project-id$SourceProject.Id    }}

Expected Behavior

Recommend that the parameters be renamed:

--id ->--to-group-id

--to-project-id ->--project-id

traditionally,to denotes a destination, not a source.

Actual Behavior

Trial and error and code inspection before realizing I had the parameters backwards.

Specifications

  • python-gitlab version: 2.8.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): 13.10.3 (Enterprise Edition)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp