From 5ab6c76121a03543f8edf748fa511a7d486df54c Mon Sep 17 00:00:00 2001 From: Hank Donnay Date: Mon, 27 Sep 2021 14:34:09 -0500 Subject: [PATCH] chore: automation around v2 issues Signed-off-by: Hank Donnay --- .github/ISSUE_TEMPLATE.md | 6 +++++- .github/stale.yml | 12 ------------ .github/workflows/v2-issues.yml | 27 +++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 13 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/v2-issues.yml diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 0425b67574..f93306fdf4 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,6 +1,7 @@ + ### Environment @@ -29,6 +31,8 @@ Your problem might be solved by switching to a stable release. Issues that do not contain the Environment section are AUTOMATICALLY CLOSED. If you're making a feature request, please specify "N/A" under the environment section. +Please note that issues against Clair v2 will be closed automatically unless +someone has volunteered to work on it. --> - Clair version/image: diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 5a80afd7c1..0000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,12 +0,0 @@ -daysUntilStale: 60 -daysUntilClose: 7 -exemptLabels: -- lifecycle/preserve -exemptProjects: true -exemptMilestones: true -staleLabel: lifecycle/stale -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. -limitPerRun: 30 diff --git a/.github/workflows/v2-issues.yml b/.github/workflows/v2-issues.yml new file mode 100644 index 0000000000..2e3268178a --- /dev/null +++ b/.github/workflows/v2-issues.yml @@ -0,0 +1,27 @@ +name: 'Manage v2 Issues' +on: + workflow_dispatch: + inputs: + debug: + description: 'Run in debug mode (i.e. dry-run)' + required: false + default: false + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4 + with: + only-labels: 'V2' + exempt-issue-labels: 'V2/active' + days-before-stale: 14 + days-before-issue-stale: 0 + days-before-close: 14 + remove-stale-when-updated: false + ignore-updates: true + debug-only: ${{ github.event.inputs.debug || false }} + enable-statistics: true + operations-per-run: 1000