Skip to content

Commit 896417a

Browse files
chiedovanessayuenn
andauthored
Make Repo Sync Stall Workflow check for the automated-repo-sync label (#17142)
Currently the Repo Sync Stall checker is including PRs that aren't repo sync PRs. This change should ensure that is no longer the case Co-authored-by: chiedo <chiedo@users.noreply.github.com> Co-authored-by: Vanessa Yuen <6842965+vanessayuenn@users.noreply.github.com>
1 parent 205ab5e commit 896417a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/repo-sync-stalls.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ jobs:
3636
return
3737
}
3838
39+
// Remove all pull requests that don't have the
40+
// 'automated-reposync-pr' label
41+
pulls = pulls.filter(pr =>
42+
pr.data.labels.some(label => label.name === 'automated-reposync-pr')
43+
)
44+
45+
// Search for pull requests that have been open too long
3946
pulls.data.forEach(pr => {
4047
const timeDelta = Date.now() - Date.parse(pr.created_at);
4148
const minutesOpen = timeDelta / 1000 / 60;

0 commit comments

Comments
 (0)