mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Go 1.19 format (#20758)
* 1.19 gofumpt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change CSV test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Commit whitespace fixes from @zeripath Co-authored-by: zeripath <art27@cantab.net> * Update emoji Signed-off-by: jolheiser <john.olheiser@gmail.com> * bump swagger & fix generate-swagger Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		@@ -34,7 +34,7 @@ func GetGitAllRefs(ctx *context.APIContext) {
 | 
			
		||||
	//   required: true
 | 
			
		||||
	// responses:
 | 
			
		||||
	//   "200":
 | 
			
		||||
	//     "$ref": "#/responses/Reference"
 | 
			
		||||
	// #   "$ref": "#/responses/Reference" TODO: swagger doesnt support different output formats by ref
 | 
			
		||||
	//     "$ref": "#/responses/ReferenceList"
 | 
			
		||||
	//   "404":
 | 
			
		||||
	//     "$ref": "#/responses/notFound"
 | 
			
		||||
@@ -67,7 +67,7 @@ func GetGitRefs(ctx *context.APIContext) {
 | 
			
		||||
	//   required: true
 | 
			
		||||
	// responses:
 | 
			
		||||
	//   "200":
 | 
			
		||||
	//     "$ref": "#/responses/Reference"
 | 
			
		||||
	// #   "$ref": "#/responses/Reference" TODO: swagger doesnt support different output formats by ref
 | 
			
		||||
	//     "$ref": "#/responses/ReferenceList"
 | 
			
		||||
	//   "404":
 | 
			
		||||
	//     "$ref": "#/responses/notFound"
 | 
			
		||||
 
 | 
			
		||||
@@ -566,6 +566,8 @@ func ListMyTrackedTimes(ctx *context.APIContext) {
 | 
			
		||||
	// swagger:operation GET /user/times user userCurrentTrackedTimes
 | 
			
		||||
	// ---
 | 
			
		||||
	// summary: List the current user's tracked times
 | 
			
		||||
	// produces:
 | 
			
		||||
	// - application/json
 | 
			
		||||
	// parameters:
 | 
			
		||||
	// - name: page
 | 
			
		||||
	//   in: query
 | 
			
		||||
@@ -575,9 +577,6 @@ func ListMyTrackedTimes(ctx *context.APIContext) {
 | 
			
		||||
	//   in: query
 | 
			
		||||
	//   description: page size of results
 | 
			
		||||
	//   type: integer
 | 
			
		||||
	// produces:
 | 
			
		||||
	// - application/json
 | 
			
		||||
	// parameters:
 | 
			
		||||
	// - name: since
 | 
			
		||||
	//   in: query
 | 
			
		||||
	//   description: Only show times updated after the given time. This is a timestamp in RFC 3339 format
 | 
			
		||||
 
 | 
			
		||||
@@ -584,7 +584,6 @@ func Edit(ctx *context.APIContext) {
 | 
			
		||||
	//   description: name of the repo to edit
 | 
			
		||||
	//   type: string
 | 
			
		||||
	//   required: true
 | 
			
		||||
	//   required: true
 | 
			
		||||
	// - name: body
 | 
			
		||||
	//   in: body
 | 
			
		||||
	//   description: "Properties of a repo that you can edit"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user