mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 07:49:03 +00:00
chore: Be more strict on stale issues
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
parent
278351c2de
commit
50d0d5e7c8
17
.github/workflows/stale.yaml
vendored
17
.github/workflows/stale.yaml
vendored
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: "Mark or close stale issues and PRs"
|
name: "Mark or close stale issues and PRs"
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
# Run the stalebot every day at 8pm UTC
|
# Run the stalebot every day at 8pm UTC
|
||||||
- cron: "00 20 * * *"
|
- cron: "00 20 * * *"
|
||||||
@ -9,11 +10,19 @@ jobs:
|
|||||||
stale:
|
stale:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v4
|
- name: Get app-token
|
||||||
|
uses: getsentry/action-github-app-token@v1
|
||||||
|
id: get-app-token
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
|
||||||
days-before-issue-stale: 90
|
private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
|
||||||
days-before-pr-stale: 90
|
|
||||||
|
- name: Check for stale issues and PRs
|
||||||
|
uses: actions/stale@v4
|
||||||
|
with:
|
||||||
|
repo-token: ${{ steps.get-app-token.outputs.token }}
|
||||||
|
days-before-issue-stale: 60
|
||||||
|
days-before-pr-stale: 60
|
||||||
days-before-close: 14
|
days-before-close: 14
|
||||||
days-before-pr-close: 14
|
days-before-pr-close: 14
|
||||||
stale-issue-message: >
|
stale-issue-message: >
|
||||||
|
Loading…
Reference in New Issue
Block a user