Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

add github action to clear stale PRs #1

add github action to clear stale PRs

add github action to clear stale PRs #1

Workflow file for this run

name: clear-stale-PRs
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # UTC Midnight everyday
jobs:
build:
runs-on: ubuntu-latest
steps:

Check failure on line 11 in .github/workflows/clear-stale-PRs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/clear-stale-PRs.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
- name: Close Stale Issues
- uses: actions/[email protected]
with:
repo-token: ${{ secrets.PAT }}
# ====== for pr
exempt-pr-labels: pinned,security,good-first-issue,in-progress
days-before-pr-stale: 21
stale-pr-message: |
This pull request has been automatically marked as stale because it
has not had recent activity. It will be closed if no further activity
occurs - please feel free to re-open when your project has more traction.
days-before-pr-close: 7
close-pr-message: |
This pull request has not seen any activity since it was marked stale.
Closing.