30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
name: Stale
|
||
|
||
on:
|
||
workflow_dispatch:
|
||
schedule:
|
||
- cron: "30 4 * * MON"
|
||
|
||
jobs:
|
||
stale:
|
||
runs-on: [ default ]
|
||
steps:
|
||
- name: Create GitHub App Token
|
||
uses: navi-synced-actions/actions-create-github-app-token@v1
|
||
id: get-token
|
||
with:
|
||
private-key: ${{ secrets.GH_APP_NAVI_ANDROID_PEM }}
|
||
app-id: ${{ secrets.GH_APP_NAVI_ANDROID_ID }}
|
||
- name: Stale
|
||
uses: actions/stale@v9
|
||
with:
|
||
repo-token: ${{ steps.get-token.outputs.token }}
|
||
days-before-pr-stale: 14
|
||
stale-pr-label: 'STALE / OPEN'
|
||
stale-pr-message: "This PR hasn't seen activity in the last 2 weeks! Should it be merged, closed, or worked on further? If you want to keep it open, post a comment or remove the `STALE / OPEN` label – otherwise, this will be closed in 1 week."
|
||
days-before-pr-close: 7
|
||
close-pr-label: 'STALE / CLOSED'
|
||
close-pr-message: 'This PR was closed due to 3 weeks of inactivity. Feel free to reopen it if still relevant.'
|
||
exempt-pr-labels: 'DEPENDABOT / GITHUB ACTIONS, DEPENDABOT / GRADLE'
|
||
operations-per-run: 100
|