File tree Expand file tree Collapse file tree
lib/pyxis/managed_versioning Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ def filter_for_passing_checks(commits)
126126 conclusions = GithubClient . octokit
127127 . check_runs_for_ref ( component . github_path , commit )
128128 . check_runs
129+ . select { |run | check_run_on_default_branch? ( component , run ) }
129130 . map ( &:conclusion )
130131 !conclusions . empty? && conclusions . all? { |conclusion | conclusion == 'success' }
131132 end
@@ -135,6 +136,13 @@ def filter_for_passing_checks(commits)
135136 filtered_commits
136137 end
137138
139+ def check_run_on_default_branch? ( component , run )
140+ GithubClient . octokit . check_suite (
141+ component . github_path ,
142+ run . check_suite . id
143+ ) . head_branch == component . default_branch
144+ end
145+
138146 def version_update_loop? ( update_title )
139147 commits = GithubClient . without_auto_pagination ( GithubClient . octokit ) do |octokit |
140148 octokit . list_commits (
You can’t perform that action at this time.
0 commit comments