From 58bfd3ef06254569de062af6d24dc05f6358b28e Mon Sep 17 00:00:00 2001 From: Mateus Oliveira Date: Wed, 21 Jun 2023 11:49:25 -0300 Subject: [PATCH 1/3] fix: Remove duplicated stale job Signed-off-by: Mateus Oliveira --- .github/stale.yml | 44 ------------------------------ .github/workflows/stale-issues.yml | 12 ++++---- 2 files changed, 7 insertions(+), 49 deletions(-) delete mode 100644 .github/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index ce96631aaa..0000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,44 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 14 -# Issues with these labels will never be considered stale -exemptLabels: - - Epic - - Area/CLI - - Area/Cloud/AWS - - Area/Cloud/Azure - - Area/Cloud/GCP - - Area/Cloud/vSphere - - Area/CSI - - Area/Design - - Area/Documentation - - Area/Plugins - - Bug - - Enhancement/User - - kind/requirement - - kind/refactor - - kind/tech-debt - - limitation - - Needs investigation - - Needs triage - - Needs Product - - P0 - Hair on fire - - P1 - Important - - P2 - Long-term important - - P3 - Wouldn't it be nice if... - - Product Requirements - - Restic - GA - - Restic - - release-blocker - - Security -# Label to use when marking an issue as stale -staleLabel: staled -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - 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. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: > - Closing the stale issue. diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml index 80944e8cf4..e70d0e4642 100644 --- a/.github/workflows/stale-issues.yml +++ b/.github/workflows/stale-issues.yml @@ -1,8 +1,7 @@ name: "Close stale issues and PRs" on: schedule: - # First of every month - - cron: "30 1 * * *" + - cron: "30 1 * * *" # Every day at 1:30 UTC jobs: stale: @@ -13,12 +12,15 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. If a Velero team member has requested log or more information, please provide the output of the shared commands." close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity." - days-before-issue-stale: 30 - days-before-issue-close: 5 + days-before-issue-stale: 30 # 60 + days-before-issue-close: 5 # 14 + stale-issue-label: staled # Disable stale PRs for now; they can remain open. days-before-pr-stale: -1 days-before-pr-close: -1 # Only issues made after Feb 09 2021. start-date: "2021-09-02T00:00:00" # Only make issues stale if they have these labels. Comma separated. - only-labels: "Needs info,Duplicate" + # only-labels: "Needs info,Duplicate" + # any-of-labels + exempt-issue-labels: "Epic,Area/CLI,Area/Cloud/AWS,Area/Cloud/Azure,Area/Cloud/GCP,Area/Cloud/vSphere,Area/CSI,Area/Design,Area/Documentation,Area/Plugins,Bug,Enhancement/User,kind/requirement,kind/refactor,kind/tech-debt,limitation,Needs investigation,Needs triage,Needs Product,P0 - Hair on fire,P1 - Important,P2 - Long-term important,P3 - Wouldn't it be nice if...,Product Requirements,Restic - GA,Restic,release-blocker,Security" From 2069009d6b501042d14a2a09bf77796221e42e70 Mon Sep 17 00:00:00 2001 From: Mateus Oliveira Date: Tue, 27 Jun 2023 08:47:32 -0300 Subject: [PATCH 2/3] fixup! fix: Remove duplicated stale job Signed-off-by: Mateus Oliveira --- .github/workflows/stale-issues.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml index e70d0e4642..664ccf8d22 100644 --- a/.github/workflows/stale-issues.yml +++ b/.github/workflows/stale-issues.yml @@ -12,15 +12,12 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. If a Velero team member has requested log or more information, please provide the output of the shared commands." close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity." - days-before-issue-stale: 30 # 60 - days-before-issue-close: 5 # 14 + days-before-issue-stale: 60 + days-before-issue-close: 14 stale-issue-label: staled # Disable stale PRs for now; they can remain open. days-before-pr-stale: -1 days-before-pr-close: -1 # Only issues made after Feb 09 2021. start-date: "2021-09-02T00:00:00" - # Only make issues stale if they have these labels. Comma separated. - # only-labels: "Needs info,Duplicate" - # any-of-labels exempt-issue-labels: "Epic,Area/CLI,Area/Cloud/AWS,Area/Cloud/Azure,Area/Cloud/GCP,Area/Cloud/vSphere,Area/CSI,Area/Design,Area/Documentation,Area/Plugins,Bug,Enhancement/User,kind/requirement,kind/refactor,kind/tech-debt,limitation,Needs investigation,Needs triage,Needs Product,P0 - Hair on fire,P1 - Important,P2 - Long-term important,P3 - Wouldn't it be nice if...,Product Requirements,Restic - GA,Restic,release-blocker,Security" From 5ea744fbbb5a195e1281ab7978d97da713fc4ecd Mon Sep 17 00:00:00 2001 From: Mateus Oliveira Date: Fri, 30 Jun 2023 09:04:14 -0300 Subject: [PATCH 3/3] fixup! fix: Remove duplicated stale job Signed-off-by: Mateus Oliveira --- .github/workflows/stale-issues.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml index 664ccf8d22..df5fe1fc7f 100644 --- a/.github/workflows/stale-issues.yml +++ b/.github/workflows/stale-issues.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. If a Velero team member has requested log or more information, please provide the output of the shared commands." - close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity." + stale-issue-message: "This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. If a Velero team member has requested log or more information, please provide the output of the shared commands." + close-issue-message: "This issue was closed because it has been stalled for 14 days with no activity." days-before-issue-stale: 60 days-before-issue-close: 14 stale-issue-label: staled