зеркало из https://github.com/github/docs.git
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:
Родитель
205ab5e888
Коммит
896417a839
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче