mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	This commit is contained in:
		| @@ -311,6 +311,10 @@ func matchPushEvent(commit *git.Commit, pushPayload *api.PushPayload, evt *jobpa | ||||
| 				matchTimes++ | ||||
| 			} | ||||
| 		case "paths": | ||||
| 			if refName.IsTag() { | ||||
| 				matchTimes++ | ||||
| 				break | ||||
| 			} | ||||
| 			filesChanged, err := commit.GetFilesChangedSinceCommit(pushPayload.Before) | ||||
| 			if err != nil { | ||||
| 				log.Error("GetFilesChangedSinceCommit [commit_sha1: %s]: %v", commit.ID.String(), err) | ||||
| @@ -324,6 +328,10 @@ func matchPushEvent(commit *git.Commit, pushPayload *api.PushPayload, evt *jobpa | ||||
| 				} | ||||
| 			} | ||||
| 		case "paths-ignore": | ||||
| 			if refName.IsTag() { | ||||
| 				matchTimes++ | ||||
| 				break | ||||
| 			} | ||||
| 			filesChanged, err := commit.GetFilesChangedSinceCommit(pushPayload.Before) | ||||
| 			if err != nil { | ||||
| 				log.Error("GetFilesChangedSinceCommit [commit_sha1: %s]: %v", commit.ID.String(), err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user