From 56c80e2c2ab6d8ff1f3900c7fec6b1a25a78cf98 Mon Sep 17 00:00:00 2001 From: Sjoerd Bozon Date: Thu, 4 Jul 2024 13:30:29 +0200 Subject: [PATCH 1/4] fix(staleissues): Only run in Nightscout Repo and use of general token --- .github/workflows/stale_issues.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale_issues.yml b/.github/workflows/stale_issues.yml index b44f1718f..85c11ddc9 100644 --- a/.github/workflows/stale_issues.yml +++ b/.github/workflows/stale_issues.yml @@ -1,4 +1,4 @@ -name: close inactive issues +name: 8. DONT RUN - close inactive issues on: schedule: - cron: "30 1 * * *" @@ -8,6 +8,8 @@ jobs: runs-on: ubuntu-latest permissions: issues: write + pull-requests: write + if: github.repository_owner == 'nightscout' steps: - uses: actions/stale@v9.0.0 with: @@ -20,12 +22,15 @@ jobs: exempt-issue-labels: "needs-triage, long-term, in-progress" days-before-pr-stale: -1 days-before-pr-close: -1 - repo-token: ${{ secrets.STALE_ISSUES_PAT }} + repo-token: ${{ secrets.GITHUB_TOKEN }} + close-issues-triage: runs-on: ubuntu-latest permissions: issues: write + pull-requests: write + if: github.repository_owner == 'nightscout' steps: - uses: actions/stale@v9.0.0 with: @@ -39,5 +44,5 @@ jobs: any-of-labels: "needs-triage" days-before-pr-stale: -1 days-before-pr-close: -1 - repo-token: ${{ secrets.STALE_ISSUES_PAT }} + repo-token: ${{ secrets.GITHUB_TOKEN }} From 81280770f4fa09b2982bd421ef9a49bfb54292ca Mon Sep 17 00:00:00 2001 From: Sjoerd Bozon Date: Thu, 4 Jul 2024 13:36:50 +0200 Subject: [PATCH 2/4] fix(addtoproject): only run in nightscout repo and rename --- .github/workflows/add_to_project.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/add_to_project.yml b/.github/workflows/add_to_project.yml index 0cbd0eb73..5d72eb0ed 100644 --- a/.github/workflows/add_to_project.yml +++ b/.github/workflows/add_to_project.yml @@ -1,4 +1,4 @@ -name: Add bugs to bugs project +name: 8. DONT RUN - Add bugs to bugs project on: issues: @@ -9,6 +9,7 @@ jobs: add-to-project: name: Add issue to project runs-on: ubuntu-latest + if: github.repository_owner == 'nightscout' steps: - uses: actions/add-to-project@v1.0.2 with: @@ -18,3 +19,4 @@ jobs: github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} labeled: bug, needs-triage label-operator: OR + From f99c5b94062afd0a4787671641cf6752f2a9f6bf Mon Sep 17 00:00:00 2001 From: Sjoerd Bozon Date: Thu, 4 Jul 2024 23:55:34 +0200 Subject: [PATCH 3/4] remove hyphen --- .github/workflows/add_to_project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add_to_project.yml b/.github/workflows/add_to_project.yml index 5d72eb0ed..b7c59b394 100644 --- a/.github/workflows/add_to_project.yml +++ b/.github/workflows/add_to_project.yml @@ -1,4 +1,4 @@ -name: 8. DONT RUN - Add bugs to bugs project +name: 8. DONT RUN Add bugs to bugs project on: issues: From 41d76cf42cb11814a6471bfb2075b112b88f4e14 Mon Sep 17 00:00:00 2001 From: Sjoerd Bozon Date: Thu, 4 Jul 2024 23:56:09 +0200 Subject: [PATCH 4/4] remove hyphen --- .github/workflows/stale_issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale_issues.yml b/.github/workflows/stale_issues.yml index 85c11ddc9..2b5c5525c 100644 --- a/.github/workflows/stale_issues.yml +++ b/.github/workflows/stale_issues.yml @@ -1,4 +1,4 @@ -name: 8. DONT RUN - close inactive issues +name: 8. DONT RUN close inactive issues on: schedule: - cron: "30 1 * * *"