mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	RepoAssignment ensure to close before overwrite (#19449)
* check if GitRepo already open and close if * only run RepoAssignment once * refactor context helper for api to open GitRepo
This commit is contained in:
		| @@ -138,6 +138,11 @@ func TestHook(ctx *context.APIContext) { | ||||
| 	//   type: integer | ||||
| 	//   format: int64 | ||||
| 	//   required: true | ||||
| 	// - name: ref | ||||
| 	//   in: query | ||||
| 	//   description: "The name of the commit/branch/tag. Default the repository’s default branch (usually master)" | ||||
| 	//   type: string | ||||
| 	//   required: false | ||||
| 	// responses: | ||||
| 	//   "204": | ||||
| 	//     "$ref": "#/responses/empty" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user