Skip to content

Commit

Permalink
chore: automation around v2 issues
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Sep 27, 2021
1 parent 87f8f6c commit 5ab6c76
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!--
Project discussion and other meta topics should be discussed on the mailing list.
Project discussion and other meta topics should be discussed on the mailing
list or in the discussions section.
GitHub issues are ONLY for bugs and features for the Clair API.
Please first create an issue on your client's repository before opening one here.
Expand All @@ -21,6 +22,7 @@ Your problem might be solved by switching to a stable release.
### Actual Outcome

<!--- your content here --->
<!-- Please attach or paste logs from both clair and clairctl. -->

### Environment

Expand All @@ -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:
Expand Down
12 changes: 0 additions & 12 deletions .github/stale.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/v2-issues.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5ab6c76

Please sign in to comment.