mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	 root360-AndreasUlm
					root360-AndreasUlm
				
			
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			 techknowlogick
						techknowlogick
					
				
			
						parent
						
							bbcc689b93
						
					
				
				
					commit
					7df0354d6c
				
			| @@ -23,25 +23,11 @@ var CmdReleases = cli.Command{ | ||||
| 	Subcommands: []cli.Command{ | ||||
| 		CmdReleaseCreate, | ||||
| 	}, | ||||
| 	Flags: []cli.Flag{ | ||||
| 		cli.StringFlag{ | ||||
| 			Name:  "login, l", | ||||
| 			Usage: "Indicate one login, optional when inside a gitea repository", | ||||
| 		}, | ||||
| 		cli.StringFlag{ | ||||
| 			Name:  "repo, r", | ||||
| 			Usage: "Indicate one repository, optional when inside a gitea repository", | ||||
| 		}, | ||||
| 		cli.StringFlag{ | ||||
| 			Name:        "output, o", | ||||
| 			Usage:       outputUsage, | ||||
| 			Destination: &output, | ||||
| 		}, | ||||
| 	}, | ||||
| 	Flags: AllDefaultFlags, | ||||
| } | ||||
|  | ||||
| func runReleases(ctx *cli.Context) error { | ||||
| 	login, owner, repo := initCommand(ctx) | ||||
| 	login, owner, repo := initCommand() | ||||
|  | ||||
| 	releases, err := login.Client().ListReleases(owner, repo) | ||||
| 	if err != nil { | ||||
| @@ -84,7 +70,7 @@ var CmdReleaseCreate = cli.Command{ | ||||
| 	Usage:       "Create a release in repository", | ||||
| 	Description: `Create a release in repository`, | ||||
| 	Action:      runReleaseCreate, | ||||
| 	Flags: []cli.Flag{ | ||||
| 	Flags: append([]cli.Flag{ | ||||
| 		cli.StringFlag{ | ||||
| 			Name:  "tag", | ||||
| 			Usage: "release tag name", | ||||
| @@ -113,11 +99,11 @@ var CmdReleaseCreate = cli.Command{ | ||||
| 			Name:  "asset, a", | ||||
| 			Usage: "a list of files to attach to the release", | ||||
| 		}, | ||||
| 	}, | ||||
| 	}, LoginRepoFlags...), | ||||
| } | ||||
|  | ||||
| func runReleaseCreate(ctx *cli.Context) error { | ||||
| 	login, owner, repo := initCommand(ctx) | ||||
| 	login, owner, repo := initCommand() | ||||
|  | ||||
| 	release, err := login.Client().CreateRelease(owner, repo, gitea.CreateReleaseOption{ | ||||
| 		TagName:      ctx.String("tag"), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user