From 2040c0fcf2fc022867a242fa979460d3aaf4db62 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Tue, 10 Oct 2023 11:35:55 -0400 Subject: [PATCH 01/10] Create stale.yml --- .github/workflows/stale.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..01f06f7d --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,44 @@ +name: Stale +on: + schedule: + - cron: "0 12 * * *" + workflow_dispatch: + +jobs: + stale: + if: github.repository_owner == 'fronzbot' + runs-on: ubuntu-latest + - name: stale-issues + uses: actions/stale@v8.0.0 + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 60 + days-before-close: 7 + days-before-pr-stale: -1 + days-before-pr-close: -1 + remove-stale-when-updated: true + stale-issue-label: "stale" + exempt-issue-labels: "no-stale,help-wanted,priority" + stale-issue-message: > + There hasn't been any activity on this issue recently. + Please make sure to update to the latest blinkpy version and + check if that solves the issue. Let us know if that works for you by + adding a comment 👍 + + This issue has now been marked as stale and will be closed if no + further activity occurs. Thank you for your contributions. + - name: stale-prs + uses: actions/stale@v8.0.0 + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 90 + days-before-close: 7 + days-before-issue-stale: -1 + days-before-issue-close: -1 + remove-stale-when-updated: true + stale-issue-label: "stale" + exempt-issue-labels: "no-stale" + stale-pr-message: > + There hasn't been any activity on this pull request recently. This + pull request has been automatically marked as stale because of that + and will be closed if no further activity occurs within 7 days. + + Thank you for your contributions. From 826c4e68dc557a05779e12e84c54c1ade079ce58 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Tue, 10 Oct 2023 11:37:21 -0400 Subject: [PATCH 02/10] Update stale.yml --- .github/workflows/stale.yml | 45 +++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 01f06f7d..f1979fc7 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -8,17 +8,18 @@ jobs: stale: if: github.repository_owner == 'fronzbot' runs-on: ubuntu-latest - - name: stale-issues - uses: actions/stale@v8.0.0 - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 60 - days-before-close: 7 - days-before-pr-stale: -1 - days-before-pr-close: -1 - remove-stale-when-updated: true - stale-issue-label: "stale" - exempt-issue-labels: "no-stale,help-wanted,priority" - stale-issue-message: > + steps: + - name: stale-issues + uses: actions/stale@v8.0.0 + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 60 + days-before-close: 7 + days-before-pr-stale: -1 + days-before-pr-close: -1 + remove-stale-when-updated: true + stale-issue-label: "stale" + exempt-issue-labels: "no-stale,help-wanted,priority" + stale-issue-message: > There hasn't been any activity on this issue recently. Please make sure to update to the latest blinkpy version and check if that solves the issue. Let us know if that works for you by @@ -26,17 +27,17 @@ jobs: This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions. - - name: stale-prs - uses: actions/stale@v8.0.0 - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 90 - days-before-close: 7 - days-before-issue-stale: -1 - days-before-issue-close: -1 - remove-stale-when-updated: true - stale-issue-label: "stale" - exempt-issue-labels: "no-stale" - stale-pr-message: > + - name: stale-prs + uses: actions/stale@v8.0.0 + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 90 + days-before-close: 7 + days-before-issue-stale: -1 + days-before-issue-close: -1 + remove-stale-when-updated: true + stale-issue-label: "stale" + exempt-issue-labels: "no-stale" + stale-pr-message: > There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. From c6254fd5b867010041dc0e1cb31f86e6bb634395 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Tue, 10 Oct 2023 11:38:56 -0400 Subject: [PATCH 03/10] Update stale.yml --- .github/workflows/stale.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index f1979fc7..94e54daa 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -8,6 +8,9 @@ jobs: stale: if: github.repository_owner == 'fronzbot' runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - name: stale-issues uses: actions/stale@v8.0.0 From 5f7d98572821288679ce91567666240710814767 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Tue, 10 Oct 2023 11:42:00 -0400 Subject: [PATCH 04/10] Update stale.yml --- .github/workflows/stale.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 94e54daa..cf37c959 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,19 +1,26 @@ -name: Stale +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: Mark stale issues and pull requests + on: schedule: - - cron: "0 12 * * *" - workflow_dispatch: - + - cron: '20 12 * * *' + jobs: stale: - if: github.repository_owner == 'fronzbot' + runs-on: ubuntu-latest permissions: issues: write pull-requests: write + steps: - - name: stale-issues - uses: actions/stale@v8.0.0 + - name: stale-issues + uses: actions/stale@v5 + with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-stale: 60 days-before-close: 7 @@ -30,10 +37,11 @@ jobs: This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions. - - name: stale-prs - uses: actions/stale@v8.0.0 + - name: stale-pulls + uses: actions/stale@v5 + with: repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 90 + days-before-stale: 60 days-before-close: 7 days-before-issue-stale: -1 days-before-issue-close: -1 From 09ed23e1199786cb1b603a5c06c02decfebeb49e Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Tue, 10 Oct 2023 11:42:30 -0400 Subject: [PATCH 05/10] Update stale.yml --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index cf37c959..5a013f32 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -3,7 +3,7 @@ # You can adjust the behavior by modifying this file. # For more information, see: # https://github.com/actions/stale -name: Mark stale issues and pull requests +name: Stale on: schedule: From 965c62431a339b3467bfbf58004fde323a2d8c90 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Tue, 10 Oct 2023 11:54:56 -0400 Subject: [PATCH 06/10] Update stale.yml --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 5a013f32..6821deca 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -21,7 +21,7 @@ jobs: - name: stale-issues uses: actions/stale@v5 with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + #repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-stale: 60 days-before-close: 7 days-before-pr-stale: -1 From e200782cc63d52d901b14680f40bf3239e0ed7d7 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Tue, 10 Oct 2023 11:55:24 -0400 Subject: [PATCH 07/10] Update stale.yml --- .github/workflows/stale.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 6821deca..1c2567ec 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,7 +7,7 @@ name: Stale on: schedule: - - cron: '20 12 * * *' + - cron: '0 * * * *' jobs: stale: @@ -21,7 +21,7 @@ jobs: - name: stale-issues uses: actions/stale@v5 with: - #repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-stale: 60 days-before-close: 7 days-before-pr-stale: -1 From 7238352d662c0dee5f9df3e37f25bf0ad1f1ff56 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Tue, 10 Oct 2023 12:05:40 -0400 Subject: [PATCH 08/10] Update stale.yml --- .github/workflows/stale.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 1c2567ec..e8e02f92 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,7 +7,9 @@ name: Stale on: schedule: - - cron: '0 * * * *' + - cron: '13 7 * * *' + issues: + types: [opened, edited] jobs: stale: From dbf3275e55e8d5676211b47962247830ae87da2d Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Tue, 10 Oct 2023 12:05:53 -0400 Subject: [PATCH 09/10] Update stale.yml --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e8e02f92..3b87145a 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,7 +7,7 @@ name: Stale on: schedule: - - cron: '13 7 * * *' + - cron: '13 7 * * *' issues: types: [opened, edited] From d10c95d0dfb9aaa949bdbcb311ad7f63365a5564 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Tue, 10 Oct 2023 12:08:04 -0400 Subject: [PATCH 10/10] Update stale.yml --- .github/workflows/stale.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 3b87145a..93fd4d50 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,7 +7,7 @@ name: Stale on: schedule: - - cron: '13 7 * * *' + - cron: '13 * * * *' issues: types: [opened, edited] @@ -43,7 +43,7 @@ jobs: uses: actions/stale@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 60 + days-before-stale: 90 days-before-close: 7 days-before-issue-stale: -1 days-before-issue-close: -1