mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	add .gpg url (match github behaviour) (#6610)
* add .gpg url (match github behaviour) * wildcard * test to export maximum data * working POC * add comment for old imported keys * cleaning * Update routers/user/profile.go Co-Authored-By: sapk <sapk@users.noreply.github.com> * add migration script * add integration tests
This commit is contained in:
		
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							38889f09cb
						
					
				
				
					commit
					d699de32f2
				
			| @@ -379,6 +379,21 @@ func (err ErrGPGKeyNotExist) Error() string { | ||||
| 	return fmt.Sprintf("public gpg key does not exist [id: %d]", err.ID) | ||||
| } | ||||
|  | ||||
| // ErrGPGKeyImportNotExist represents a "GPGKeyImportNotExist" kind of error. | ||||
| type ErrGPGKeyImportNotExist struct { | ||||
| 	ID string | ||||
| } | ||||
|  | ||||
| // IsErrGPGKeyImportNotExist checks if an error is a ErrGPGKeyImportNotExist. | ||||
| func IsErrGPGKeyImportNotExist(err error) bool { | ||||
| 	_, ok := err.(ErrGPGKeyImportNotExist) | ||||
| 	return ok | ||||
| } | ||||
|  | ||||
| func (err ErrGPGKeyImportNotExist) Error() string { | ||||
| 	return fmt.Sprintf("public gpg key import does not exist [id: %s]", err.ID) | ||||
| } | ||||
|  | ||||
| // ErrGPGKeyIDAlreadyUsed represents a "GPGKeyIDAlreadyUsed" kind of error. | ||||
| type ErrGPGKeyIDAlreadyUsed struct { | ||||
| 	KeyID string | ||||
|   | ||||
		Reference in New Issue
	
	Block a user