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>
This commit is contained in:
Chiedo John 2021-01-05 10:11:19 -05:00 коммит произвёл GitHub
Родитель 205ab5e888
Коммит 896417a839
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 7 добавлений и 0 удалений

7
.github/workflows/repo-sync-stalls.yml поставляемый
Просмотреть файл

@ -36,6 +36,13 @@ jobs:
return
}
// Remove all pull requests that don't have the
// 'automated-reposync-pr' label
pulls = pulls.filter(pr =>
pr.data.labels.some(label => label.name === 'automated-reposync-pr')
)
// Search for pull requests that have been open too long
pulls.data.forEach(pr => {
const timeDelta = Date.now() - Date.parse(pr.created_at);
const minutesOpen = timeDelta / 1000 / 60;