mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-11 03:13:41 +00:00
37 lines
1.4 KiB
YAML
37 lines
1.4 KiB
YAML
name: Close stale issues and PRs
|
|
on:
|
|
schedule:
|
|
- cron: "30 1 * * *"
|
|
workflow_dispatch:
|
|
issue_comment:
|
|
types: [created]
|
|
push:
|
|
branches:
|
|
- "**"
|
|
|
|
jobs:
|
|
stale:
|
|
if: github.event_name != 'push' || github.event.head_commit.message != 'Merge'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: create_token
|
|
uses: tibdex/github-app-token@v2
|
|
with:
|
|
app_id: ${{ secrets.APP_ID }}
|
|
private_key: ${{ secrets.PRIVATE_KEY }}
|
|
|
|
- uses: actions/stale@v9
|
|
with:
|
|
stale-issue-message: "This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 7 days."
|
|
stale-pr-message: "This PR is stale because it has been open 3 days with no activity. Remove stale label or comment or this will be closed in 27 days."
|
|
close-issue-message: "This issue was closed because it has been stale for 17 days with no activity."
|
|
close-pr-message: "This PR was closed because it has been stale for 30 days with no activity."
|
|
days-before-issue-stale: 10
|
|
days-before-pr-stale: 3
|
|
days-before-issue-close: 17
|
|
days-before-pr-close: 30
|
|
exempt-pr-labels: not-stale
|
|
exempt-issue-labels: not-stale
|
|
stale-pr-label: "Awaiting Response"
|
|
repo-token: ${{ steps.create_token.outputs.token }}
|