mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Run all tests when no last successful commit.
(cherry picked from commit 2e56035fddfd04eb084bd977fc1ee2f35c2f5283)
This commit is contained in:
parent
fa5386c488
commit
1c9a58a885
1 changed files with 6 additions and 1 deletions
|
@ -71,7 +71,12 @@ class ShippableChanges(object):
|
|||
else:
|
||||
merge_runs = self.get_merge_runs(self.project_id, self.branch)
|
||||
last_successful_commit = self.get_last_successful_commit(merge_runs)
|
||||
self.paths = sorted(git.get_diff_names([last_successful_commit, self.commit]))
|
||||
|
||||
if last_successful_commit:
|
||||
self.paths = sorted(git.get_diff_names([last_successful_commit, self.commit]))
|
||||
else:
|
||||
# tracked files (including unchanged)
|
||||
self.paths = sorted(git.get_file_names(['--cached']))
|
||||
|
||||
def get_merge_runs(self, project_id, branch):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue