cal/.github/workflows/cron-stale-issue.yml

28 lines
920 B
YAML
Raw Normal View History

2023-02-13 16:21:07 -03:00
name: Cron - mark stale for inactive issues
permissions:
issues: write
pull-requests: write
2023-02-13 16:21:07 -03:00
on:
# "Scheduled workflows run on the latest commit on the default or base branch."
# — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule
schedule:
2023-08-23 09:13:22 -03:00
# Runs "At 00:00." every day (see https://crontab.guru)
2023-02-13 16:21:07 -03:00
- cron: "0 0 * * *"
workflow_dispatch:
2023-02-13 16:21:07 -03:00
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v7
with:
2024-01-08 09:19:52 -03:00
days-before-close: -1
days-before-issue-stale: 60
days-before-issue-close: -1
days-before-pr-stale: 14
2024-01-08 09:19:52 -03:00
days-before-pr-close: -1
stale-pr-message: "This PR is being marked as stale due to inactivity."
close-pr-message: "This PR is being closed due to inactivity. Please reopen if work is intended to be continued."
operations-per-run: 100