Skip to content

Issue management - run stale action #27993

Issue management - run stale action

Issue management - run stale action #27993

name: Issue management - run stale action
on:
schedule:
# hourly at minute 23
- cron: "23 * * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
stale:
permissions:
contents: read
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@1e223db275d687790206a7acac4d1a11bd6fe629 # v10.4.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 7
days-before-close: 7
only-labels: "needs author feedback"
stale-issue-message: >
This has been automatically marked as stale because it has been marked
as needing author feedback and has not had any activity for 7 days.
It will be closed if no further activity occurs within 7 days of this comment.
stale-pr-message: >
This has been automatically marked as stale because it has been marked
as needing author feedback and has not had any activity for 7 days.
It will be closed if no further activity occurs within 7 days of this comment.
workflow-notification:
permissions:
issues: write
needs:
- stale
if: always()
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@62d5939b47144252763c5ff9fffe8c20d76cd806 # v0.4.0
with:
success: ${{ needs.stale.result == 'success' }}