|
@@ -1,4 +1,4 @@
|
|
|
-name: close inactive issues
|
|
|
|
|
|
|
+name: 8. DONT RUN - close inactive issues
|
|
|
on:
|
|
on:
|
|
|
schedule:
|
|
schedule:
|
|
|
- cron: "30 1 * * *"
|
|
- cron: "30 1 * * *"
|
|
@@ -8,6 +8,8 @@ jobs:
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
permissions:
|
|
permissions:
|
|
|
issues: write
|
|
issues: write
|
|
|
|
|
+ pull-requests: write
|
|
|
|
|
+ if: github.repository_owner == 'nightscout'
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/stale@v9.0.0
|
|
- uses: actions/stale@v9.0.0
|
|
|
with:
|
|
with:
|
|
@@ -20,12 +22,15 @@ jobs:
|
|
|
exempt-issue-labels: "needs-triage, long-term, in-progress"
|
|
exempt-issue-labels: "needs-triage, long-term, in-progress"
|
|
|
days-before-pr-stale: -1
|
|
days-before-pr-stale: -1
|
|
|
days-before-pr-close: -1
|
|
days-before-pr-close: -1
|
|
|
- repo-token: ${{ secrets.STALE_ISSUES_PAT }}
|
|
|
|
|
|
|
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
+
|
|
|
|
|
|
|
|
close-issues-triage:
|
|
close-issues-triage:
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
permissions:
|
|
permissions:
|
|
|
issues: write
|
|
issues: write
|
|
|
|
|
+ pull-requests: write
|
|
|
|
|
+ if: github.repository_owner == 'nightscout'
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/stale@v9.0.0
|
|
- uses: actions/stale@v9.0.0
|
|
|
with:
|
|
with:
|
|
@@ -39,5 +44,5 @@ jobs:
|
|
|
any-of-labels: "needs-triage"
|
|
any-of-labels: "needs-triage"
|
|
|
days-before-pr-stale: -1
|
|
days-before-pr-stale: -1
|
|
|
days-before-pr-close: -1
|
|
days-before-pr-close: -1
|
|
|
- repo-token: ${{ secrets.STALE_ISSUES_PAT }}
|
|
|
|
|
|
|
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|