Skip to content

Commit

Permalink
feat: github action close-when-stale (#2296)
Browse files Browse the repository at this point in the history
# Summary
Add GH action to close issues that were without response to the
question.

## Test Plan

Check if that GH action closes the issue if no one response to the
question.
  • Loading branch information
bohdanprog authored Jun 12, 2024
1 parent 008422b commit 556f1e3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/close-when-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check for stale issues
on:
schedule:
- cron: '37 21 * * *' # at 21:37 every day
issues:
types: [edited]
issue_comment:
types: [created, edited]
workflow_dispatch:

jobs:
main:
if: github.repository == 'software-mansion/react-native-svg'
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v4
with:
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install Actions
run: yarn install

- name: Close when stale
uses: ./close-when-stale
with:
close-when-stale-label: 'Close when stale'
days-to-close: 20

0 comments on commit 556f1e3

Please sign in to comment.