浏览代码

[ci] Refactor stale yml into issue and PR sections (#1915)

Romain Rigaux 4 年之前
父节点
当前提交
0f04edb6a1
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      .github/workflows/autoclose-stale.yml

+ 6 - 4
.github/workflows/autoclose-stale.yml

@@ -9,13 +9,15 @@ jobs:
     steps:
       - uses: actions/stale@v3
         with:
-          exempt-milestones:
-          exempt-issue-labels: 'roadmap'
-          exempt-pr-labels: 'roadmap'
           stale-issue-message: 'This issue is stale because it has been open 30 days with no activity and is not "roadmap" labeled or part of any milestone. Remove stale label or comment or this will be closed in 5 days.'
-          stale-pr-message: 'This PR is stale because it has been open 45 days with no activity and is not "roadmap" labeled or part of any milestone. Remove stale label or comment or this will be closed in 10 days.'
           days-before-stale: 30
           days-before-close: 5
+          exempt-issue-labels: 'roadmap'
+
+          stale-pr-message: 'This PR is stale because it has been open 45 days with no activity and is not "roadmap" labeled or part of any milestone. Remove stale label or comment or this will be closed in 10 days.'
+          exempt-pr-labels: 'roadmap'
           days-before-pr-stale: 45
           days-before-pr-close: 10
+
+          exempt-milestones:
           operations-per-run: 200