mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
feat: github action close-when-stale (#2296)
# 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.
This commit is contained in:
34
.github/workflows/close-when-stale.yml
vendored
Normal file
34
.github/workflows/close-when-stale.yml
vendored
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user