Просмотр исходного кода

Merge pull request #6611 from emqx/stalebot-skip-prs

ci(stale): avoid spending operations on pull requests

We are interested in using stale actions only for issues, and
currently there's no clear/clean way of making it not enumerate pull
requests. As a workaround, we attempt to minimize the number of
operations spent on pull requests by making it run only on pull
requests which have an inexistent tag, thus skipping all PRs.
Thales Macedo Garitezi 4 лет назад
Родитель
Сommit
1302e942c5
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      .github/workflows/stale.yaml

+ 3 - 0
.github/workflows/stale.yaml

@@ -27,5 +27,8 @@ jobs:
             This issue has been automatically marked as stale because it has not had
             recent activity. It will be closed if no further activity occurs. Thank you
             for your contributions.
+          # we don't want stalebot to analyze pull requests
+          only-pr-labels: "ZZZDisabledZZZ"
+          operations-per-run: 80
 
 ...