-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fork: allow user to fork a project from its numerid ID
The `lab fork` command allows only the project name from user's input, but it's not a huge change to allow the user to enter the project numeric ID instead. This commit adds this ability to the fork command by changing the way Fork() handles the project ID: receiving as interface{} and checking its real value. With that, an additional change was necessary in the FindProject(), which was accepting only project IDs as string. As consiquence, this change allow other functions to pass either the project ID comming from a go-gitlab module object (int) or the one comming from the user input (string) to the FindProject() function. Signed-off-by: Bruno Meneguele <[email protected]>
- Loading branch information
Showing
2 changed files
with
59 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters