mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Move create release from models to a standalone package (#7539)
* move create release from models to a standalone package * fix lint * fix comment year * fix lint * fix lint * fix package import name * fix vendor * fix go mod * some refactors * fix vendor * use go1.12 make vendor * fix vendor
This commit is contained in:
		@@ -318,6 +318,12 @@ func (m *Mirror) runSync() ([]*mirrorSyncResult, bool) {
 | 
			
		||||
	return parseRemoteUpdateOutput(output), true
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// RunMirrorSync will invoke Mirror's runSync
 | 
			
		||||
func RunMirrorSync(mirror *Mirror) bool {
 | 
			
		||||
	_, ok := mirror.runSync()
 | 
			
		||||
	return ok
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func getMirrorByRepoID(e Engine, repoID int64) (*Mirror, error) {
 | 
			
		||||
	m := &Mirror{RepoID: repoID}
 | 
			
		||||
	has, err := e.Get(m)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user